/* ===================================
   Global Styles & Reset
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #106df0;
    --text-light: #6b7280;
    --bg-primary: #e9e6e5;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Improve touch targets on mobile */
a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Prevent text selection on buttons and links */
button,
a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-nav {
    margin-top: 22px;
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.is-hidden {
    display: none !important;
}

.products-nav-btn {
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.1px;
    color: #1e40af;
    background: transparent;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    min-height: 42px;
}

.products-nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.22);
}

.products-nav-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.products-nav-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}

/* Optional: subtle color hint per tab when active */
.products-nav-btn.is-active[data-target="all"] {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}
.products-nav-btn.is-active[data-target="#current-products"] {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.products-nav-btn.is-active[data-target="#upcoming-projects"] {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}
.products-nav-btn.is-active[data-target="#open-source-projects"] {
    background: linear-gradient(135deg, #059669, #047857);
}

@media (max-width: 520px) {
    .products-nav {
        width: 100%;
        max-width: 560px;
    }
    .products-nav-btn {
        flex: 1 1 160px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    min-height: 44px;
    /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.navbar.visible {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.logo span {
    display: none;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo strong {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-login-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-user-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 8px 6px 10px;
    max-width: 220px;
}

.nav-user-name {
    font-size: 0.82rem;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.nav-logout-btn {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-logout-btn:hover {
    background: var(--bg-primary);
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    min-height: 44px;
    /* Accessible touch target */
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger:hover {
    background-color: var(--bg-light);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Techy Chakra Grid Icon
   =================================== */

/* glowing pulse animation */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.2),
            0 0 25px rgba(0, 119, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 200, 0.5),
            0 0 40px rgba(0, 119, 255, 0.3);
    }
}

/* chakra spin animation */
@keyframes rotateChakra {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* glowing gradient shift */
@keyframes hueRotate {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

.chakra-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(6, 78, 59, 0.1));
    border: 1px solid rgba(0, 230, 255, 0.2);
    cursor: pointer;
    margin-right: 15px;
    animation: pulseGlow 4s infinite ease-in-out;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
    min-width: 36px;
    min-height: 36px;
    position: relative;
}

.chakra-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.4),
        0 0 50px rgba(0, 119, 255, 0.2);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.2), rgba(6, 78, 59, 0.2));
}

.chakra-btn:active {
    transform: scale(1.05);
}

.chakra-wheel {
    transition: transform 0.8s ease-in-out;
    display: block;
}

.chakra-btn:hover .chakra-wheel {
    animation: rotateChakra 6s linear infinite;
}

.glow-filter {
    animation: hueRotate 10s linear infinite;
}

.chakra-btn:focus {
    outline: 2px solid rgba(0, 230, 255, 0.5);
    outline-offset: 2px;
}

/* ===================================
   Apps Grid Modal
   =================================== */
.apps-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.apps-grid-overlay.active {
    display: block;
    pointer-events: auto;
}

.apps-grid-container {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 16px;
    width: 380px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
}

.apps-grid-overlay.active .apps-grid-container {
    transform: translateY(0);
    opacity: 1;
}

.apps-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.apps-grid-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.apps-grid-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* ===================================
   Login Modal (Google + Gmail OTP)
   =================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.45);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 84px 20px 20px;
}

.login-overlay.active {
    display: flex;
}

.login-modal {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.login-modal-header h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
}

.login-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-modal-body {
    padding: 20px;
}

.google-continue-btn,
.otp-verify-btn,
.otp-action-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.google-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.google-signin-container {
    margin-bottom: 12px;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 16px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    position: relative;
    background: var(--bg-white);
    color: var(--text-light);
    padding: 0 10px;
    font-size: 0.9rem;
}

.gmail-otp-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gmail-otp-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.gmail-otp-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    color: var(--text-dark);
}

.gmail-otp-form input:focus {
    border-color: var(--accent-color);
}

.otp-row {
    display: flex;
    gap: 8px;
}

.otp-row input {
    flex: 1;
}

.otp-action-btn {
    width: auto;
    padding: 0 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.otp-verify-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
}

