@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

html[data-theme="dark"] {
    /* Color Palette */
    --color-background-dark: #0b0b12;
    --color-background-medium: #111122;
    --color-background-light: #16162a;
    --color-text: #f0f0f0;
    --color-text-muted: #bbb;
    --color-primary: #6a00ff;
    --color-secondary: #d633ff;
    --color-accent: #d6b3ff;
    --color-white: #ffffff;
    --header-background: #3f2c5a;
    --color-title: var(--color-accent);

    --social-icon-filter: invert(1);

    --logo-filter: none;
    --cursor-color: var(--color-accent);
    --cursor-outline-color: rgba(214, 179, 255, 0.9);
    --cursor-hover-bg: rgba(214, 179, 255, 0.18);
    --cursor-dot-shadow: rgba(214, 179, 255, 0.35);
}

html[data-theme="light"], :root {
    --color-background-dark: #ffffff;
    --color-background-medium: #ffffff;
    --color-background-light: #f8f9fa;
    --color-text: #212529;
    --color-text-muted: #495057;
    --color-primary: #6a00ff;
    --color-secondary: #8e2de2;
    --color-accent: #5e00e6;
    --color-white: #ffffff;
    --header-background: var(--color-white);
    --color-title: var(--color-primary);

    /* Shadows */
    --shadow-light: rgba(106, 0, 255, 0.12);
    --shadow-medium: rgba(106, 0, 255, 0.2);

    /* Spacing & Radius */
    --border-radius-small: 10px;
    --border-radius-medium: 20px;
    --border-radius-large: 30px;

    --cursor-color: var(--color-primary);
    --cursor-outline-color: rgba(106, 0, 255, 0.9);
    --cursor-hover-bg: rgba(106, 0, 255, 0.16);
    --cursor-dot-shadow: rgba(106, 0, 255, 0.25);
    --color-background-dark: #ffffff;
    --color-background-medium: #ffffff;
    --color-background-light: #f8f9fa;
    --color-text: #212529;
    --color-text-muted: #495057;
    --color-primary: #6a00ff;
    --color-secondary: #8e2de2;
    --color-accent: #5e00e6;
    --color-white: #ffffff;
    --header-background: var(--color-white);
    --color-title: var(--color-primary);

    /* Shadows */
    --shadow-light: rgba(106, 0, 255, 0.12);
    --shadow-medium: rgba(106, 0, 255, 0.2);

    /* Spacing & Radius */
    --border-radius-small: 10px;
    --border-radius-medium: 20px;
    --border-radius-large: 30px;
}

* {
    box-sizing: border-box;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scrollbar which can be caused by animations or wide elements */
html, body {
    overflow-x: clip;
}

body{
    margin:0;
    font-family: 'Poppins', sans-serif;
    background: var(--color-background-dark);
    color: var(--color-text);
    line-height: 1.6;
}

/* Prevent body scroll when mobile menu is active */
body.mobile-menu-active,
body.preloader-active {
    overflow: hidden !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
}

/* Custom Scrollbar Styling */
/* Firefox */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-background-light);
}

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-light);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
  border: 2px solid var(--color-background-light);
}

/* Particle style for cursor trail */
.cursor-particle {
    position: fixed;
    border-radius: 50%;
    background: var(--cursor-color);
    pointer-events: none;
    z-index: 9998;
    animation: shrink-and-fade 0.8s ease-out forwards;
}

@keyframes shrink-and-fade {
    to {
        transform: scale(0);
        opacity: 0;
    }
}


/* Legal / Content pages styling (privacy, terms) */
.legal-content-section .legal-content {
    background: var(--color-background-dark);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--color-background-light);
    box-shadow: 0 6px 22px rgba(106,0,255,0.04);
}
.legal-content h1, .legal-content h2, .legal-content h3 { color: var(--color-primary); margin-top: 18px; margin-bottom: 8px; font-weight:700; }
.legal-content p, .legal-content li { color: var(--color-text); line-height:1.8; margin-bottom:12px; }
.legal-content ul { padding-left: 20px; }
.legal-content #contact-us { margin-top: 24px; }
.legal-content .contact-card { background: linear-gradient(180deg, rgba(106,0,255,0.04), rgba(142,45,226,0.03)); padding:20px; border-radius:10px; border:1px solid rgba(106,0,255,0.06); display:inline-block; min-width: 300px; }
.legal-content .contact-card p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 20px;
}
.legal-content .contact-card strong { color: var(--color-primary); display:inline; flex-shrink: 0; }

@media (max-width: 768px) {
    .legal-content-section .legal-content { padding: 18px; }
}

html[data-theme="dark"] body {
    background: var(--color-background-dark);
    color: var(--color-text);
}

body.preloader-active {
    overflow: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* Default light theme background */
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
html[data-theme="dark"] #preloader {
    background: var(--color-background-dark);
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    text-align: center;
    padding: 30px;
}
.preloader-logo {
    width: 110px;
    height: auto;
    display: block;
    /* margin: 0 auto 30px; Increased bottom margin for float effect */
    animation: preloaderLogoFloat 2.5s ease-in-out infinite;
}
.preloader-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 50px;
}

.preloader-wave span {
    width: 8px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 3px;
    animation: waveAnimation 1.2s infinite ease-in-out;
}

.preloader-wave span:nth-child(2) { animation-delay: 0.1s; }
.preloader-wave span:nth-child(3) { animation-delay: 0.2s; }
.preloader-wave span:nth-child(4) { animation-delay: 0.3s; }
.preloader-wave span:nth-child(5) { animation-delay: 0.4s; }
.preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* Space between WebNova and Studio */
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #212529; /* Default light theme text */
    text-transform: uppercase;
}
html[data-theme="dark"] .preloader-text {
    color: var(--color-text);
}
.preloader-word {
    display: flex;
    gap: 5px; /* Space between letters */
}
.preloader-studio {
    font-size: 1.5rem; /* Smaller font for Studio */
    font-weight: 600;
}
.preloader-text span {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    animation: preloaderText 1s ease-out forwards;
    animation-delay: 0.2s; /* All letters start animating after a short delay */
}

@keyframes preloaderLogoFloat {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 5px 15px rgba(106,0,255,0.3));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 20px 25px rgba(214,51,255,0.4));
    }
}
@keyframes preloaderText {
    to {
        opacity: 1;
        transform: translateY(0);
        color: var(--color-primary);
        text-shadow: 0 0 18px rgba(106, 0, 255, 0.18);
    }
}

