:root {
    --bg-color: #050508;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --text-color: #dfe6e9;
    --heading-color: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 25px rgba(108, 92, 231, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 3rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 5rem;
    color: #b2bec3;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    padding: 1.2rem 0;
    transition: var(--transition);
    border-bottom: var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    color: #b2bec3;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #a29bfe);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--heading-color);
    transition: var(--transition);
}

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

.hero-content {
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--heading-color);
    font-weight: 800;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: #b2bec3;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--heading-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    animation-delay: 2s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: var(--glow);
    background: rgba(255, 255, 255, 0.06);
}

.icon-box {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    background: rgba(0, 206, 201, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.service-card p {
    color: #b2bec3;
    font-size: 1.05rem;
}

/* Tech Stack */
.tech-stack {
    background: linear-gradient(rgba(5, 5, 8, 0), rgba(108, 92, 231, 0.05), rgba(5, 5, 8, 0));
}

.tech-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.tech-track {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

.about-content p {
    margin-bottom: 2.5rem;
    color: #b2bec3;
    font-size: 1.1rem;
}

.features-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--heading-color);
}

.features-list i {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card h3 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 30px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Footer */
footer {
    background: #020203;
    padding-top: 5rem;
    border-top: var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #636e72;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 150px;
    /* FIX: Restricted width */
    height: auto;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #b2bec3;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.8rem;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--heading-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: #636e72;
    font-size: 0.9rem;
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: #050508;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        border-left: var(--glass-border);
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto;
    }
}