.login-status {
    min-height: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.login-status.success {
    color: var(--success-color);
}

.login-status.error {
    color: var(--error-color);
}

.apps-grid-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.apps-grid-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.app-item:hover {
    transform: translateY(-5px);
}

.app-logo-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.app-icon {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.app-item:hover .app-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.app-icon i {
    font-size: 1.5rem;
    color: white;
}

.app-name {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0;
}


/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding-top: 0;
    padding-bottom: 30px;
    overflow: visible;
    transition: all 0.3s ease;
}

/* Hide hero section when other sections are visible */
.hero.minimized {
    display: none;
}



.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-dark);
    padding: 40px 20px 30px;
    max-width: 1000px;
}

/* Hero Logo Styling - Matches Image Style */
.hero-logo-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Explicit sizing for the main hero logo image */
.hero-logo {
    /* Scales with viewport, stays within sensible bounds */
    width: clamp(150px, 30vw, 320px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-company-name {
    font-size: 1rem;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    text-shadow: none;
}

.company-prefix {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: -15px;
    letter-spacing: 3px;
}

.company-main {
    font-size: 8rem;
    font-weight: 300;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    position: relative;
    letter-spacing: 12px;
    margin-bottom: 5px;
    line-height: 1;
}

.company-suffix {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 18px;
    margin-left: 12px;
}

.letter-a,
.letter-z {
    position: relative;
}

.circle-group {
    display: inline-flex;
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 -12px;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.circle-1 {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    top: 10px;
    left: 8px;
    z-index: 2;
}

.circle-2 {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    bottom: 10px;
    right: 8px;
    z-index: 1;
}

.as-text {
    margin-left: 15px;
}

.hero-tagline {
    /* Responsive caption size that scales smoothly */
    font-size: clamp(0.95rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Hero Search Form */
.hero-search-form {
    margin: 40px auto;
    max-width: 600px;
}

.hero-search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 12px 20px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-search-container:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.16);
}

.hero-search-container:focus-within {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
    font-family: Arial, sans-serif;
}

.hero-search-input::placeholder {
    color: #9aa0a6;
}

.hero-search-btn {
    background: #2563eb;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 18px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-search-btn:hover {
    background: #1d4ed8;
}

.hero-search-btn i {
    font-size: 14px;
}

/* Hero Navigation Links - Matches Image Style */
.hero-nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Show hero nav links on all screens by default */

.hero-nav-link {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.hero-nav-link:hover,
.hero-nav-link.active {
    color: var(--primary-color);
}

.hero-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.hero-nav-link:hover::after,
.hero-nav-link.active::after {
    width: 100%;
}

.hero-contact-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 14px 32px;
    border-radius: 50px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-contact-btn::after {
    display: none;
}

.hero-contact-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.hero-contact-btn i {
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--text-light);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 100px 0;
    background: var(--bg-white);
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.9rem;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    padding: 30px 0;
    background: var(--bg-primary);
    display: block;
}

/* ===================================
   Upcoming Projects Section
   =================================== */
.upcoming-projects {
    padding: 30px 0;
    background: var(--bg-white);
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-icon {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}

.project-icon i {
    font-size: 1.4rem;
    color: #FFFFFF;
}

.project-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.project-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 4px 0 0 0;
    line-height: 1.4;
    font-weight: 400;
}

.project-tagline .highlight-gradient {
    background: linear-gradient(135deg, #2d51f0 0%, #8233d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}








/* UttaApp specific styling */
.uttaapp-bg {
    background: url('uttaapp-icon.svg') center/cover no-repeat !important;
}



.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    background: rgba(33, 150, 243, 0.1);
    color: #1976D2;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    width: auto;
    max-width: fit-content;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-features {
    list-style: none;
    padding: 0;
    margin-bottom: auto;
    flex-shrink: 0;
}

.project-features li {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.project-features li:before {
    content: "✓";
    color: #2196F3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.project-actions {
    margin-top: 20px;
    padding-top: 0;
}

.btn-developers {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
}

.btn-developers:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-visit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
}

.btn-visit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-github {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
}

.btn-github:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Project Action Buttons */
.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.btn-project {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    min-height: 44px;
    /* Accessible touch target */
}

.btn-download {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-view-more {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-view-more:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-project i {
    font-size: 0.75rem;
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-features {
    margin-bottom: 25px;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.modal-features i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-actions .btn-project {
    flex: 1;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-us {
    padding: 20px 0;
    background: var(--bg-white);
    display: block;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--bg-white);
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.why-us-content {
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 50px;
}

.why-us-description {
    text-align: center;
    margin-bottom: 50px;
}

.why-us-description p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

.why-us-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-white);
}

.feature-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Vision and Mission Cards */
.why-us-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-us-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.why-us-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.why-us-card .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--bg-black);
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.why-us-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   AI Working Group Section
   =================================== */
.ai-working-group {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.ai-working-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0.3;
    pointer-events: none;
}

.ai-working-group .section-header {
    position: relative;
    z-index: 1;
}

.ai-working-group .section-title {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: none;
}

.ai-working-group .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.ai-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.ai-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    /* width: fit-content; */
}

.ai-image-wrapper:hover {
    transform: scale(1.05);
}

.ai-team-image {
    width: auto;
    height: 500px;
    display: block;
    object-fit: cover;
}

.ai-details {
    color: var(--text-dark);
}

.ai-details h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.ai-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Desktop: add horizontal margins / constrain AI Working Group content
   so it doesn't span edge-to-edge on wide screens. Mobile keeps full-width.
*/
@media (min-width: 992px) {
    .ai-working-group .container {
        max-width: 1100px;
        /* slightly narrower than global container */
        padding-left: 18px !important;
        padding-right: 48px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .ai-working-group .ai-content {
        gap: 60px;
        align-items: center;
    }

    /* Limit left image so there's visible margin to the viewport edge */
    .ai-working-group .ai-image-wrapper {
        max-width: 520px;
        margin-left: 0;
    }

    .ai-working-group .ai-team-image {
        width: 100%;
        height: auto;
        max-height: 560px;
        object-fit: cover;
    }
}

.ai-button-wrapper {
    margin-top: 30px;
}

.btn-ai-team {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(67, 65, 187, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-ai-team:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(71, 44, 227, 0.4);
}

.btn-ai-team i {
    font-size: 1.2rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 30px 0;
    background: var(--bg-white);
    display: block;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info>p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 48px;
    height: 48px;
    min-width: 44px;
    /* Accessible touch target */
    min-height: 44px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    min-height: 44px;
    /* Accessible touch target */
    width: 100%;
}

.form-group select {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.12l3.71-2.89a.75.75 0 0 1 1.04 1.08l-4.24 3.3a.75.75 0 0 1-.93 0l-4.24-3.3a.75.75 0 0 1-.02-1.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    padding-right: 42px;
    min-height: 44px;
    /* Accessible touch target */
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color);
}

.form-group.error .error-message {
    display: block;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 20px;
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-logo strong {
    color: var(--primary-color);
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-column h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet Screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .why-us-cards {
        grid-template-columns: 1fr;
    }

    /* AI Working Group - Tablet */
    .ai-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .ai-team-image {
        width: 100%;
        height: auto;
        max-height: 450px;
    }

    .ai-details {
        text-align: center;
    }

    .ai-details h3 {
        font-size: 1.8rem;
    }

    .ai-details p {
        font-size: 1.05rem;
    }

    .btn-ai-team {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Mobile & Tablet Screens */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav-container {
        padding: 15px 20px;
    }

    .logo-svg {
        height: 35px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        gap: 20px;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-login-btn {
        padding: 9px 11px;
    }

    .nav-login-btn span {
        display: none;
    }

    .nav-user-state {
        max-width: 170px;
        padding: 4px 6px 4px 8px;
    }

    .nav-user-name {
        max-width: 88px;
        font-size: 0.76rem;
    }

    .nav-logout-btn {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .login-overlay {
        justify-content: center;
        padding: 76px 12px 12px;
    }

    .login-modal {
        max-width: 100%;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 0 0 60px 0;
    }

    .hero-content {
        padding: 20px 20px 20px;
    }

    .company-prefix {
        font-size: 2rem;
        margin-bottom: -10px;
    }

    .company-main {
        font-size: 4rem;
        letter-spacing: 6px;
    }

    .company-suffix {
        font-size: 1.8rem;
        letter-spacing: 10px;
    }

    .as-text {
        margin-left: 10px;
    }

    .circle-group {
        width: 55px;
        height: 55px;
        margin: 0 -10px;
    }

    .circle {
        width: 28px;
        height: 28px;
    }

    .circle-1 {
        top: 8px;
        left: 6px;
    }

    .circle-2 {
        bottom: 8px;
        right: 6px;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero-search-form {
        margin: 30px auto;
    }

    .hero-search-container {
        padding: 10px 16px;
    }

    .hero-search-input {
        font-size: 15px;
    }

    .hero-search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-nav-links {
        gap: 20px;
        margin-top: 25px;
        flex-wrap: wrap;
    }

    .hero-nav-links .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    /* Sections */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .services,
    .projects,
    .why-us,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Apps Grid Responsive */
    .apps-grid-container {
        top: 60px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 340px;
        max-height: calc(100vh - 80px);
    }

    .apps-grid-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .app-icon {
        width: 48px;
        height: 48px;
    }

    .app-icon i {
        font-size: 1.3rem;
    }

    .app-name {
        font-size: 0.7rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
        padding: 20px;
    }

    .project-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .project-icon {
        width: 40px;
        height: 40px;
    }

    .project-icon i {
        font-size: 1.2rem;
    }

    .project-name {
        font-size: 1.2rem;
    }

    .project-features li {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .project-actions {
        flex-direction: row;
        gap: 10px;
    }

    .btn-project {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* Why Us */
    .why-us-grid,
    .why-us-cards {
        grid-template-columns: 1fr;
    }

    .why-us-description p {
        font-size: 1rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.95rem;
        padding: 12px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Utility */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-container {
        padding: 12px 15px;
    }

    .logo-svg {
        height: 30px;
    }

    .chakra-btn {
        padding: 4px;
        margin-right: 8px;
        min-width: 34px;
        min-height: 34px;
    }

    .nav-login-btn {
        min-height: 36px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .nav-user-state {
        max-width: 148px;
    }

    .chakra-btn svg {
        width: 28px;
        height: 28px;
    }

    .chakra-btn:hover {
        transform: scale(1.1);
    }

    .grid-dots {
        width: 18px;
        height: 18px;
        gap: 2px;
    }

    .dot {
        width: 2.5px;
        height: 2.5px;
    }

    /* Hero Section */
    .hero {
        padding: 0 0 50px 0;
        min-height: 100vh;
    }

    .hero-content {
        padding: 15px 15px 15px;
    }

    .hero-logo-container {
        margin-top: 55px;
        margin-bottom: 15px;
    }

    .hero-logo {
        width: clamp(200px, 40vw, 350px);
    }

    .company-prefix {
        font-size: 1.3rem;
        margin-bottom: -8px;
    }

    .company-main {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .company-suffix {
        font-size: 1.2rem;
        letter-spacing: 5px;
        margin-left: 8px;
    }

    .as-text {
        margin-left: 8px;
    }

    .circle-group {
        width: 42px;
        height: 42px;
        margin: 0 -6px;
    }

    .circle {
        width: 20px;
        height: 20px;
    }

    .circle-1 {
        top: 6px;
        left: 5px;
    }

    .circle-2 {
        bottom: 6px;
        right: 5px;
    }

    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .hero-search-form {
        margin: 25px auto;
    }

    .hero-search-container {
        padding: 8px 12px;
        border-radius: 20px;
    }

    .hero-search-input {
        font-size: 14px;
    }

    .hero-search-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .hero-nav-links {
        flex-direction: row;
        gap: 12px;
        margin-top: 20px;
    }

    .hero-nav-links .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
        margin-top: 60px;
    }

    /* Sections */
    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .services,
    .projects,
    .why-us,
    .testimonials,
    .ai-working-group,
    .contact {
        padding: 25px 0;
    }

    /* AI Working Group */
    .ai-working-group {
        padding: 60px 0 !important;
    }

    .ai-working-group .section-title {
        font-size: 2rem;
    }

    .ai-working-group .section-subtitle {
        font-size: 1rem;
    }

    .ai-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .ai-image-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .ai-team-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    .ai-details {
        text-align: center;
        padding: 0 20px;
    }

    .ai-details h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .ai-details p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .ai-button-wrapper {
        margin-top: 25px;
    }

    .btn-ai-team {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Service Cards */
    .service-card {
        padding: 25px 15px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Project Cards */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-card {
        padding: 18px;
    }

    .project-header {
        gap: 14px;
        margin-bottom: 18px;
    }

    .project-icon {
        width: 42px;
        height: 42px;
    }

    .project-icon i {
        font-size: 1.3rem;
    }

    .project-name {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .project-actions {
        flex-direction: row;
        gap: 8px;
        margin-top: 10px;
    }

    .btn-project {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .btn-project i {
        font-size: 0.7rem;
    }

    /* Why Us Cards */
    .why-card,
    .why-us-card {
        padding: 25px 15px;
    }

    .why-icon,
    .why-us-card .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .why-us-card h3 {
        font-size: 1.3rem;
    }

    .why-us-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Contact Section */
    .contact-info h3 {
        font-size: 1.4rem;
    }

    .contact-info>p {
        font-size: 0.95rem;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .form-group {
        gap: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.9rem;
        padding: 10px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px 15px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-description,
    .footer-links,
    .footer-contact {
        font-size: 0.9rem;
    }

    /* Modal */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        border-radius: 8px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-body h3 {
        font-size: 1.1rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Utility */
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* AI Working Group - Small Mobile */
    .ai-working-group {
        padding: 40px 0 !important;
    }

    .ai-working-group .section-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .ai-working-group .section-subtitle {
        font-size: 0.9rem;
    }

    .ai-content {
        gap: 25px;
        margin-top: 25px;
    }

    .ai-image-wrapper {
        max-width: 100%;
        border-radius: 15px;
    }

    .ai-team-image {
        max-height: 300px;
    }

    .ai-details {
        padding: 0 15px;
    }

    .ai-details h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .ai-details p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .ai-button-wrapper {
        margin-top: 20px;
    }

    .btn-ai-team {
        padding: 10px 25px;
        font-size: 0.9rem;
        max-width: 100%;
    }

    .btn-ai-team i {
        font-size: 1rem;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .company-main {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .circle-group {
        width: 38px;
        height: 38px;
        margin: 0 -5px;
    }

    .circle {
        width: 18px;
        height: 18px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* AI Working Group - Extra Small */
    .ai-working-group {
        padding: 35px 0 !important;
    }

    .ai-working-group .section-title {
        font-size: 1.4rem;
    }

    .ai-working-group .section-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .ai-content {
        gap: 20px;
        margin-top: 20px;
    }

    .ai-image-wrapper {
        border-radius: 12px;
    }

    .ai-team-image {
        max-height: 250px;
    }

    .ai-details {
        padding: 0 10px;
    }

    .ai-details h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .ai-details p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .ai-button-wrapper {
        margin-top: 15px;
    }

    .btn-ai-team {
        padding: 9px 20px;
        font-size: 0.85rem;
        border-radius: 40px;
    }

    .btn-ai-team i {
        font-size: 0.95rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .company-main {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .hero-nav-links {
        flex-direction: row;
        gap: 25px;
        margin-top: 40px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {

    /* iOS Safari fixes for viewport height */
    .hero {
        min-height: -webkit-fill-available;
    }

    /* Fix for iOS Safari bottom bar */
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* * {
        max-width: 100%;
    } */

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better touch scrolling on iOS */
    .nav-menu,
    .modal-content,
    .contact-form-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}


/* ===================================
   Apps Grid Icon
   =================================== */
.apps-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    margin-right: 15px;
}

.apps-grid-icon:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

.grid-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 24px;
    height: 24px;
}

.dot {
    width: 4px;
    height: 4px;
    background: var(--text-dark);
    border-radius: 50%;
    transition: var(--transition);
}

.apps-grid-icon:hover .dot {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments for apps grid icon */
@media (max-width: 768px) {
    .apps-grid-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .grid-dots {
        width: 20px;
        height: 20px;
        gap: 3px;
    }

    .dot {
        width: 3px;
        height: 3px;
    }
}

/*
===================================
   Apps Dropdown Menu
   =================================== */
.apps-dropdown {
    position: absolute;
    top: 100%;
    right: 60px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

.apps-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apps-dropdown-content {
    padding: 8px 0;
}

.apps-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.apps-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.apps-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.apps-dropdown-item:first-child:hover i {
    color: var(--success-color);
}

.apps-dropdown-item:nth-child(2):hover i {
    color: #f59e0b;
}

.apps-dropdown-item:last-child:hover i {
    color: #6b7280;
}

/* Position dropdown relative to nav container */
.nav-container {
    position: relative;
}

/* Responsive adjustments for apps dropdown */
@media (max-width: 768px) {
    .apps-dropdown {
        right: 20px;
        min-width: 180px;
    }

    .apps-dropdown-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ===================================
   Search Bar Section
   =================================== */
.search-section {
    padding: 40px 0 30px;
    background: var(--bg-primary);
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #232426;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 50px;
    overflow: hidden;
}

.search-input-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-input-container:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #4c5057;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 18px 160px 18px 55px;
    background: transparent;
    border: none;
    outline: none;
    color: #080808;
    font-size: 1.05rem;
    font-weight: 400;
    border-radius: 50px;
    width: 100%;
}

.search-input::placeholder {
    color: #4f5762;
}

.search-clear-btn {
    position: absolute;
    left: 50px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    color: #ffffff;
}

.search-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
    z-index: 10;
}

.search-action-btn {
    background: none;
    border: none;
    color: #4c5057;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.search-action-btn:hover {
    color: #3b3e43;
    background: rgba(255, 255, 255, 0.1);
}

.ai-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(107, 114, 128, 0.3);
    border: none;
    border-radius: 25px;
    color: #4c5057;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-mode-btn:hover {
    background: rgba(107, 114, 128, 0.5);
    color: #35373b;
}

.ai-mode-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
}

.ai-mode-btn i {
    font-size: 1rem;
}

.search-tips {
    margin-top: 12px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.search-tips i {
    color: #f59e0b;
}

/* Responsive Design for Search Bar */
@media (max-width: 768px) {
    .search-section {
        padding: 30px 0 20px;
    }

    .search-wrapper {
        padding: 0 15px;
    }

    .search-input-container {
        height: 52px;
    }

    .search-input {
        padding: 16px 140px 16px 50px;
        font-size: 0.95rem;
    }

    .search-icon {
        left: 18px;
        font-size: 1.1rem;
    }

    .search-actions {
        gap: 6px;
        padding-right: 10px;
        flex-shrink: 0;
    }

    .search-action-btn {
        padding: 10px;
        font-size: 1.1rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 36px;
        min-height: 36px;
    }

    .ai-mode-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 36px;
        min-height: 36px;
    }

    .ai-mode-btn span {
        display: none;
    }

    .ai-mode-btn i {
        font-size: 1.1rem;
    }

    .search-tips {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .search-input-container {
        height: 50px;
    }

    .search-input {
        padding: 14px 130px 14px 45px;
        font-size: 0.9rem;
    }

    .search-icon {
        left: 16px;
        font-size: 1rem;
    }

    .search-actions {
        gap: 5px;
        padding-right: 8px;
        flex-shrink: 0;
    }

    .search-action-btn {
        padding: 8px;
        font-size: 1rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 34px;
        min-height: 34px;
    }

    .ai-mode-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 34px;
        min-height: 34px;
    }

    .ai-mode-btn span {
        display: none;
    }

    .ai-mode-btn i {
        font-size: 1rem;
    }

    .search-tips {
        font-size: 0.8rem;
    }
}

/* Extra small screens - Search Bar */
@media (max-width: 360px) {
    .search-input-container {
        height: 48px;
    }

    .search-wrapper {
        padding: 0 10px;
    }

    .search-input {
        padding: 12px 120px 12px 42px;
        font-size: 0.85rem;
    }

    .search-icon {
        left: 14px;
        font-size: 0.95rem;
    }

    .search-actions {
        gap: 4px;
        padding-right: 6px;
        flex-shrink: 0;
    }

    .search-action-btn {
        padding: 7px;
        font-size: 0.95rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 32px;
        min-height: 32px;
    }

    .ai-mode-btn {
        padding: 7px 9px;
        font-size: 0.8rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 32px;
        min-height: 32px;
    }

    .ai-mode-btn span {
        display: none;
    }

    .ai-mode-btn i {
        font-size: 0.95rem;
    }
}

/* ===================================
   Product Marquee Section - Fixed Bottom
   =================================== */
.product-marquee {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 6px 0;
    z-index: 998;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    will-change: transform;
    backface-visibility: hidden;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 50s linear infinite;
    width: fit-content;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    gap: 30px;
    padding: 0 15px;
    align-items: center;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    will-change: transform;
}

.product-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.product-icon {
    width: 50px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}



.product-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1f2937;
    letter-spacing: 0.2px;
}


@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Add padding to body to prevent content from being hidden behind marquee */
body {
    padding-bottom: 48px;
    margin: 0;
    padding-top: 0;
}

/* Responsive adjustments for product marquee */
@media (max-width: 768px) {
    .product-marquee {
        padding: 3px 0;
    }

    body {
        padding-bottom: 38px;
    }

    .marquee-content {
        gap: 10px;
        padding: 0 8px;
    }

    .product-item {
        padding: 3px 8px;
        gap: 5px;
    }

    .product-icon {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    .product-name {
        font-size: 0.68rem;
    }

    .marquee-track {
        animation-duration: 35s;
    }
}

@media (max-width: 480px) {
    .product-marquee {
        padding: 2px 0;
    }

    body {
        padding-bottom: 34px;
    }

    .marquee-content {
        gap: 8px;
        padding: 0 6px;
    }

    .product-item {
        padding: 2px 6px;
        gap: 4px;
        border-width: 0.5px;
    }

    .product-icon {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    .product-name {
        font-size: 0.6rem;
        letter-spacing: 0;
    }

    .marquee-track {
        animation-duration: 20s;
    }
}

@media (max-width: 360px) {
    .product-marquee {
        padding: 2px 0;
    }

    body {
        padding-bottom: 32px;
    }

    .marquee-content {
        gap: 6px;
        padding: 0 4px;
    }

    .product-item {
        padding: 2px 5px;
        gap: 3px;
        border-width: 0.5px;
    }

    .product-icon {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
    }

    .product-name {
        font-size: 0.55rem;
    }
}

/* ===================================
   CRITICAL FIX: Force Search Buttons Visibility on Mobile
   =================================== */

/* Base styles - ensure buttons are always visible */
.search-actions {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    z-index: 100 !important;
}

.search-action-btn,
.ai-mode-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

/* Mobile specific - Maximum specificity */
@media screen and (max-width: 768px) {

    /* Container must accommodate buttons */
    .hero .search-wrapper .search-form .search-input-container {
        overflow: hidden !important;
        position: relative !important;
        height: 52px !important;
    }

    /* Input field - reduce right padding for buttons */
    .hero .search-wrapper .search-form .search-input-container .search-input {
        padding-right: 140px !important;
        font-size: 0.9rem !important;
        padding-left: 50px !important;
    }

    /* Reduce placeholder font size on mobile */
    .hero .search-wrapper .search-form .search-input-container .search-input::placeholder {
        font-size: 0.85rem !important;
    }

    /* Force actions container visibility - Absolute positioning inside */
    .hero .search-wrapper .search-form .search-input-container .search-actions {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        z-index: 999 !important;
        gap: 6px !important;
        padding-right: 10px !important;
    }

    /* Force microphone button visibility */
    .hero .search-wrapper .search-form .search-input-container .search-actions button.search-action-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 10px !important;
    }

    /* Force AI mode button visibility */
    .hero .search-wrapper .search-form .search-input-container .search-actions button.ai-mode-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 10px 12px !important;
    }

    /* Hide AI mode text on mobile, show only icon */
    .hero .search-wrapper .search-form .search-input-container .search-actions .ai-mode-btn span {
        display: none !important;
    }

    /* Ensure icons are visible */
    .hero .search-wrapper .search-form .search-input-container .search-actions button i {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 1.1rem !important;
    }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
    .hero .search-wrapper .search-form .search-input-container {
        height: 50px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-input {
        padding-right: 130px !important;
        font-size: 0.85rem !important;
        padding-left: 45px !important;
    }

    /* Further reduce placeholder on smaller screens */
    .hero .search-wrapper .search-form .search-input-container .search-input::placeholder {
        font-size: 0.8rem !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        gap: 5px !important;
        padding-right: 8px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions button.search-action-btn {
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 8px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions button.ai-mode-btn {
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 8px 10px !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 360px) {
    .hero .search-wrapper .search-form .search-input-container {
        height: 48px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-input {
        padding-right: 120px !important;
        font-size: 0.8rem !important;
        padding-left: 42px !important;
    }

    /* Extra small placeholder text */
    .hero .search-wrapper .search-form .search-input-container .search-input::placeholder {
        font-size: 0.75rem !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        gap: 4px !important;
        padding-right: 6px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions button.search-action-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 7px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions button.ai-mode-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 7px 9px !important;
    }

    .hero .search-wrapper .search-form .search-input-container .search-actions button i {
        font-size: 0.95rem !important;
    }
}

/* ULTRA-CRITICAL: Override ANY hiding styles */
@media screen and (max-width: 991px) {

    .search-actions,
    .search-action-btn,
    .ai-mode-btn,
    button.search-action-btn,
    button.ai-mode-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ===================================
   Mobile spacing fixes (reduce large vertical gaps)
   - Collapse hero vertical centering on small screens so content isn't pushed
     down by a full viewport height.
   - Reduce top padding for team pages so member cards appear nearer the top.
   These are scoped to mobile breakpoints and use !important only where
   necessary to avoid impacting desktop layouts.
   =================================== */
@media (max-width: 768px) {

    /* Default mobile behaviour: keep hero full-viewport on first load so
       About and other sections are not visible until user scrolls. When the
       user scrolls we will add the `.collapsed` class to shrink the hero. */
    .hero {
        align-items: center;
        /* vertically center for first paint */
        min-height: 100vh !important;
        /* keep full-screen initially */
        padding-top: 0 !important;
        padding-bottom: 24px !important;
    }

    /* Collapsed state - applied via JS on user scroll to allow content to
       move up and reduce gap between hero and About section. */
    .hero.collapsed {
        align-items: flex-start !important;
        min-height: auto !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .hero-content {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .hero .hero-logo-container {
        margin-top: 45px !important;
        margin-bottom: 16px !important;
    }

    /* Developers page / team cards - reduce large top spacing on mobile */
    .team-section {
        padding: 20px 0 !important;
    }

    .team-header {
        margin-bottom: 12px !important;
        min-height: 0 !important;
    }

    .team-grid {
        margin-top: 6px !important;
        gap: 18px !important;
    }

    .team-member {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .hero-content {
        padding: 10px 12px !important;
    }

    .team-section {
        padding: 14px 0 !important;
    }

    .team-member {
        padding: 16px !important;
    }
}

/* Ensure developers page back button is visible above hero/nav on mobile */
@media (max-width: 768px) {
    .team-section .back-btn {
        position: fixed !important;
        /* place just below the navbar to avoid covering the logo */
        top: 66px !important;
        left: 12px !important;
        z-index: 1102 !important;
        /* above navbar (1000) and overlays */
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
        width: 44px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
}

/* Slight adjustment for very small screens where navbar may be shorter */
@media (max-width: 480px) {
    .team-section .back-btn {
        top: 65px !important;
        left: 10px !important;
        width: 42px !important;
        height: 42px !important;
    }
}