:root {
    /* Colors - Ultra Premium */
    --bg-dark: #050a14;
    /* Darker, richer */
    --bg-card: rgba(20, 25, 40, 0.9);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;

    /* Royal Blue & Cyan */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #38bdf8;
    /* Electric Cyan */
    --accent-glow: rgba(56, 189, 248, 0.5);

    /* Glassmorphism Refined */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* More definition */
    --glass-blur: 20px;
    /* Higher blur for smoothness (User Req: 20px) */

    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 5rem;
    /* Reduced from 8rem */

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Legal Page Content Theme (Light Box) --- */
.legal-content-container {
    background: #ffffff !important;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #000000;
    /* Pure black text for light background */
}

/* Legal Page Headers */
/* Legal Page Headers */
.legal-page-header-section {
    padding-bottom: 0.5rem;
    padding-top: 5rem;
    text-align: center;
}

.legal-title {
    font-size: 2.7rem;
    margin-bottom: 0 !important;
    margin-top: 2rem;
}

/* Legal Content Container Wrapper */
.legal-content-wrapper {
    max-width: 800px;
}

.legal-body-section {
    padding-top: 0 !important;
}

.legal-section-margin {
    margin-bottom: 2rem;
}

.legal-text-secondary {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Ensure strong visibility */
.legal-content-container strong {
    color: #000000 !important;
    font-weight: 700;
}

.legal-heading {
    margin-bottom: 1rem;
    color: #000000 !important;
    /* Force pure black heading */
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-text {
    margin-bottom: 2rem;
    color: #000000 !important;
    /* Force pure black text */
    line-height: 1.8;
}

.legal-content-container ul,
.legal-content-container p {
    color: #000000 !important;
}

.legal-list {
    margin-bottom: 2rem;
    color: #000000 !important;
    line-height: 1.8;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal-link {
    color: var(--primary);
    font-weight: 500;
}

/* Responsive adjustments for Legal Pages */
@media (max-width: 768px) {
    .legal-content-container {
        padding: 1.5rem;
        /* Reduced padding for mobile */
    }

    .legal-title {
        font-size: 2rem;
        /* Smaller title on mobile */
    }

    .legal-heading {
        font-size: 1.25rem;
    }
}

/* Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* Background Mesh */
.bg-gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.1), transparent 25%);
    pointer-events: none;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-fast);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    /* Safe standard tracking */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Focus States */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
}

.btn-outline-nav {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    border-radius: 8px;
    /* Rectangular with slight curve */
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-outline-nav:hover,
.btn-outline-nav:active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
    color: white !important;
    /* Force white to override nav-links hover */
}

/* Ensure active state (current page) also stays white */
.nav-links .btn-outline-nav.active {
    color: white !important;
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes title-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    /* Reduced from 2.5rem */
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

.nav-links .btn {
    opacity: 1;
    color: white;
    /* Ensure button text is white */
}

/* --- Dropdown Menu --- */
.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.link-with-icon {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    /* Reduced from 0.5rem */
}

.dropdown-trigger {
    font-size: 0.75rem;
    /* Slightly smaller icon */
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.3rem;
    /* Reduced padding for tighter look */
    /* Increase clickable area */
}

.dropdown-item:hover .dropdown-trigger {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

/* Desktop Hover */
@media (min-width: 993px) {
    .dropdown-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--glass-bg);
    color: var(--primary);
    padding-left: 1.8rem;
    /* Slide effect */
}

/* Mobile Dropdown */
@media (max-width: 992px) {
    .dropdown-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto;
        /* Fix height issue on mobile */
        padding: 0;
        /* Remove padding here as it's handled by li */
    }

    .link-with-icon {
        width: 100%;
        justify-content: flex-start;
        /* Fix "big space" issue */
    }

    .dropdown-menu {
        position: static;
        /* Flow naturally */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        width: 100%;
        padding-left: 0;
        /* Handled by link indentation */
    }

    .dropdown-menu a {
        padding-left: 0;
        font-size: 1rem;
        color: var(--text-secondary);
        padding: 0.8rem 0;
    }

    .dropdown-menu li {
        padding-left: 1.5rem;
        /* Indent the whole item */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        /* Subtle guide line */
        margin-left: 0.5rem;
    }

    .dropdown-menu.show {
        max-height: 200px;
        /* Arbitrary large height */
        margin-top: 0.5rem;
    }

    .dropdown-trigger.rotate {
        transform: rotate(180deg);
    }
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    padding: 2rem 0;
}

.hero-text {
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    /* Fixed overlap */
    line-height: 1.2;
    /* Slightly increased */
    animation: title-reveal 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    /* max-width: 90%; */
    margin-left: 0;
    margin-right: auto;
    animation: title-reveal 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: title-reveal 0.8s ease-out 0.4s forwards;
    opacity: 0;
}



