/* ========================================
   CSS VARIABLES FOR THEME SYSTEM
   ======================================== */

:root {
    /* Primary Purple Colors */
    --primary-purple: #8b5cf6;
    --accent-purple: #c084fc;
    --dark-purple: #6d28d9;
    --neon-purple: #a78bfa;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
    
    /* Transitions */
    --transition-fast: cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
    --transition-base: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --transition-slow: cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Space Mono', monospace;
    /* Mobile nav contrast variables */
    --mobile-nav-bg: rgba(255, 255, 255, 0.95);
    --mobile-nav-text: var(--text-primary);
    --mobile-nav-border: rgba(0, 0, 0, 0.06);
}

/* Dark Mode Variables */
.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #ffffff;
    --bg-card: rgba(30, 41, 59, 0.5);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    
    --glass-bg: rgba(30, 41, 59, 0.3);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    /* Mobile nav dark overrides */
    --mobile-nav-bg: rgba(15, 23, 42, 0.95);
    --mobile-nav-text: #ffffff;
    --mobile-nav-border: rgba(255, 255, 255, 0.06);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background var(--transition-base), color var(--transition-base);
    position: relative;
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-purple);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-purple), var(--accent-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}

/* ========================================
   PARTICLE CANVAS BACKGROUND
   ======================================== */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   WELCOME OVERLAY ANIMATION
   ======================================== */

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hide animation for welcome overlay (bounce out) */
.welcome-overlay.hide-animate {
    animation: bounceOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.welcome-content {
    text-align: center;
}

.logo-burst {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    animation: logoBurst 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animated-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px var(--neon-purple));
}

.company-name-reveal {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.tagline-reveal {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

/* ========================================
   TAB RETURN ALERT
   ======================================== */

.tab-return-alert {
    position: fixed;
    top: 100px;
    right: -300px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-xl), var(--glow-purple);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: right var(--transition-slow);
}

.tab-return-alert.show {
    right: 30px;
}

.tab-return-alert i {
    font-size: 1.5rem;
    animation: wave 0.5s ease infinite;
}

/* ========================================
   DESKTOP NAVIGATION
   ======================================== */

.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-base);
}

.desktop-nav.scrolled {
    height: 60px;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-svg {
    width: 45px;
    height: 45px;
    transition: transform var(--transition-base);
}

.nav-logo:hover .logo-svg {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-items {
    display: flex;
    gap: 5px;
    position: relative;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    position: relative;
    transition: all var(--transition-base);
    cursor: pointer;
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    border-radius: 3px;
    transition: width var(--transition-base);
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 80%;
}

.nav-item.active {
    background: var(--glass-bg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Nav Popover */
.nav-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--bg-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.nav-popover::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg-dark);
}

.nav-item:hover .nav-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--primary-purple);
    color: white;
    transform: rotate(180deg);
    box-shadow: var(--glow-purple);
}

.language-switcher {
    display: flex;
    gap: 5px;
    background: var(--glass-bg);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    box-shadow: var(--shadow-md);
}

.lang-btn:hover:not(.active) {
    background: var(--glass-bg);
    color: var(--text-primary);
}

/* Hide desktop nav on mobile */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--mobile-nav-border);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: var(--mobile-nav-text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all var(--transition-base);
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    transition: all var(--transition-base);
}

.mobile-nav-item.active {
    color: var(--primary-purple);
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(192,132,252,0.12));
    padding: 8px 16px;
}

.mobile-nav-item.active i {
    transform: scale(1.2);
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    border-radius: 3px;
    transition: width var(--transition-base);
}

.mobile-nav-item.active::before {
    width: 60%;
}

