:root {
    /* Colors */
    --bg-color: #06050a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #86868b;

    --accent: #2997ff;
    --accent-hover: #0071e3;
    --accent-gradient: linear-gradient(135deg, #2997ff 0%, #00c6ff 100%);

    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(255, 255, 255, 0.25);

    /* Apple-like Typography */
    --font-fam: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --section-gap: 160px;

    /* Transitions */
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-fam);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Background Gradients */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

.glow-1 {
    top: -15vw;
    left: -10vw;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-2 {
    bottom: -10vw;
    right: -10vw;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-3 {
    top: 20vh;
    right: 20vw;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Typography Utils */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: all var(--transition-smooth);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(41, 151, 255, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(41, 151, 255, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 2rem;
    max-width: 900px;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-visual {
    margin-top: 5rem;
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: absolute;
    transition: transform var(--transition-smooth);
}

.main-panel {
    width: 60%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    padding: 0 16px;
    align-items: center;
    gap: 6px;
}

.mockup-header span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
}

.mockup-body {
    padding: 2rem;
    flex: 1;
}

.mockup-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.mockup-box {
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.w-3\/4 {
    width: 75%;
}

.w-full {
    width: 100%;
}

.w-5\/6 {
    width: 83.333%;
}

.side-panel {
    width: 40%;
    height: 80%;
    top: 10%;
    z-index: 2;
    opacity: 0.6;
}

.panel-left {
    left: 5%;
    transform: rotateY(15deg) translateZ(-100px);
}

.panel-right {
    right: 5%;
    transform: rotateY(-15deg) translateZ(-100px);
}

.hero-visual:hover .panel-left {
    transform: rotateY(20deg) translateZ(-150px) translateX(-20px);
}

.hero-visual:hover .panel-right {
    transform: rotateY(-20deg) translateZ(-150px) translateX(20px);
}

/* Sections Global */
.section {
    padding: 8rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Alternate Section (Why Us) */
.section-alternate {
    position: relative;
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-text .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.features-text .section-desc,
.features-body {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    font-family: monospace;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
}

/* Portfolio Grid unused */

/* Contact Section */
.contact-section {
    padding-bottom: 4rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
}

.contact-desc {
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-text {
    font-weight: 500;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-fam);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* Animations (To be triggered by JS) */
.fade-in-element,
.slide-up-element,
.slide-right-element {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up-element {
    transform: translateY(40px);
}

.slide-right-element {
    transform: translateX(-40px);
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    .features-wrapper {
        gap: 2rem;
    }

    .hero-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container .btn {
        display: none;
        /* Hide top right btn on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-visual {
        display: none;
        /* Hide complex mockup on mobile */
    }

    .features-wrapper {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}