@keyframes waveAnimation {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
header{
    background: var(--header-background);
    padding: 10px 20px; /* Padding kam kiya gaya */
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.4s ease, background-color 0.3s ease;
}
header img{
    height: 50px; /* Laptop/Desktop ke liye logo ka size kam kiya gaya */
    transition: transform 0.3s ease;
    filter: var(--logo-filter);
}
header img:hover {
    transform: scale(1.05);
}
nav {
    flex-grow: 1;
    text-align: center;
    /* text-align: center; ko flexbox se replace kiya gaya hai */
    display: flex;
    justify-content: center;
    align-items: center;
}
nav a{
    display: inline-flex; /* Changed to flex for icon alignment */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    color: var(--color-primary);
    margin:0 20px; /* Spacing badhaya gaya */
    text-decoration:none;
    font-weight: 600;
    font-size: 1.05rem; /* Font size badhaya gaya */
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
nav a:hover,
.nav-item:hover > a,
.nav-item.active > a {
    color: var(--color-accent);
}

html[data-theme="dark"] nav a {
    color: var(--color-text);
}

.nav-item > a {
    margin-right: 0; /* Remove right margin for dropdown toggles */
}

.nav-item {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.96);
    background: var(--color-background-medium);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
    z-index: 110;
    overflow: hidden;
    text-align: left;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    display: flex; /* For icon alignment */
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}

.dropdown:hover .dropdown-menu a,
.dropdown:focus-within .dropdown-menu a {
    opacity: 1;
    transform: translateX(0);
}

.dropdown:hover .dropdown-menu a:nth-child(1),
.dropdown:focus-within .dropdown-menu a:nth-child(1) { transition-delay: 0.06s; }
.dropdown:hover .dropdown-menu a:nth-child(2),
.dropdown:focus-within .dropdown-menu a:nth-child(2) { transition-delay: 0.12s; }
.dropdown:hover .dropdown-menu a:nth-child(3),
.dropdown:focus-within .dropdown-menu a:nth-child(3) { transition-delay: 0.18s; }
.dropdown:hover .dropdown-menu a:nth-child(4),
.dropdown:focus-within .dropdown-menu a:nth-child(4) { transition-delay: 0.24s; }
.dropdown:hover .dropdown-menu a:nth-child(5),
.dropdown:focus-within .dropdown-menu a:nth-child(5) { transition-delay: 0.30s; }
.dropdown:hover .dropdown-menu a:nth-child(6),
.dropdown:focus-within .dropdown-menu a:nth-child(6) { transition-delay: 0.36s; }

.dropdown-menu a:hover {
    background: var(--color-background-light);
    color: var(--color-primary);
}

/* Dark mode me submenu text aur icon ko halka purple rakha gaya hai readability ke liye */
html[data-theme="dark"] .dropdown-menu a {
    color: var(--color-accent);
}

.dropdown-menu a i {
    width: 18px; /* Align icons in dropdown */
}

nav a.active {
    color: var(--color-accent);
    font-weight: 700;
}

nav a .fa-chevron-down {
    font-size: 0.7rem; /* Thoda chota icon */
    margin-left: 3px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-item:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-enquiry {
    display: none;
}

/* Header Enquiry Button */
.btn-header-enquiry {
    padding: 8px 20px;
    margin-left: 20px;
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}
html[data-theme="dark"] .btn-header-enquiry {
    border: 2px solid var(--color-white);
}
.btn-header-enquiry:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--color-text);
    padding: 10px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.theme-toggle-btn:hover {
    background-color: var(--color-background-light);
    transform: scale(1.1) rotate(15deg);
}
.theme-toggle-btn i {
    position: absolute;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.theme-icon-moon { opacity: 0; transform: scale(0) rotate(-90deg); }
.theme-icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: scale(0) rotate(90deg); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    pointer-events: none;
}

@media (max-width: 992px) {
    header {
        min-height: 78px;
        justify-content: flex-start; /* Align items to the start for left-side toggle */
        padding: 10px 16px;
        gap: 8px;
        align-items: center; /* Sabhi items ko vertically center me lane ke liye */
    }

    header .logo-link {
        position: static;
        transform: none;
        line-height: 0;
        margin-left: 10px; /* Space between toggle and logo */
        flex-shrink: 0;
    }

    header img {
        height: 45px; /* Mobile ke liye logo ka size kam kiya gaya */
    }

    .header-actions {
        margin-left: auto; /* Push actions to the far right */
        gap: 7px;
        z-index: 121;
    }

    .btn-header-enquiry {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 8px 12px;
        min-height: 38px;
        border-radius: 999px;
        font-size: 0.82rem;
        white-space: nowrap;
        z-index: 121;
    }

    .theme-toggle-btn,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        padding: 0;
    }

    .theme-toggle-btn {
        color: var(--color-primary);
        background: var(--color-background-light);
    }
}

@media (max-width: 321px) {
    header img,
    header.scrolled img {
        height: 30px;
    }
}

