:root {
    --bg-color: #05070A;
    --primary-purple: #A855F7;
    --secondary-purple: #7C3AED;
    --accent-magenta: #D946EF;
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(15px);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.nest-gradient {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
    will-change: transform;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-purple);
    top: -100px;
    right: -100px;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 350px solid var(--accent-magenta);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-purple);
    top: 40%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 100px) rotate(360deg);
    }
}

/* Header */
.glass-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-width);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.02);
    /* Subtle visibility */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.glass-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo a:hover {
    text-decoration: none;
    color: inherit;
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-purple);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-purple);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    min-height: 1.5em;
    /* Stable height for typewriter */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary,
.btn-primary-sm {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    color: white;
    padding: 0.9rem 1.9rem;
    /* Slightly reduced to account for border */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
    /* Constant border to prevent layout shift */
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
    background-clip: padding-box;
}

.btn-primary-sm {
    padding: 0.5rem 1.4rem;
    /* Adjusted for border */
    font-size: 0.85rem;
}

.btn-primary-sm:hover {
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-3px);
    border-color: var(--accent-magenta);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-3px);
}

/* hero-visual removed for centered layout */

/* Trusted By */
.trusted {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-tag {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.logo-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.logo-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.trusted-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    opacity: 0.5;
    margin-right: 4rem;
    font-family: 'Hind Siliguri', 'Sora', sans-serif;
    transition: var(--transition);
}

.trusted-logo:hover {
    opacity: 1;
    color: var(--text-white);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    padding: 1rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    /* Added for centering */
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    /* Adjusted background */
}

.about-image img {
    max-width: 100%;
    /* Changed from width: 100% */
    height: auto;
    /* Ensure aspect ratio */
    border-radius: 20px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Services */
.services {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.service-card {
    padding: 3rem 2rem;
    text-align: left;
}

.service-card i {
    width: 50px;
    height: 50px;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-purple);
}

/* Projects */
.projects {
    padding: 8rem 0;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.thumbnail-wrapper {
    width: 100%;
    height: 100%;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Team */
.team {
    padding: 8rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-card {
    padding: 2.5rem;
    text-align: center;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 3px solid var(--primary-purple);
}

.team-role {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Contact */
.contact {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-info,
.contact-form-wrapper {
    padding: 3rem;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-desc {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* Increased from 1.5rem */
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem;
    /* Increased from 1.5rem */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: var(--primary-purple);
    transform: translateX(10px);
}

.icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-text p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text span,
.contact-text a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
}

/* Form Styles */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.message-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.fade-in,
.team-card.fade-in {
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .about-grid,
    .contact-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content,
    .about-text,
    .contact-info {
        order: 2;
    }

    .hero-visual,
    .about-image,
    .contact-info,
    .contact-form-wrapper {
        order: 1;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-tagline {
        margin: 0 auto 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-text .section-tag,
    .about-text .section-title,
    .contact-info .section-tag,
    .contact-info .section-title {
        text-align: center !important;
    }

    .contact-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: flex-start;
        /* Changed from center */
        padding-top: 8rem;
        /* Added margin from top */
        gap: 2rem;
        transition: var(--transition);
        z-index: 1001;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
