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

:root {
    --primary: #FFFFFF;
    --accent: #00B4D8;
    --accent-light: #48CAE4;
    --accent-dark: #0096C7;
    --accent-bright: #90E0EF;
    --bg: #000000;
    --surface: #0A0A0A;
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.3);
}

/* Light Theme */
:root[data-theme="light"] {
    --primary: #000000;
    --bg: #FFFFFF;
    --surface: #F9FAFB;
    --border: rgba(0, 0, 0, 0.1);
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.25);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 180, 216, 0.4);
}

h1, h2, h3, .hero-title, .hero-subtitle, .section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.7);
}

nav::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

:root[data-theme="light"] nav::after {
    background: rgba(0, 0, 0, 0.08);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        gap: var(--spacing-sm);
    }
}

.logo {
    font-size: 1.625rem;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo span {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.logo:hover {
    opacity: 0.8;
}

/* Theme Toggle Button */
.nav-theme-item {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-toggle-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.theme-toggle-mobile:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

:root[data-theme="light"] .theme-toggle-mobile:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.theme-toggle-mobile svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    fill: none;
    transition: transform 0.3s ease;
    display: none;
    flex-shrink: 0;
}

.theme-toggle-mobile:hover svg {
    transform: rotate(20deg);
}

.theme-icon {
    width: 20px !important;
    height: 20px !important;
    stroke: var(--text-primary) !important;
    fill: none !important;
}

:root[data-theme="dark"] .theme-icon-dark,
:root:not([data-theme]) .theme-icon-dark {
    display: block !important;
}

:root[data-theme="light"] .theme-icon-dark {
    display: none !important;
}

:root[data-theme="light"] .theme-icon-light {
    display: block !important;
}

:root[data-theme="dark"] .theme-icon-light {
    display: none !important;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-cheezlab {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(72, 202, 228, 0.08));
    border-radius: 8px;
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: var(--accent-light) !important;
    font-weight: 500;
}

.nav-cheezlab:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(72, 202, 228, 0.15));
    border-color: var(--accent);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

:root[data-theme="light"] .mobile-menu-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

:root[data-theme="light"] .mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.mobile-menu-toggle span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 999px;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 14px;
    transform: translateX(-50%);
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 14px;
    transform: translateX(-50%);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
        display: flex;
        align-items: center;
    }

    .logo {
        order: 1;
        margin-right: auto;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        order: 2;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 80vw);
        padding: 6rem 2rem 2rem;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.45);
        z-index: 999;
        order: 4;
    }

    :root[data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
    }

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

    .nav-links a {
        font-size: 1.125rem;
        color: var(--text-primary);
        padding: var(--spacing-xs) 0;
    }
    
    .nav-links a::after {
        display: none;
    }

    /* Theme Toggle in Mobile Menu */
    .nav-theme-item {
        margin-top: auto;
        padding-top: var(--spacing-xl);
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: center;
    }

    .theme-toggle-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .theme-toggle-mobile:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    :root[data-theme="light"] .theme-toggle-mobile:hover {
        background: rgba(0, 0, 0, 0.05) !important;
    }

    .theme-toggle-mobile svg {
        width: 24px;
        height: 24px;
        stroke: var(--text-primary);
        fill: none;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .theme-toggle-mobile:hover svg {
        transform: rotate(20deg);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: #000;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.7) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

:root[data-theme="light"] .hero {
    background: #fff;
}

:root[data-theme="light"] .hero-video {
    opacity: 1;
    filter: none;
}

:root[data-theme="light"] .hero-overlay {
    background: none;
}

:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .hero-title-type {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .hero-subtitle {
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

:root[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
}

:root[data-theme="light"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-wrap: balance;
    word-break: keep-all;
}

.hero-title {
    margin-bottom: 0.5rem;
}

.hero-title-type {
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-wrap: pretty;
    word-break: keep-all;
}

.hero-subtitle.show {
    opacity: 1;
    transform: translateY(-15px);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-subtitle.show ~ .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

:root[data-theme="light"] .btn-secondary {
    border-color: var(--border);
}

:root[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0;
    animation: fade-in 1s ease 1.5s forwards, float 2s ease-in-out infinite 2.5s;
    z-index: 2;
}

.scroll-indicator::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-down 2s ease-in-out infinite 2.5s;
}

@keyframes fade-in {
    to {
        opacity: 0.6;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Sections */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

/* Vision Section */
.vision {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vision-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
}

.vision-content p {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.vision-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(0, 180, 216, 0.03);
    border: 1px solid rgba(0, 180, 216, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(0, 180, 216, 0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-number span {
    font-size: 2rem;
    opacity: 0.7;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Services Section */
.services {
    background: var(--bg);
}

.services-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.tag {
    padding: 0.375rem 0.875rem;
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

/* Portfolio Section */
.portfolio {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.portfolio-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.portfolio-grid {
    max-width: 100%;
    margin: 0 auto var(--spacing-2xl);
    padding: 0;
    display: flex;
    gap: 1.2rem;
    overflow: hidden;
    position: relative;
}


.portfolio-scroll {
    display: flex;
    gap: 1.2rem;
    animation: scroll-horizontal 60s linear infinite;
    will-change: transform;
}

.portfolio-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 180, 216, 0.2),
        0 0 0 1px rgba(0, 180, 216, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 180, 216, 0.3);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 16px 16px 0 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover::after {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.portfolio-overlay {
    padding: 1rem 1.2rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    background: rgba(10, 10, 10, 0.9);
    border-top-color: rgba(0, 180, 216, 0.3);
}

:root[data-theme="light"] .portfolio-overlay {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .portfolio-item:hover .portfolio-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 180, 216, 0.3);
}

:root[data-theme="light"] .portfolio-item::after {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.4) 80%,
        rgba(255, 255, 255, 0.7) 100%
    );
}

:root[data-theme="light"] .portfolio-item:hover::after {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.5) 80%,
        rgba(255, 255, 255, 0.8) 100%
    );
}

.portfolio-category {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-category {
    color: var(--accent-bright);
    transform: translateX(2px);
}

.portfolio-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.portfolio-item:hover .portfolio-title {
    color: var(--accent-light);
}

.portfolio-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* Technology Section */
.technology {
    background: var(--bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.tech-item {
    padding: var(--spacing-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.tech-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tech-item-link:hover {
    background: rgba(0, 180, 216, 0.05);
}

.tech-item-link .tech-title {
    color: var(--accent);
}

.tech-item-link:hover .tech-title {
    color: var(--accent-light);
}

.tech-link-arrow {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tech-item-link:hover .tech-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.tech-number {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.tech-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.tech-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Clients Section */
.clients {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-height: 100px;
}

.client-logo:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    padding: var(--spacing-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-value a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-2xl) 0;
    }

    .section-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .portfolio-cta {
        display: flex;
        justify-content: center;
    }

    .portfolio-cta .btn {
        width: auto;
        width: fit-content;
        flex: 0 0 auto;
        display: inline-block;
        margin: 0 auto;
        min-width: 200px;
        max-width: 260px;
    }

    .clients,
    .contact {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .portfolio-grid {
        padding: 0;
    }
    
    .portfolio-item {
        width: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

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

    .client-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-links a {
        display: block;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 36px;
    }

    .logo span {
        font-size: 1.25rem;
    }

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

    .client-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }
}