@media (max-width: 992px) {

    html[data-theme="dark"] .theme-toggle-btn {
        color: var(--color-white);
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto; /* Content ke hisab se height auto ki gayi */
        max-height: 103vh; /* Screen ke 60% se zyada height nahi hogi */
        padding: 80px 20px 30px; /* Header ke neeche se content start hoga */
        background: var(--color-background-dark);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
        visibility: hidden;
        transform: translateY(-100%); /* Top se slide karega */
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.4s;
        z-index: 99; /* Header (z-index: 100) ke peeche rahega, jab open hoga tab badlega */
        overflow-y: auto;
        text-align: left;
        /* Vertical layout ke liye styles */
        flex-direction: column;
        align-items: stretch; /* Items ko poori width lene ke liye */
        justify-content: flex-start; /* Items ko upar se start karne ke liye */
        gap: 4px; /* Menu items ke beech thoda gap */
    }

    header.mobile-menu-open nav {
        visibility: visible;
        transform: translateY(0); /* Position me slide ho kar aayega */
        z-index: 110; /* Header (100) se upar laane ke liye */
        pointer-events: auto;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    nav a,
    .nav-item > a {
        width: 100%;
        margin: 0;
        padding: 13px 14px;
        border-radius: 8px;
        justify-content: flex-start;
        color: var(--color-primary);
    }

    .mobile-nav-enquiry {
        display: flex;
        margin-top: 8px;
        background: var(--color-secondary);
        color: var(--color-white);
    }

    html[data-theme="dark"] nav a {
        color: var(--color-text);
    }

    nav a::after {
        display: none;
    }

    .nav-item {
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        max-height: 0;
        padding: 0;
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        overflow: hidden;
        transform: none;
        background: var(--color-background-light);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        transform: none;
    }

    .nav-item.dropdown.open .dropdown-menu {
        max-height: 520px;
        padding: 6px 0;
    }

    .dropdown-menu a {
        opacity: 1;
        transform: none;
        padding: 11px 18px;
        color: var(--color-primary);
        white-space: normal;
    }

    /* Mobile Dropdown Toggle Styling */
    .nav-item.dropdown > .dropdown-toggle {
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Use the existing <i> icon and just reposition it for mobile */
    .nav-item.dropdown > .dropdown-toggle .fa-chevron-down {
        display: inline-block; /* Ensure it's visible */
        margin-left: auto; /* Push it to the right */
        font-size: 0.9rem;
        opacity: 0.6;
        color: var(--color-primary);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .nav-item.dropdown.open > .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
        opacity: 1;
    }

    html[data-theme="light"] .dropdown-menu a {
        color: var(--color-primary);
    }

    .dropdown-menu a:hover,
    nav a:hover,
    .nav-item:hover > a,
    nav a.active {
        background: var(--color-background-light);
        color: var(--color-primary);
    }
}

.btn.btn-enquiry {
    background: var(--color-secondary);
    color: var(--color-white);
}
.btn.btn-enquiry:hover {
    background: var(--color-primary);
    transform: translateY(-3px) scale(1.05);
}
.btn{
    display:inline-block;
    /* margin-top:20px; */
    background: var(--color-primary);
    color: var(--color-white);
    padding:12px 24px;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-large);
    text-decoration:none;
    font-weight:700;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.btn.btn-primary:hover {
    background: transparent;
    color: var(--color-white);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--color-background-medium);
}
.slides-container {
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    background-color: var(--color-background-medium);
}

.hero-slide.active {
    opacity: 1;
}
.hero-content {
    position: relative;
    z-index: 2; /* Content ko image ke upar rakhein */
    color: var(--color-white);
    padding: 20px;
    animation: fadeInDown 1s ease-out 0.5s both;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: var(--color-white); /* Ensure h1 color is white */
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 20px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.slider-nav:hover { background: rgba(255, 255, 255, 0.4); }
.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.slider-dot {
    display: inline-block;
    width: 12px; height: 12px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease;
}
.slider-dot.active { background: var(--color-white); transform: scale(1.2); }
.hero-slide.show-on-mobile,
.hero-slide.show-on-desktop,
.slider-dot.show-on-mobile,
.slider-dot.show-on-desktop { display: none; }
@media (min-width: 427px) {
    .hero-slide.show-on-desktop,
    .hero-slide.show-on-both { display: flex; }
    .slider-dot.show-on-desktop,
    .slider-dot.show-on-both { display: inline-block; }
}
@media (max-width: 426px) {
    .hero-slide.show-on-mobile,
    .hero-slide.show-on-both { display: flex; }
    .slider-dot.show-on-mobile,
    .slider-dot.show-on-both { display: inline-block; }
}

@media (max-width: 1024px) {
    .hero-slider {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 74vh; /* Tablet height */
        aspect-ratio: unset;
    }

    .hero-slide {
        align-items: center; /* Vertically center content on mobile */
        padding: 0 14px; /* Adjust padding for centered content */
    }

    .hero-content {
        width: 100%;
        padding: 14px 12px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.18;
    }

    .hero-content p {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .hero-content .btn {
        padding: 9px 16px;
        font-size: 0.9rem;
    }

    .slider-nav {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .slider-nav.prev { left: 12px; }
    .slider-nav.next { right: 12px; }

    .slider-dots {
        bottom: 18px;
        gap: 8px;
    }

    .slider-dot {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 35vh; /* Mobile height */
        min-height: 250px;
    }
}

@media (max-width: 321px) {
    .hero-slider {
        height: 30vh;
        min-height: 220px;
    }

    .hero-slide {
        padding: 0;
    }

    .hero-content {
        padding: 10px 8px;
    }
}

/* Scroll behavior styles */
header.scrolled {
    padding: 8px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
header.scrolled img { 
    height: 45px; /* Scrolled logo ka size bhi adjust kiya gaya */
}
header.hidden {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/*@media (max-width: 992px) {*/
/*    header.scrolled {*/
/*        padding: 10px 16px;*/
/*    }*/

/*    header.scrolled img {*/
/*        height: 38px;*/
/*    }*/
/*}*/

.btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(106, 0, 255, 0.16);
}
.nav-item.dropdown {
    padding-bottom: 15px;
    margin-bottom: -15px;
}
.tech-section {
    padding: 100px 30px 90px;
    background: var(--color-background-medium);
    position: relative;
    overflow: hidden;
}

.tech-section::before,
.tech-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7;
}

.tech-section::before {
    width: 350px;
    height: 350px;
    background: rgba(106, 0, 255, 0.15);
    top: -100px;
    left: -150px;
    animation: blob-float 15s ease-in-out infinite;
}

.tech-section::after {
    width: 300px;
    height: 300px;
    background: rgba(214, 51, 255, 0.12);
    bottom: -120px;
    right: -120px;
    animation: blob-float 12s ease-in-out infinite reverse;
}

.tech-section-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(106, 0, 255, 0.12);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tech-copy h2 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    margin: 0 0 12px;
    color: var(--color-title);
}

.tech-copy p {
    color: var(--color-text-muted);
    max-width: 620px;
}

.tech-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.tech-stat {
    min-width: 120px;
    padding: 14px 18px;
    background: var(--color-background-dark);
    border: 1px solid rgba(106, 0, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.tech-stat strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.tech-stat span {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.tech-visual {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.tech-visual img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.tech-visual-card {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .tech-visual-card {
    background: rgba(17, 17, 34, 0.8);
}

.tech-visual-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.tech-visual-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.tech-marquee {
    margin-top: 60px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.tech-track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: techScroll 30s linear infinite;
}

.tech-track:hover {
    animation-play-state: paused;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    min-width: 140px;
    border-radius: 999px;
    background: var(--color-background-dark);
    color: var(--color-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(106, 0, 255, 0.12);
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(106, 0, 255, 0.16);
}

.tech-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    width: 24px;
    text-align: center;
}

.tech-icon-custom {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-primary);
}

img.tech-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

@keyframes blob-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

@keyframes techScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes techScrollReverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.tech-track.reverse {
    animation: techScrollReverse 30s linear infinite;
    margin-top: 14px;
}

@media (max-width: 992px) {
    .tech-section-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.section{
    padding:60px 30px;
}
.cards{
    display:flex;
    justify-content: center;
    gap:20px;
    flex-wrap:wrap;
}
.card{
    background: var(--color-background-light);
    padding:25px;
    border-radius: var(--border-radius-medium);
    flex:1;
    min-width:250px;
    max-width: 350px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}
footer{
    background: var(--color-primary);
    padding: 80px 30px 0;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
    border-top: none;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}
@media (min-width: 1200px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
}
.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s, transform 0.2s;
}
.footer-column a:hover {
    color: var(--color-white);
    transform: translateX(3px);
}
.footer-logo {
    height: 127px;
    margin-bottom: -30px;
    filter: var(--logo-filter);
}
.footer-description {
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-contact i {
    color: var(--color-white);
    width: 20px;
    text-align: center;
}
.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.footer-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: 50%;
    text-decoration: none;
    border: 2px solid var(--color-white);
    transition: all 0.3s ease;
}
.footer-social-links a:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
}
.footer-social-links a i {
    color: inherit; /* Ensure icon color matches link color */
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    footer {
        /* Mobile view me footer ke background ko thoda dark kar diya gaya hai */
        background: #4e00c2;
        padding: 30px 15px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px; /* Boxes ke beech ka gap kam kiya gaya */
        text-align: center;
    }

    /* Har footer column ko ek alag box me style kiya gaya hai */
    .footer-column {
        background: var(--color-primary); /* Original footer color ko box ke background me use kiya gaya */
        padding: 25px;
        border-radius: var(--border-radius-medium);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-logo {
        height: 96px;
        margin: 0 auto 14px;
        display: block;
    }

    .footer-description {
        max-width: 340px;
        margin: 0 auto 18px;
        text-align: left;
    }

    .footer-contact p {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 36px;
        padding: 16px 0;
        font-size: 0.88rem;
    }
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin: 0;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    background-color: var(--color-background-light);
    color: var(--color-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(106, 0, 255, 0.2);
}

form button{
    background: var(--color-secondary);
    color: var(--color-white);
    padding:12px 20px;
    border:none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
form button:hover {
    background-color: var(--color-primary);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-background-medium);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--color-primary);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius-medium);
    position: relative;
    box-shadow: 0 5px 30px var(--shadow-medium);
    animation: slideIn 0.4s ease-out;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-white);
}

@keyframes popup-show {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popup-hide {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Success Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-primary);
    color: white;
    padding: 20px 40px;
    border-radius: var(--border-radius-medium);
    z-index: 2000;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: popup-show 0.4s ease-out, popup-hide 0.4s 2.6s ease-in forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Side Features: Theme Switcher & Social Bar */
.side-features {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none; /* Prevent this container from blocking clicks */
}

/* Social Bar Styles */
.social-bar {
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto; /* Allow clicks on the social bar itself */
    border-radius: 30px;
}

.social-bar-icon {
    width: 50px;
    height: 50px;
    background: #6a00ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
    border: 2px solid var(--color-white);
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.social-bar-icon:hover {
    transform: scale(1.1) rotate(-30deg);
}

.social-bar.hover-active .social-bar-icon {
    transform: rotate(180deg) scale(1.05);
}

.social-bar-icon img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(120px);
    opacity: 0;
    border: 2px solid transparent;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.social-bar.hover-active .social-icon {
    transform: translateX(0);
    opacity: 1;
}

.social-icon:hover {
    background-color: var(--social-color);
    border-color: var(--color-white);
}

/* Staggered animation for social icons on hover */
.social-bar.hover-active .social-icon:nth-child(1) { transition-delay: 0.0s; }
.social-bar.hover-active .social-icon:nth-child(2) { transition-delay: 0.05s; }
.social-bar.hover-active .social-icon:nth-child(3) { transition-delay: 0.1s; }
.social-bar.hover-active .social-icon:nth-child(4) { transition-delay: 0.15s; }

/* Brand color icons - default state with brand color for icons */
.social-icon:nth-child(1) img { filter: brightness(0) saturate(100%) invert(21%) sepia(96%) saturate(2000%) hue-rotate(210deg) brightness(95%) contrast(106%); } /* Facebook Blue */
.social-icon:nth-child(2) img { filter: brightness(0) saturate(100%) invert(28%) sepia(73%) saturate(3100%) hue-rotate(330deg) brightness(93%) contrast(106%); } /* Instagram Pink */
.social-icon:nth-child(3) img { filter: brightness(0) saturate(100%) invert(19%) sepia(94%) saturate(2005%) hue-rotate(195deg) brightness(100%) contrast(103%); } /* LinkedIn Blue */
.social-icon:nth-child(4) img { filter: brightness(0) saturate(100%) invert(38%) sepia(72%) saturate(1500%) hue-rotate(192deg) brightness(104%) contrast(105%); } /* Twitter Blue */

/* On hover, force the icon to be white */
.social-icon:hover img {
    filter: brightness(0) invert(1);
}

/* New Sections & Animation */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Set color for all section titles */
.section h2 {
    color: var(--color-title);
    font-size: clamp(2.2rem, 4vw, 3rem); /* Increased font size */
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 700px;
    margin: 25px auto 30px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-summary-card {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 40px;
    border-radius: 32px;
    background: var(--color-background-medium);
    box-shadow: 0 25px 70px rgba(24, 16, 53, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(106, 0, 255, 0.14);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: aboutCardRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(24, 16, 53, 0.16);
}

.about-summary-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.18), transparent 70%);
    filter: blur(8px);
}

.about-summary-card::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(0, 171, 255, 0.16), transparent 70%);
    filter: blur(8px);
}

.about-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.about-summary-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-summary-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
    color: var(--color-title);
}

.about-summary-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0 32px;
}

.about-highlight {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 0, 255, 0.12);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-highlight:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 14px 30px rgba(106, 0, 255, 0.12);
}

html[data-theme="dark"] .about-highlight {
    background: rgba(255, 255, 255, 0.05);
}

.about-highlight i {
    font-size: 1.45rem;
    color: var(--color-primary);
    animation: floatIcon 3s ease-in-out infinite;
}

.about-highlight:nth-child(2) i {
    animation-delay: 0.2s;
}

.about-highlight:nth-child(3) i {
    animation-delay: 0.4s;
}

html[data-theme="dark"] .about-highlight i {
    color: var(--color-accent);
}

.about-highlight div {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.about-summary-card .btn.btn-primary {
    display: inline-block;
    margin-top: 6px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6a00ff, #8f2dff);
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 25px rgba(106, 0, 255, 0.18);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.about-summary-card .btn:hover {
    background: #ffffff;
    color: #1f1235;
    border: none;
    box-shadow: 0 16px 30px rgba(106, 0, 255, 0.24);
}

@keyframes aboutCardRise {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* .section-light {
    background-color: var(--color-background-light);
} */

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Increased gap */
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    aspect-ratio: 4 / 3;
}

.portfolio-item:nth-child(odd) { /* For 1, 3, 5... */
    background-color: var(--color-background-light);
}

.portfolio-item img:first-of-type {
    object-fit: contain; /* Main image should not be cropped */
}


.portfolio-item:nth-child(even) { /* For 2, 4, 6... */
    background-color: var(--color-background-dark);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px var(--shadow-medium);
}

/* Animated borders using pseudo-elements */
.portfolio-item::before,
.portfolio-item::after {
    content: '';
    position: absolute;
    z-index: 2; /* Above image and overlay gradient */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Horizontal lines */
.portfolio-item::before {
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-top: 3px solid var(--color-accent);
    border-bottom: 3px solid var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* Vertical lines */
.portfolio-item::after {
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-left: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    transform: scaleY(0);
    transform-origin: top;
}

.portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default to cover */
    object-position: center; /* Ensures the image is centered */
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0; /* Place images at the bottom */
}

/* Hide the second image (hover image) and position it to fly in */
.portfolio-item img:last-of-type {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
}

/* On hover, fly in the second image */
.portfolio-item:hover img:last-of-type {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* On hover, scale and darken the first image to make it recede */
.portfolio-item:hover img:first-of-type {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.portfolio-item:hover::before {
    transform: scaleX(1);
}

.portfolio-item:hover::after {
    transform: scaleY(1);
    transition-delay: 0.2s; /* Delay vertical lines */
}

/* Overlay for text content */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* On top of everything */
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* The gradient is now on the overlay itself, not a separate element */
    background: linear-gradient(to top, rgba(11, 11, 18, 0.6) 0%, transparent 70%);
    
    /* Animate the content inside */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--color-white);
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.portfolio-category {
    color: var(--color-accent);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-link-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4; /* Above overlay */
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, opacity 0.4s ease 0.3s, background-color 0.3s ease, color 0.3s ease;
}

.portfolio-item:hover .portfolio-link-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-link-icon:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* New keyframe for mobile portfolio animation */
@keyframes mobilePortfolioFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@media (max-width: 992px) {
    /* Mobile: Replace portfolio border animation with a float animation */
    .portfolio-item {
        /* Disable desktop transitions and add a new float animation for mobile */
        transition: none;
        animation: mobilePortfolioFloat 3.5s ease-in-out infinite;
    }

    .portfolio-item:nth-child(even) {
        /* Stagger animation for a more dynamic feel */
        animation-delay: -1.75s;
    }

    /* IMPORTANT: Remove the desktop border animation pseudo-elements on mobile */
    .portfolio-item::before,
    .portfolio-item::after {
        display: none;
    }

    /* On mobile, tapping the item will pause the float and keep it raised */
    .portfolio-item:hover {
        animation-play-state: paused;
        /* We explicitly set the transform again to ensure it stays raised on tap */
        transform: translateY(-7px);
        /* The original box-shadow from desktop hover is kept for feedback */
        box-shadow: 0 16px 35px var(--shadow-medium);
    }

    /* IMPORTANT: Disable the second image fly-in effect on mobile */
    .portfolio-item:hover img:last-of-type {
        display: none;
    }

    /* On tap, the main image will zoom slightly and darken */
    .portfolio-item:hover img:first-of-type {
        transform: scale(1.05);
        filter: brightness(0.7);
    }

    /* --- General Mobile & Tablet Adjustments (below 992px) --- */
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section h2 {
        font-size: clamp(1.9rem, 6vw, 2.5rem);
    }

    .tech-section {
        padding: 60px 15px;
    }

    .about-summary-card {
        padding: 30px 20px;
    }

    .stats-card {
        padding: 25px;
        border-radius: 24px;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Fix Development Focus timeline for tablets and mobile - LEFT LINE + RIGHT ITEMS */
    .dev-focus-wrapper {
        margin-top: 20px;
        padding: 0; /* Reset padding */
        position: relative;
    }
    .dev-focus-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;
        transform: none;
        width: 4px;
    }
    /* Keep all items right of the line on mobile */
    .dev-focus-item.left,
    .dev-focus-item.right {
        width: calc(100% - 80px);
        max-width: none;
        margin: 0 0 40px 80px;
        padding: 25px 25px 25px 40px;
        text-align: left;
    }
    .dev-focus-item.left:not(:first-child),
    .dev-focus-item.right {
        margin-top: 40px;
    }
    .dev-focus-item h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    .dev-focus-item p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .dev-focus-item::before,
    .dev-focus-item.right::before {
        display: block;
        top: 50%;
        left: -50px;
        transform: translate(-50%, -50%);
    }

    /* Adjust pricing card for tablets and mobile */
    .pricing-card.recommended {
        transform: none; /* Remove scaling on mobile to prevent overflow */
    }
    .pricing-card {
        padding: 30px 25px;
    }
}

/* Statistics / Counter Section */
.stats-section {
    padding-top: 20px;
}

.stats-card {
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(106, 0, 255, 0.12), rgba(214, 51, 255, 0.08));
    border: 1px solid rgba(106, 0, 255, 0.16);
    box-shadow: 0 20px 60px rgba(106, 0, 255, 0.12);
}

.stats-card::before {
    content: '';
    position: absolute;
    inset: -30px auto auto -30px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    filter: blur(20px);
    animation: pulseGlow 6s ease-in-out infinite;
}

.stats-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(214, 51, 255, 0.16);
    filter: blur(20px);
    animation: pulseGlow 7s ease-in-out infinite reverse;
}

.stats-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-bottom: 24px;
}

.stats-content h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.stats-content p {
    margin: 0;
    color: var(--color-text-muted);
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.stat-item {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(106, 0, 255, 0.12);
}

body[data-theme="dark"] .stat-item {
    background: rgba(17, 17, 34, 0.72);
}

html[data-theme="dark"] .stat-label {
    color: var(--color-primary);
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

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

/* Testimonial Card */
.testimonial-card {
    background: var(--color-background-light);
    border-left: 4px solid var(--color-primary);
    padding: 25px;
    border-radius: var(--border-radius-small);
    flex: 1;
    min-width: 300px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(106, 0, 255, 0.12);
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}

/* Reveal on Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Our Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}
.process-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.process-path path {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3px;
    stroke-linecap: round;
}
.process-step {
    position: relative;
    text-align: center;
    padding: 20px;
}
.process-icon {
    width: 80px;
    height: 80px;
    background: var(--color-background-dark);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.process-icon span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}
.process-step:hover .process-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--shadow-medium);
}
.process-icon.active {
    background-color: var(--color-primary);
    transform: scale(1.1);
}
.process-icon.active span {
    color: var(--color-white);
}
.process-step h3 {
    margin-bottom: 10px;
    color: var(--color-text);
}
.process-step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

@keyframes mobileProcessRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mobileProcessPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(106, 0, 255, 0);
    }
    50% {
        box-shadow: 0 12px 30px rgba(106, 0, 255, 0.22);
    }
}

@media (max-width: 768px) {
    .process-timeline {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
        padding: 0;
    }

    .process-path {
        display: none;
    }

    .process-step {
        display: grid;
        grid-template-columns: 58px 1fr;
        column-gap: 14px;
        align-items: center;
        text-align: left;
        padding: 16px;
        border-radius: 14px;
        background: var(--color-background-medium);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    .reveal.active .process-step {
        animation: mobileProcessRise 0.55s ease forwards;
    }

    .reveal.active .process-step:nth-child(3) { animation-delay: 0.08s; }
    .reveal.active .process-step:nth-child(4) { animation-delay: 0.16s; }
    .reveal.active .process-step:nth-child(5) { animation-delay: 0.24s; }

    .process-icon {
        grid-row: 1 / span 2;
        width: 54px;
        height: 54px;
        margin: 0;
        border-width: 2px;
        animation: mobileProcessPulse 2.4s ease-in-out infinite;
    }

    .process-icon span {
        font-size: 1.25rem;
    }

    .process-step h3 {
        margin: 0 0 4px;
        font-size: 1.05rem;
    }

    .process-step p {
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.55;
    }
}

/* Feature Split Section */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.feature-split-image img {
    width: 100%;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 30px var(--shadow-light);
}
.feature-split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.feature-split-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.feature-split-content li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}
.feature-split-content li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Development Focus Section */
.dev-focus-wrapper {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 0;
}
.dev-focus-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--color-background-light);
    transform: translateX(-50%);
    border-radius: 3px;
}
.dev-focus-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--line-height, 0%);
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
    transition: height 0.1s linear;
    border-radius: 3px;
}
.dev-focus-item {
    padding: 20px 40px;
    width: calc(50% - 40px);
    border-radius: var(--border-radius-medium);
    position: relative;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    box-shadow: 0 6px 20px var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center;
    overflow: visible;
}
.dev-focus-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-background-dark);
    border: 4px solid var(--color-primary);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.dev-focus-item.filled::before {
    background-color: var(--color-primary);
    border-color: var(--color-secondary);
    /* Add a subtle glow to the filled circle */
    box-shadow: 0 0 15px var(--color-secondary);
}
.dev-focus-item.filled:hover::before {
    /* Ensure the circle does not move or transition on hover when filled */
    transform: translate(-50%, -50%);
    transition: none;
}
.dev-focus-item.filled:hover {
    /* Explicitly disable hover effect for filled items */
    transform: none;
    box-shadow: 0 6px 20px var(--shadow-medium); /* Keep original shadow */
    transition: none; /* Forcefully disable all transitions on hover */
}
.dev-focus-item:not(.filled):hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(106, 0, 255, 0.4);
}