/* Show mobile nav on small screens */
@media (max-width: 991px) {
    .mobile-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* ========================================
   FLOATING FAB
   ======================================== */

.floating-fab {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 999;
    cursor: move;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl), var(--glow-purple);
    transition: all var(--transition-base);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fab-button:hover {
    transform: scale(1.1);
}

.fab-button i {
    animation: fingerSpin 3s linear infinite;
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all var(--transition-base);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.fab-menu-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    transform: translateX(100px);
}

.fab-menu.active .fab-menu-item {
    transform: translateX(0);
}

.fab-menu.active .fab-menu-item:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-menu.active .fab-menu-item:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-menu.active .fab-menu-item:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-menu.active .fab-menu-item:nth-child(4) {
    transition-delay: 0.2s;
}

.fab-menu.active .fab-menu-item:nth-child(5) {
    transition-delay: 0.25s;
}

.whatsapp-fab {
    background: #25d366;
}

.call-fab {
    background: #4CAF50;
}

.email-fab {
    background: #EA4335;
}

.linkedin-fab {
    background: #0077b5;
}

.instagram-fab {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fab-menu-item:hover {
    transform: scale(1.15);
}

/* Mobile positioning */
@media (max-width: 768px) {
    .floating-fab {
        bottom: 90px;
        right: 20px;
    }
}

/* ========================================
   MOBILE STICKY THEME TOGGLE (LEFT SIDE)
   Visible on small screens only
   ======================================== */
.mobile-theme-sticky {
    position: fixed;
    left: 16px;
    bottom: 80px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: var(--shadow-xl), var(--glow-purple);
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease, background 0.3s ease;
    animation: floatSticky 3.2s ease-in-out infinite;
}

.mobile-theme-sticky i {
    font-size: 1.2rem;
    transition: transform 0.35s ease;
}

/* Toggled state - rotate and change background to indicate theme */
.mobile-theme-sticky.toggled {
    transform: rotate(320deg) scale(1.02);
    background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.9));
    color: var(--primary-purple);
    box-shadow: 0 8px 30px rgba(139,92,246,0.18);
}

.mobile-theme-sticky.toggled i {
    transform: rotate(180deg) scale(1.05);
}

@keyframes floatSticky {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Hide on larger screens */
@media (min-width: 992px) {
    .mobile-theme-sticky { display: none; }
}

/* Slight reposition for very small devices to avoid overlapping FAB */
@media (max-width: 420px) {
    .mobile-theme-sticky {         bottom: 78px;
        left: 18px;}
}

/* ========================================
   LOGO TEXT ANIMATION
   ======================================== */
.logo-text {
    display: inline-block;
    overflow: visible;
    letter-spacing: 0.02em;
}
.logo-text span,
.company-name-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    will-change: transform, opacity;
    animation: logoLetter 0.48s cubic-bezier(0.2,0.9,0.3,1) forwards;
}
.logo-text.logo-animated span,
.company-name-reveal.logo-animated span {
    /* animation-delay set via inline style var --delay */
}

@keyframes logoLetter {
    0% { opacity: 0; transform: translateY(8px) scale(0.98); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* small pulse for SVG logo when text animates */
.logo-svg.logo-animate {
    animation: logoPulse 0.9s cubic-bezier(0.2,0.8,0.2,1) both;
}

@keyframes logoPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(167,139,250,0)); }
    40% { transform: scale(1.06); filter: drop-shadow(0 6px 18px rgba(167,139,250,0.45)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(167,139,250,0)); }
}

/* Ensure company-name reveal text gets the same style on first visit */
.company-name-reveal { display: inline-block; }

/* ========================================
   GLASS CARD COMPONENT
   ======================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--glow-purple);
    border-color: var(--neon-purple);
}

/* ========================================
   GLOWING TEXT EFFECT
   ======================================== */

.glowing-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: glow 2s ease-in-out infinite alternate;
}

/* ========================================
   SECTION STYLING
   ======================================== */

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    z-index: -1;
}

.video-background {
    background: #00000023; /* fallback while video loads to avoid white gaps */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.315), rgba(138, 92, 246, 0.123));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title .word {
    display: none; /* hide original words; using theme-aware adjective instead */
    margin: 0 10px;
    animation: wordFloat 3s ease-in-out infinite;
}

.hero-title .word:nth-child(1) {
    animation-delay: 0s;
}

.hero-title .word:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-title .word:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: bolder;
    color: rgba(127, 51, 189, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Theme-aware single adjective replacing original words */
.hero-adjective {
    display: inline-block;
    margin: 0 10px;
    font-size: 4.5rem;
    font-weight: 900;
    animation: scaleFade 3s ease-in-out infinite;
    -webkit-animation: scaleFade 3s ease-in-out infinite;
}

/* Ensure adjective is visible over video overlay */
.hero-adjective {
    color: white !important;
    text-shadow: 0 6px 24px rgba(139, 92, 246, 0.55), 0 2px 6px rgba(0,0,0,0.5);
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .hero-adjective {
        font-size: 2.2rem;
    }
}

@keyframes scaleFade {
    0% { transform: scale(0.98); opacity: 0.9; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.9; }
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ensure CTA is centered and responsive */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-button {
    min-width: 160px;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.primary-cta {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    box-shadow: var(--shadow-xl), var(--glow-purple);
}

.primary-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-cta:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-3px);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-icon:nth-child(1) {
    top: 10%;
    left: 10%;
}

.float-icon:nth-child(2) {
    top: 15%;
    right: 15%;
}

.float-icon:nth-child(3) {
    bottom: 20%;
    left: 15%;
}

.float-icon:nth-child(4) {
    bottom: 15%;
    right: 10%;
}

.float-icon:nth-child(5) {
    top: 50%;
    left: 5%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scroll-indicator.hide {
    animation: flip3DOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.ceo-profile {
    text-align: center;
}

.ceo-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
}

.ceo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    border: 4px solid var(--primary-purple);
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    opacity: 0.3;
    filter: blur(20px);
    z-index: 0;
}

.ceo-info h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.ceo-title {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 20px;
}

.ceo-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
}

.ceo-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

/* ========================================
   MISSION VISION VALUES
   ======================================== */

.mvv-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.mvv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--glow-purple);
    transition: all var(--transition-base);
}

