:root {
    /* Colors */
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-accent: #06b6d4;
    --secondary-accent: #f59e0b;
    --muted-color: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Outfit', sans-serif;
    /* Unifying font stack */

    /* Spacing */
    /* Spacing */
    --container-width: 1200px;
    --header-height: clamp(160px, 18vh, 230px);
    /* Significantly increased to fit massive logo prominently */
    --section-padding: clamp(60px, 8vw, 100px);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, var(--secondary-accent), var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), #0891b2);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle definition */
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: all 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.section-padding {
    .section-padding {
        padding: var(--section-padding) 0;
    }
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h2 {
    h2 {
        font-size: clamp(2rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
    }

    margin-bottom: 1rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    z-index: 1001;
    height: 100%;
    /* Fill header height */
}

.logo-img {
    height: auto;
    max-height: 96%;
    /* Keep it slightly padded within the newly enlarged header */
    width: auto;
}

.header-slogan {
    font-weight: 400;
    font-size: 1rem;
    color: var(--muted-color);
    margin-left: 12px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1002;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(6, 182, 212, 0.5);
    /* Branded transparent border */
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    /* Subtle tint of primary color */
    border-color: var(--primary-accent);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

/* Background Glows */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-accent);
    animation: float 10s infinite alternate;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary-accent);
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

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

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    font-weight: 700;
    padding: 0 10px;
    /* Ensure title doesn't touch edges on mobile */
}

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

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-accent);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

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

.service-card p {
    color: var(--muted-color);
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
    height: 100%;
    min-height: 400px;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-accent);
    margin-bottom: 2rem;
}

.success-message p {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.6;
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--muted-color);
    margin-bottom: 1.5rem;
}

.abstract-shape {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    opacity: 0.8;
    filter: blur(40px);
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-box {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contact-subtitle {
    color: var(--muted-color);
    margin-bottom: 2rem;
    padding: 0 10px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-color);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

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

    .logo {
        gap: 16px;
        font-size: 2rem;
        /* Scale down outer font size */
    }


}

@media (max-width: 768px) {
    :root {
        --header-height: 90px;
        /* Slightly more compact */
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        gap: 30px;
        padding-top: var(--header-height);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Hamburger Animation when Active */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 15px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .logo {
        gap: 10px;
        font-size: 1.5rem;
        /* Further reduce for tablet/mobile */
    }



    /* Show slogan if possible, but stack or hide on very small. 
       Let's keep it visible but smaller on tablet, maybe hide on phone if crowded */
    .header-slogan {
        font-size: 0.9rem;
        display: block;
        /* Ensure it's visible on tablet if it fits */
        margin-left: 8px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 40px;
    }

    .contact-box {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        /* font-size inherited from .logo usually, but we can set explicit if needed */
        font-size: 1.25rem;
    }

    .logo {
        font-size: 1.25rem;
    }



    .header-slogan {
        display: none;
        /* Hide on very small screens to preserve space */
    }

    .header-container {
        padding: 0 15px;
    }

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