.dev-focus-item:not(.filled):hover::before {
    transform: translate(-50%, -50%);
}
.dev-focus-item.left {
    margin-right: 50%;
    text-align: left;
    padding-right: 60px;
}
.dev-focus-item.left::before {
    left: calc(100% + 40px);
}
.dev-focus-item.right {
    margin-left: calc(50% + 40px);
    margin-top: 100px;
    text-align: left;
    padding-left: 60px;
}
.dev-focus-item.right::before {
    left: -40px;
}

/* Mobile override for Development Focus so only small screens change */
@media (max-width: 992px) {
    .dev-focus-wrapper {
        margin-top: 20px;
        padding: 0;
        position: relative;
    }
    .dev-focus-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px !important;
        width: 4px !important;
        transform: none !important;
    }
    .dev-focus-item,
    .dev-focus-item.left,
    .dev-focus-item.right {
        width: calc(100% - 80px) !important;
        max-width: none !important;
        margin: 0 0 30px 46px !important;
        padding: 22px 20px 22px 46px !important;
        text-align: left !important;
    }
    .dev-focus-item.left {
        margin-right: 0 !important;
    }
    .dev-focus-item.right {
        margin-left: 46px !important;
        margin-top: 0 !important;
    }
    .dev-focus-item.left::before,
    .dev-focus-item.right::before {
        left: -25px !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* ============================================ */
/*              Pricing Section                 */
/* ============================================ */
.star-emoji {
    display: inline-block;
    animation: spin-star 2.5s ease-in-out infinite;
    color: var(--color-primary);
}

@keyframes spin-star {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch; /* Make cards same height */
}

.pricing-card {
    background: var(--color-background-light);
    border-radius: var(--border-radius-medium);
    border: 2px solid var(--color-primary);
    padding: 30px 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
   
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

.pricing-header h3 {
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    min-height: 40px; /* Ensure alignment */
}

.pricing-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.current-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.current-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 4px;
}

.price-details {
    text-align: right;
}

.old-price {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    display: block;
}

.discount-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 25px 0;
    flex-grow: 1; /* Pushes button to the bottom */
}

