:root {
    /* Colors - Deep Dark Theme with Vibrant Accents */
    --bg-dark: #0a0a0c;
    --bg-dark-secondary: #121216;
    --primary-accent: #6c5ce7;
    --secondary-accent: #00cec9;
    --tertiary-accent: #fd79a8;
    --text-main: #ffffff;
    --text-muted: #b2bec3;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Gradients */
    --gradient-text: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
    --gradient-1: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --gradient-2: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    --gradient-3: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    /* Placeholder for card images */

    /* Typography */
    --font-family: 'Outfit', sans-serif;
    --h1-size: 4rem;
    --h2-size: 2.5rem;
    --h3-size: 1.5rem;
    --body-size: 1.1rem;

    /* Spacing */
    --section-padding: 6rem 2rem;
    --container-max-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-accent);
    top: -100px;
    left: -100px;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-accent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Utilities */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--text-main);
    color: var(--bg-dark);
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: 2px solid var(--text-main);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    transform: translateY(-3px);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--secondary-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a:not(.btn-primary) {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links li a:not(.btn-primary):hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--section-padding) + 3rem) 2rem var(--section-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: var(--h1-size);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: var(--body-size);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

/* Phone Mockup (CSS Only) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mockup-container {
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 2px solid #333;
}

.screen {
    background: #000;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #2a2a3e, #1f1f2e);
}

/* Simple UI inside phone */
.app-ui-header {
    height: 40px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.app-ui-body {
    padding: 15px;
    display: grid;
    gap: 15px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.short {
    height: 80px;
    width: 60%;
}

.long {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
}


/* Showcase Section */
.showcase-section {
    padding: var(--section-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.tags {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-weight: 600;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-accent);
}

.link-arrow svg {
    transition: transform 0.3s ease;
}

.link-arrow:hover svg {
    transform: translateX(5px);
}

/* Services Section */
.services-section {
    padding: var(--section-padding);
    background: rgba(0, 0, 0, 0.2);
    /* Slight darken */
}

.services-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-box {
    padding: 2.5rem;
    text-align: center;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.service-box .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-box p {
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 12, 0.9);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-social ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .h1-size {
        font-size: 3rem;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    /* Mobile Menu - Simplified for CSS-only preference, but JS hooks enhance it */
    .nav-links {
        display: none;
        /* Needs JS toggle */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark-secondary);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-main);
        margin: 5px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}