/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* --- Services Section --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--glass-border), transparent 40%);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: auto;
    /* Push content up if needed */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        /* Reduced from 6rem */
        transition: var(--transition-fast);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        padding: 0 2rem;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.6rem 0;
        /* Reduced from 0.8rem */
        font-size: 1rem;
        /* slightly smaller for "simple" look */
        color: var(--text-primary);
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--primary);
    }

    /* Specific fix for dropdown header in mobile */
    .nav-links .link-with-icon {
        padding: 0.6rem 0;
        /* Reduced from 0.8rem */
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-links .link-with-icon a {
        padding: 0;
        width: auto;
        border: none;
        flex-grow: 1;
        font-size: 1rem;
    }

    .nav-links .btn {
        width: calc(100% - 4rem);
        /* Full width minus container padding */
        display: block;
        margin-top: 1rem;
        padding: 0.7rem 0;
        text-align: center;
        align-self: center;
        margin-left: 0;
        /* Removed margin-left to center consistently */
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* --- About Section --- */
.about-container {
    display: block;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 0;
    list-style: none;
    /* Ensure no bullets */
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.about-list i {
    color: var(--primary);
}


.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.glass-card.card-2 {
    bottom: 0;
    right: 0;
    z-index: 2;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
}

.testimonial-qoute {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-fast);
}

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

.team-img {
    height: 240px;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: none;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.team-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    /* Reduced from 1.5rem */
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    /* Reduced from 2rem 1.5rem */
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.pricing-header {
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    /* Reduced from 1.5rem */
}

.plan-name {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    /* Reduced from 0.4rem */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.plan-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-height: auto;
    /* Removed fixed height to reduce space */
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-top: 0.5rem;
    /* Reduced from 1rem */
    display: block;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 0.6rem;
    /* Reduced from 0.8rem */
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features li i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 0.75rem;
}

.ideal-for-tag {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* --- Footer Refined --- */
/* --- Footer Refined --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Adjusted ratio */
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
    text-align: left;
}

.footer-col {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    /* Match other headers */
    background: linear-gradient(135deg, white, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Add a small accent line under headers */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-list a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    font-size: 0.8em;
    color: var(--primary);
}

.footer-links-list a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-col h4{
    /* margin-left: 15px; */
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links-list {
        align-items: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass bg */
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    border-color: var(--primary);
}

.floating-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Work Section --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-image {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    /* fallback */
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-content .btn-link {
    margin-top: auto;
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

/* --- Project Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-smooth);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    /* Max height for scroll */
    overflow-y: auto;
    /* Enable vertical scroll */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--primary) transparent;
    /* Firefox */
}

/* Webkit Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--glass-border);
    border-radius: 20px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, white, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    margin-top: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.modal-footer {
    margin-top: 2rem;
    text-align: right;
}

.modal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.modal-btn-primary:hover {
    background: var(--primary-dark, #2563eb);
    transform: translateY(-2px);
}

.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    gap: 0.8rem;
}

/* --- Contact Section --- */

/* --- Modal Mobile Fixes --- */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 0 auto;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        background: rgba(0, 0, 0, 0.6);
        /* Dark background for visibility */
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        z-index: 10;
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-img {
        height: 200px;
        /* Smaller image on mobile */
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* align-items: center; */
}

.contact-info {
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

.contact-subtitle {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.contact-form-wrapper {
    background: rgba(20, 25, 40, 0.6);
    backdrop-filter: blur(20px);
    padding: 2rem;
    /* Reduced from 3rem */
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    /* Standardize size */
    width: 100%;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--glass-border), transparent 50%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
}

.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
    cursor: pointer;
    appearance: none;
    /* Custom Chevron Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--bg-dark);
    /* Ensure visibility on dark theme */
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
    /* slightly cyan tinted bg */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
    border-color: #22c55e;
    /* Green for valid */
}

.form-group input:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
    border-color: #ef4444;
    /* Red for invalid */
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
         place-items: center;
    }

    .about-visual {
        display: none;
        /* Simplify for mobile/tablet if needed or adjust */
    }
}

/* --- MOBILE FIXES (Add to bottom of style.css) --- */
@media (max-width: 768px) {

    /* 1. Stack the Buttons Vertically */
    .hero-btns {
        flex-direction: column;
        /* Stacks them on top of each other */
        width: 100%;
        gap: 1rem;
        /* Space between buttons */
        padding: 0 1rem;
        /* Prevent touching screen edges */
    }

    /* Make buttons wide and easy to tap */
    .hero-btns .btn {
        /* width: 50%; */
        display: block;
        /* Ensures they fill the width */
        text-align: center;
    }

    /* 2. Reduce Headline Size */
    .hero-title {
        font-size: 2.3rem;
        /* Reduced from 3rem/4rem to fit screen */
        line-height: 1.8;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-text{
        width: 100%;
    }
    /* 3. Create "Safe Space" for WhatsApp Button */
    /* This adds invisible padding at the bottom so content scrolls ABOVE the button */
    .hero-content,
    .about-content,
    .contact-wrapper {
        padding-bottom: 50px;
        padding: 0;
    }

    /* 4. Fix WhatsApp Button Position for Mobile */
    /* Moves it slightly to the right/bottom edge to be less intrusive */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        /* Slightly smaller on mobile */
        height: 50px;
        font-size: 24px;
    }
}


/* adi changes */
@media (max-width: 480px){
    .hero-text {
        width: 84%;
    }
}
.hero-title{
    margin-top: 1.5rem;
}
.footer-col h4{
    text-align: center;
}