.pricing-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
}

.feature-icon { color: var(--color-primary); font-weight: bold; font-style: normal; }
.feature-icon-cross { color: var(--color-text-muted); font-style: normal; }

.pricing-card .btn { width: 100%; text-align: center; margin-top: auto; background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.pricing-card .btn:hover { background: var(--color-primary); color: var(--color-white); }

/* Recommended Card Styles */
.pricing-card.recommended { transform: scale(1.05); border: 2px solid var(--color-primary); box-shadow: 0 15px 50px var(--shadow-medium); z-index: 10; }
.pricing-card.recommended:hover { transform: scale(1.05) translateY(-10px); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); color: var(--color-white); padding: 6px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pricing-card.recommended .btn { background: var(--color-primary); color: var(--color-white); }
.pricing-card.recommended .btn:hover { background: var(--color-secondary); border-color: var(--color-secondary); }

/* ============================================ */
/*         Industries We Serve Section          */
/* ============================================ */
#industries {
    background: var(--color-background-light);
    padding-bottom: 90px;
}

.industries-wrapper {
    max-width: 900px;
    margin: 60px auto 0;
    background: var(--color-background-dark);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(106, 0, 255, 0.1);
}

.industries-bucket {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-background-medium);
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    color: var(--color-text-muted);
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0; /* Initially hidden */
    transform: translateY(-200px); /* Start above */
}

