@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(20, 20, 24, 0.7);
    --accent-primary: #007AFF;
    /* Apple Blue */
    --accent-secondary: #00F2FF;
    /* Neon Cyan */
    --accent-tertiary: #7E22CE;
    /* Deep Purple */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    /* Spacing */
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Layout Components --- */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 12px 28px;
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    transition: scale 0.2s ease, box-shadow 0.2s ease;
}

.btn-premium:hover {
    scale: 1.05;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.gradient-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -50px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    bottom: -50px;
    right: 200px;
    animation-delay: -5s;
}

@keyframes blob-float {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(50px, 100px) rotate(360deg);
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-label {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Process Timeline */
.process-container {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.process-step:last-child::after {
    display: none;
}

.step-num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-primary);
    z-index: 2;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .hero {
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
        text-align: center;
    }

    .hero-layout {
        flex-direction: column;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .gradient-text {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 32px auto;
    }

    .hero-visual {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 40px;
    }

    .hero-img-container {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .blob-1 {
        width: 250px;
        height: 250px;
        top: -50px;
        right: -20px;
    }

    .blob-2 {
        width: 200px;
        height: 200px;
        bottom: -20px;
        left: -20px;
    }

    /* Mobile Menu Styles */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .process-step::after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* Additional refinement for very small screens */
@media (max-width: 480px) {
    .gradient-text {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Hero Image */
.hero-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 3;
    animation: img-float 6s ease-in-out infinite;
}

@keyframes img-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 30px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 15px;
    letter-spacing: 1px;
}