:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.5)), url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Background Gradients */
body::before, body::after {
    content: '';
    position: fixed;
    width: 40vw;
    height: 40vh;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.08;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    top: -5%;
    left: -5%;
    background: var(--primary);
}

body::after {
    bottom: -5%;
    right: -5%;
    background: var(--accent);
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* Typography & Utils */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.3s;
    background: rgba(5, 5, 5, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10%;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

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

.btn-nav {
    padding: 8px 24px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 150px 10% 50px;
}

.hero-content {
    animation: fadeUp 1s ease 0.2s both;
}

.subtitle {
    color: var(--primary);
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    text-align: left;
}

.description ul {
    list-style-type: none;
    padding: 0;
}

.description li {
    margin-bottom: 12px;
    padding-left: 20px;
    text-indent: -20px;
    position: relative;
    line-height: 1.8;
}

.description li::before {
    content: '❯';
    position: relative;
    margin-right: 10px;
    color: var(--primary);
    font-size: 0.9rem;
}

.description strong {
    color: white;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeScale 1s ease 0.4s both;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
    animation: morph 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.shape {
    position: absolute;
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -5%;
    right: -5%;
    opacity: 0.3;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -5%;
    left: -5%;
    opacity: 0.2;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

.about-stats {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.stat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.stat h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeScale 1s ease 0.4s both;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 50px;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

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

.method i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: 0.3s;
}

.method:hover i {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.method span {
    font-size: 1.1rem;
    color: white;
}

.method span a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.method span a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-5px);
}

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

.form-group {
    display: flex;
    gap: 20px;
}

.form-group input {
    flex: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
    appearance: none; /* Removes default browser styling for select */
    -moz-appearance: none;
    -webkit-appearance: none;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper::after {
    content: '\f107'; /* FontAwesome angle-down icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.contact-form select option {
    background-color: var(--bg-color); /* Dark background for options so text is visible */
    color: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    border-radius: 15px;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .title {
        font-size: 3.5rem;
    }
    .hero {
        gap: 30px;
    }
    .image-wrapper {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 5% 50px;
    }
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    .about-stats {
        flex-wrap: wrap;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }
    .hero-btns {
        justify-content: center;
    }
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px; /* Hide to the right */
        width: 250px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 120px;
        padding: 120px 30px 0 30px;
        gap: 20px;
        transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        display: flex; /* Override display: none */
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        font-size: 1.2rem !important; /* Force override for all links */
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 12px 0 !important;
        border: 1px solid var(--primary) !important;
        border-radius: 30px !important;
        color: white !important;
        transition: 0.3s;
    }
    .nav-links a::after {
        display: none !important;
    }
    .nav-links a:hover {
        background: var(--primary) !important;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.4) !important;
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for links */
    .nav-links.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.3s; }

    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
        transition: 0.3s;
    }

    .hamburger.active {
        transform: rotate(90deg);
    }

    /* Change hamburger to X when active */
    .hamburger i {
        transition: 0.3s;
    }

    .hamburger.active i::before {
        content: "\f00d"; /* FontAwesome X icon */
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    .section {
        padding: 80px 5%;
    }
}

/* Custom Cursor */
@media (min-width: 769px) {
    .cursor-blob {
        position: fixed;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(0,0,0,0) 70%);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9999;
        transition: transform 0.1s ease-out;
    }
}