#industries.reveal.active .industry-item {
    animation: fall-in 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.industry-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.industry-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@keyframes fall-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for the falling animation */
#industries.reveal.active .industry-item:nth-child(1) { animation-delay: 0.1s; }
#industries.reveal.active .industry-item:nth-child(2) { animation-delay: 0.25s; }
#industries.reveal.active .industry-item:nth-child(3) { animation-delay: 0.15s; }
#industries.reveal.active .industry-item:nth-child(4) { animation-delay: 0.3s; }
#industries.reveal.active .industry-item:nth-child(5) { animation-delay: 0.2s; }
#industries.reveal.active .industry-item:nth-child(6) { animation-delay: 0.35s; }
#industries.reveal.active .industry-item:nth-child(7) { animation-delay: 0.1s; }
#industries.reveal.active .industry-item:nth-child(8) { animation-delay: 0.4s; }
#industries.reveal.active .industry-item:nth-child(9) { animation-delay: 0.25s; }
#industries.reveal.active .industry-item:nth-child(10) { animation-delay: 0.15s; }
#industries.reveal.active .industry-item:nth-child(11) { animation-delay: 0.3s; }

/* ============================================ */
/*                 FAQ Section                  */
/* ============================================ */
#faq {
    background: var(--color-background-dark);
    position: relative;
    overflow: hidden;
}

#faq::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.1), transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start; /* Align to top */
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased gap */
}

.faq-item {
    background: var(--color-background-medium);
    border-radius: var(--border-radius-medium);
    border: 1px solid transparent; /* Start with transparent border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-light);
}

.faq-item.active {
    background: var(--color-background-light);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between; align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    margin-left: 15px;
    background: rgba(106, 0, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: var(--color-white);
}

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

.faq-answer p {
    padding: 0 25px 0px; /* Initial padding */
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if answers are longer */
}

.faq-item.active .faq-answer p {
    padding-bottom: 25px;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .faq-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- About Page Styles --- */

/* About Hero */
.about-hero {
    padding: 80px 30px;
    text-align: center;
    background: var(--color-background-medium);
    border-bottom: 1px solid var(--color-background-light);
}
.about-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--color-primary);
}
.about-hero .section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 800px;
}

.about-intro {
    position: relative;
    overflow: hidden;
}
.about-intro::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.07), transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
}
.about-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    perspective: 1200px;
}
.about-intro-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,240,255,0.95));
    padding: 25px 30px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    border: 1px solid rgba(106, 0, 255, 0.25);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}
.about-intro-card:hover {
    transform: translateY(-10px) rotateX(8deg) rotateY(-4deg);
    box-shadow: 0 25px 50px rgba(106, 0, 255, 0.18);
    border-color: rgba(106, 0, 255, 0.4);
}
.about-intro-card::before {
    content: '';
    position: absolute;
    top: 18px;
    right: -18px;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(106, 0, 255, 0.4);
    background: rgba(106, 0, 255, 0.08);
    border-radius: 18px;
    transform: rotate(10deg);
    z-index: 0;
}
.about-intro-card:nth-child(even)::before {
    left: -18px;
    right: auto;
    transform: rotate(-10deg);
}
.about-intro-card::after {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary), transparent 60%);
    opacity: 0;
    transform: scale(1.5) rotate(45deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
    mix-blend-mode: plus-lighter;
}
.about-intro-card:hover::after {
    opacity: 0.1;
    transform: scale(1) rotate(0deg);
}
.about-intro-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary); /* Fallback */
    transition: transform 0.4s ease;
}
.about-intro-card:hover .card-icon {
    transform: scale(1.1) translateZ(30px);
}
.about-intro-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--color-primary);
    transform: translateZ(20px);
}
.about-intro-card p {
    color: var(--color-text-muted);
    transform: translateZ(10px);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* What We Do */
.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.service-card {
    background: var(--color-background-dark);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-medium);
    color: var(--color-primary);
}
.service-card i {
    font-size: 1.8rem;
    color: var(--color-secondary);
    width: 40px;
}