.mvv-card:hover .mvv-icon {
    transform: rotateY(360deg);
}

.mvv-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.mvv-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.product-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.product-card p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features i {
    color: var(--primary-purple);
    font-size: 0.9rem;
}

.product-cta {
    width: 100%;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.product-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.service-category {
    margin-bottom: 60px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-purple);
}

.category-title i {
    font-size: 2rem;
}

.service-card {
    height: 100%;
    text-align: center;
    transition: all var(--transition-base);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
    border-color: var(--primary-purple);
    box-shadow: var(--glow-purple);
}

.portfolio-grid {
    display: grid;
    /* Desktop/Laptop: three columns (or more depending on container) */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    transition: all var(--transition-base);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    height: 400px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(192, 132, 252, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: all var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 25px;
}

.view-project-btn {
    padding: 12px 30px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.view-project-btn:hover {
    background: white;
    color: var(--primary-purple);
    transform: scale(1.05);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-grid {
    display: grid;
    /* Desktop/Laptop: three columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card {
    width: 100%;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.gallery-front,
.gallery-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-front {
    background-size: cover;
    background-position: center;
}

.gallery-back {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: white;
    text-align: center;
}

.gallery-card:hover .gallery-front {
    transform: rotateY(-180deg);
}

.gallery-card:hover .gallery-back {
    transform: rotateY(0);
}

.gallery-back h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.gallery-back p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 350px;
}

.review-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    pointer-events: none;
    transition: all var(--transition-slow);
}

.review-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.review-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #FFD700;
    animation: starGlow 2s ease-in-out infinite;
}

.review-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary-purple);
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.slider-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    transform: scale(1.3);
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-post {
    margin-bottom: 40px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.blog-post:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 0 10px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.read-more:hover {
    gap: 12px;
}

.blog-sidebar .sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-posts a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all var(--transition-base);
}

.popular-posts a:hover {
    color: var(--primary-purple);
}

.post-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.categories {
    list-style: none;
}

.categories li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.categories li:last-child {
    border-bottom: none;
}

.categories a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all var(--transition-base);
}

.categories a:hover {
    color: var(--primary-purple);
    padding-left: 10px;
}

.categories span {
    background: var(--glass-bg);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.faq-question i {
    transition: transform var(--transition-base);
    color: var(--primary-purple);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ========================================
   APPOINTMENT FORM
   ======================================== */

.appointment-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.submit-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.whatsapp-submit {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.email-submit {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    color: white;
}

.email-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 30px;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: successPulse 1s ease infinite;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 15px;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-info {
    height: 100%;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.map-container {
    padding: 0;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-purple));
    color: white;
    padding: 60px 0 20px;
    margin-top: 100px;
}

.dark-mode .footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--dark-purple));
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-svg {
    width: 50px;
    height: 50px;
}

.footer-logo h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-widget h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px;
    font-family: var(--font-body);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    border: none;
    background: white;
    color: var(--primary-purple);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.newsletter-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.developer-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
}

.developer-link:hover {
    color: var(--accent-purple);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
   bottom: 145px;
    left: 19px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl), var(--glow-purple);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.rocket-exhaust {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 0;
    background: linear-gradient(180deg, #ff6b35, transparent);
    opacity: 0;
    transition: all var(--transition-fast);
}

.back-to-top:hover .rocket-exhaust {
    height: 30px;
    opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Medium screens (tablet / small laptop): two columns */
    .portfolio-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    /* On narrower tablets and large phones, keep two columns where possible */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On small phones, stack into a single column for readability */
@media (max-width: 420px) {
    .portfolio-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .company-name-reveal {
        font-size: 3rem;
    }
    
    .tagline-reveal {
        font-size: 1.2rem;
    }
    
    .floating-fab {
        bottom: 80px;
        right: 15px;
    }
    
    .fab-button {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}