/* Why Choose Us (About Page) */
.why-choose-about .why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.why-choose-image {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow-light);
}
.why-choose-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.why-choose-image:hover img {
    transform: scale(1.05);
}
.why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.why-choose-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.why-choose-list i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* About Process Timeline */
.about-process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    flex-wrap: wrap;
}
.about-process-timeline .process-line {
    position: absolute;
    top: 25px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: var(--color-background-light);
    z-index: 0;
}
.about-process-timeline .process-line::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 0;
    background: var(--color-primary);
    transition: width 1s ease-in-out;
}
#about-process.reveal.active .about-process-timeline .process-line::after {
    width: 100%;
}
.about-process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 120px;
    margin-bottom: 20px;
}
.about-process-step span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-background-dark);
    border: 4px solid var(--color-background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.5s ease;
}
.about-process-step p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
#about-process.reveal.active .about-process-step:not(:hover) span {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.about-process-step:hover span {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Core Values */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 40px;
    justify-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.value-card {
    padding: 36px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(242,236,255,0.96));
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 5px solid rgba(106, 0, 255, 0.4);
    box-shadow: 0 22px 42px rgba(106, 0, 255, 0.18), 0 0 0 1px rgba(106, 0, 255, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.value-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 24px 52px rgba(106, 0, 255, 0.26), 0 0 0 1px rgba(106, 0, 255, 0.16);
    background: linear-gradient(145deg, rgba(252,248,255,0.98), rgba(244,236,255,0.96));
    border-color: rgba(106, 0, 255, 0.55);
}
.value-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    line-height: 1.2;
    padding: 0 8px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 30px 30px;
}
.cta-section h2 {
    font-size: 2.5rem;
    color: var(--color-white);
}
.cta-section p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 15px auto 30px;
}
.cta-section .btn {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    padding: 14px 32px;
}
.cta-section .btn:hover {
    background: transparent;
    color: var(--color-white);
}

/* Responsive adjustments for about page */
@media (max-width: 992px) {
    .why-choose-about .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-image {
        order: -1; /* Move image to top on mobile */
    }
    .about-process-timeline {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .why-choose-list {
        grid-template-columns: 1fr;
    }

    /* Industries Section Mobile */
    #industries {
        padding-bottom: 60px;
    }
    .industries-wrapper {
        margin-top: 40px;
        padding: 20px;
    }
    .industries-bucket {
        gap: 10px;
    }
    .industry-item {
        padding: 10px 15px;
        font-size: 0.9rem;
        /* Make animation less dramatic on mobile */
        transform: translateY(-60px);
    }
    .industry-item i {
        font-size: 1rem;
    }
    .cta-section h2{
        font-size: 2rem;
    }

    /* Core Values Mobile */
    .core-values-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        margin-top: 30px;
        width: 100%;
        max-width: 600px;
    }
    .value-card {
        flex-basis: calc(50% - 9px); /* 2 columns with gap */
        width: auto; /* Desktop ke fixed width ko reset kiya gaya */
        height: auto; /* Desktop ke fixed height ko reset kiya gaya */
        border-radius: var(--border-radius-medium); /* Make it a card, not an oval */
        min-height: 150px; /* Aapke anurodh par height kam kar di gayi hai */
        padding: 20px;     /* Padding bhi kam kar di gayi hai */
    }
    .value-card h3 {
        font-size: 1.1rem;
    }

    @media (max-width: 576px) {
        .value-card {
            /* On very small screens, make the cards even more compact */
            min-height: 140px;
            padding: 18px;
        }
        .value-card h3 {
            font-size: 1rem;
        }
    }

    /* Statistics Section Mobile */
    .stats-section {
        padding-top: 30px;
    }
    .stats-content {
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-item {
        padding: 16px 10px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    /* About Us Summary Mobile */
    .about-summary-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .about-highlight {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 14px 18px;
    }
    .about-highlight i {
        animation: none; /* Disable icon float on mobile */
    }

    /* Legal Content Page Mobile */
    .legal-content-section {
     
        padding: 80px 12px;
    }
    .legal-content {
       
        padding: 40px 19px;
     
    }
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 25px;
        padding-bottom: 8px;
    }

    /* Platforms Section Mobile */
    .platforms-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .platform-item {
        padding: 15px;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* --- Web Development Page Mobile Styles --- */
    .services-hero {
        padding: 50px 20px;
    }
    .services-hero h1 {
        font-size: 2.1rem;
    }

    .dev-services-grid {
        grid-template-columns: 1fr;
    }
    .dev-service-card {
        padding: 30px 25px;
        text-align: center;
    }

    .features-grid-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-process-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-top: 40px;
    }
    .about-process-timeline .process-line {
        display: none;
    }
    .cta-section {
        padding: 43px 30px;
    }
    .about-process-step {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        background: var(--color-background-dark);
        padding: 15px;
        border-radius: var(--border-radius-medium);
    }
    .about-process-step span {
        margin: 0;
        flex-shrink: 0;
    }

    .why-choose-services-grid {
        display: grid;
        grid-template-columns: 1fr; /* Single column for left alignment */
        gap: 15px;
    }
    .why-choose-item {
        /* Override pill style for a card look */
        border-radius: var(--border-radius-medium);
        padding: 15px; /* Reduced padding */
        text-align: left;
        background: var(--color-background-dark);
        border: 1px solid rgba(106, 0, 255, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added hover effect */
        flex-direction: row;
        gap: 10px;
    }
    .why-choose-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px var(--shadow-light);
        border-color: var(--color-primary);
    }
    .why-choose-item:hover i {
        background: var(--color-primary);
        color: var(--color-white);
    }
    .why-choose-item h3 {
        font-size: 0.9rem; /* Smaller text */
        font-weight: 600;
    }
    .why-choose-item i {
        /* Styled icon inside a circle for better visual appeal */
        font-size: 1.3rem; /* Smaller icon */
        color: var(--color-primary);
        background: rgba(106, 0, 255, 0.1);
        width: 40px; /* Smaller circle */
        height: 40px; /* Smaller circle */
        /* border-radius: 50%; */
        flex-shrink: 0;
    }

    /* Why Choose Us (About Page) Mobile Enhancement */
    .why-choose-about .why-choose-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .why-choose-about .why-choose-list li {
        background: var(--color-background-dark);
        padding: 12px 15px;
        border-radius: 12px;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    /* CTA Sections with two buttons on mobile */
    .hero-button-group .btn,
    .cta-button-group .btn {
        /* flex: 1; ko hatane se button apne content ke hisab se size lenge */
        font-size: 0.9rem;
        padding: 10px 16px; /* Reduce padding for smaller height */
        white-space: nowrap; /* Prevent text wrapping */
    }

    .cta-button-group {
        flex-wrap: nowrap; /* Keep buttons on same line when possible */
        gap: 12px;
    }

    .cta-button-group .btn {
        min-width: 140px;
    }
}

@media (max-width: 520px) {
    .cta-button-group {
        flex-wrap: wrap; /* Stack only on very narrow phones */
    }
    .cta-button-group .btn {
        width: 100%;
        max-width: none;
    }
}

/* --- Web Development Page Styles --- */

/* Services Hero */
.services-hero {
    padding: 40px 30px;
    text-align: center;
    background: var(--color-background-medium);
    border-bottom: 1px solid var(--color-background-light);
    position: relative;
    overflow: hidden;
}
.services-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.1), transparent 70%);
    animation: blob-float 15s ease-in-out infinite;
}
.services-hero h1 {
    font-size: clamp(1.7rem, 5vw, 3.5rem);
    color: var(--color-primary);
}
.hero-button-group,
.cta-button-group {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Buttons ko chote screens par wrap hone dega */
}
.hero-button-group .btn,
.cta-button-group .btn {
    min-width: 180px;
}
.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text-muted);
}
html[data-theme="dark"] .btn-secondary {
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-color: var(--color-white);
}
.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

body.page-seo-optimization-services .btn-secondary:hover,
.services-hero .btn-secondary:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Intro Section */
.intro-section .intro-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.intro-image img {
    width: 100%;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 50px var(--shadow-light);
}
.intro-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}
.intro-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Dev Services Section */
.dev-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.dev-service-card {
    background: var(--color-background-dark);
    padding: 35px;
    border-radius: var(--border-radius-medium);
    border: 1px solid transparent;
    border-color: var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dev-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    
}
.dev-service-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}
.dev-service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.dev-service-card p {
    color: var(--color-text-muted);
}

/* Features Included Section */
.features-included {
    background: var(--color-background-dark);
}
.features-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding: 0;
    list-style: none;
}
.feature-list-item {
    background: var(--color-background-light);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.feature-list-item:hover {
    transform: translateX(5px);
    color: var(--color-primary);
    box-shadow: 0 10px 25px var(--shadow-light);
}
.feature-list-item i {
    color: var(--color-secondary);
}

/* Why Choose Services Section */
.why-choose-services {
    background: var(--color-background-light);
}
.why-choose-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.why-choose-item {
    background: linear-gradient(145deg, var(--color-background-medium), var(--color-background-dark));
    padding: 25px 20px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    border: 1px solid rgba(106, 0, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.why-choose-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}
.why-choose-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px var(--shadow-light);
    border-color: var(--color-primary);
}
.why-choose-item:hover::before {
    left: 120%;
}
.why-choose-item i {
    font-size: 2rem;
    color: var(--color-primary);
    background: rgba(106, 0, 255, 0.1);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.why-choose-item:hover i {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}
.why-choose-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive for Web Dev Page */
@media (max-width: 992px) {
    .intro-section .intro-content {
        grid-template-columns: 1fr;
    }
}

/* Explanation Section for Service Pages */
.explanation-section {
    text-align: center;
}
.explanation-section h2 {
    margin-bottom: 10px;
}
.explanation-section .section-subtitle {
    margin-top: 10px;
}

/* Platforms We Work With Section */
.platforms-section {
    background: var(--color-background-dark);
    padding: 0 24px;
    display: flex;
    justify-content: center;
}
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    margin: 50px 0 0;
    max-width: 760px;
    width: 100%;
}
.platform-item {
    background: var(--color-background-light);
    padding: 20px 30px;
    border-radius: var(--border-radius-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}
.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-light);
    color: var(--color-primary);
}
.platform-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    width: 25px;
    text-align: center;
}

.why-choose-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.why-choose-item {
    background: var(--color-background-dark);
    padding: 15px 25px;
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.why-choose-item:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}
.why-choose-item h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 992px) {
    .intro-section .intro-content {
        grid-template-columns: 1fr;
        gap: 25px;
        align-items: start;
    }
    .intro-image {
        justify-self: start;
        width: 100%;
        max-width: 100%;
    }
    .intro-image img {
        width: 100%;
        height: auto;
    }
    .intro-text {
        padding: 0 10px;
    }
    .platforms-grid,
    .why-choose-services-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 600px) {
    .intro-section .intro-content {
        gap: 18px;
    }
    .intro-text {
        padding: 0 8px;
    }
    .platforms-grid,
    .why-choose-services-grid {
        grid-template-columns: 1fr;
    }
    .platforms-grid{
        grid-template-columns: 1fr 1fr
    }
    .legal-content-section{
            padding: 80px 3px;
    }
    .legal-content{
            padding: 40px 15px;
    }
}

/* Benefits of SEO Section */
.benefits-section {
    background: var(--color-background-dark);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}
.benefit-card {
    background: var(--color-background-medium);
    padding: 30px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    border: 1px solid transparent;
    border-color: var(--color-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-light);
    
}
.benefit-card i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.benefit-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Service Hub Page Styles --- */
.service-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-hub-card {
    background: var(--color-background-light);
    padding: 35px;
    border-radius: var(--border-radius-medium);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--color-primary);
}

.service-hub-card i {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-hub-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-hub-card p {
    color: var(--color-text-muted);
    flex-grow: 1; /* Pushes button to the bottom */
    margin-bottom: 25px;
}

.service-hub-card .btn {
    align-self: flex-start; /* Align button to the left */
}

/* --- Contact Page Styles --- */
.contact-highlight-section {
    padding-top: 20px;
    padding-bottom: 10px;
    background: var(--color-background-dark);
}

.contact-highlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.contact-highlight-card {
    background: var(--color-background-medium);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.contact-highlight-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

.contact-highlight-card h3,
.contact-highlight-card h4 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.contact-highlight-card p {
    margin: 0 0 18px;
    color: inherit;
    opacity: 0.95;
}

.contact-pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.contact-pill-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.contact-pill-list i {
    color: var(--color-accent);
}

.contact-section {
    position: relative;
    overflow: hidden;
    background: var(--color-background-light);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.08), transparent 70%);
    animation: blob-float 15s ease-in-out infinite;
}

.contact-section .contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: var(--color-background-dark);
    padding: 40px;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.contact-form h3, .contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.contact-details p {
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateX(20px);
}

.contact-details i {
    color: var(--color-primary);
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    text-align: center;
    background: rgba(106, 0, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-section.reveal.active .contact-details li {
    animation: slideInRight 0.6s ease-out forwards;
}
.contact-section.reveal.active .contact-details li:nth-child(1) { animation-delay: 0.2s; }
.contact-section.reveal.active .contact-details li:nth-child(2) { animation-delay: 0.3s; }
.contact-section.reveal.active .contact-details li:nth-child(3) { animation-delay: 0.4s; }
.contact-section.reveal.active .contact-details li:nth-child(4) { animation-delay: 0.5s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .contact-section .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-highlight-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Marquee Section --- */
.marquee-section {
    background: var(--color-primary);
    padding: 12px 0;
    color: var(--color-white);
    position: relative;
    z-index: 50; /* Above hero, below header */
}
.marquee-container {
    display: flex;
    width: 100%;
    overflow: hidden;
}
.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    flex-shrink: 0;
}
.marquee-content span {
    font-weight: 600;
    padding: 0 30px;
    font-size: 1rem;
}
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
.btn-marquee {
    flex-shrink: 0;
    margin: 0 30px;
    padding: 4px 14px;
    font-size: 0.85rem;
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-marquee:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

@keyframes marquee-scroll {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

/* --- Legal Content Page Styles (Privacy, Terms, etc.) --- */
.legal-content-section {
    background: var(--color-background-light);
    padding: 80px 30px;
}

.legal-content {
    max-width: 950px;
    margin: 0 auto;
    background: var(--color-background-dark);
    padding: 40px 50px;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-background-light);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p, .legal-content li {
    color: var(--color-text-muted);
    line-height: 1.9;
}

.legal-content ul {
    padding-left: 25px;
    list-style: '✓  ';
}

.legal-content a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Admin Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  vertical-align: middle;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider { background-color: var(--color-primary); }
input:focus + .slider { box-shadow: 0 0 1px var(--color-primary); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
@media (max-width: 992px) {
    .legal-content-section {
        padding: 80px 12px;
    }
    .legal-content {
        padding: 40px 19px;
    }
    .legal-content h2 {
    font-size: 1.4rem;
    }
    .contact-highlight-grid {
                grid-template-columns: 1fr;
    }
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998; /* Below side-features */
    pointer-events: auto; /* Enable clicks for this element */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    animation-play-state: paused; /* Pause animation on hover */
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hide Enquire button on very small screens as requested */
@media (max-width: 426px) {
    .btn-header-enquiry {
        display: none;
    }
}