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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

::selection {
    background: #1a1a1a;
    color: #fff;
}

:root {
    --primary: #1a1a1a;
    --secondary: #2a2a2a;
    --dark: #000000;
    --light: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-700: #3a3a3a;
    --gray-800: #2a2a2a;
    --gray-900: #1a1a1a;
    /* Accent colors */
    --accent-blue: #0ea5e9;
    --accent-blue-light: #38bdf8;
    --accent-blue-dark: #0284c7;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #0284c7 100%);
}

/* Navigation - Apple Glass Style */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.015);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: 'Aoboshi One', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
}

.logo-letter {
    display: inline-block;
    overflow: hidden;
    height: 1.8rem;
    line-height: 1.8rem;
    position: relative;
    vertical-align: top;
}

.logo-letter-inner {
    display: block;
    transform: translateY(-100%);
    opacity: 0;
}

.logo-letter-inner.roll-in {
    animation: slotRoll 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slotRoll {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo:hover {
    opacity: 0.6;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.02em;
}

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

.nav-menu a:hover {
    opacity: 1;
}

.nav-menu a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding: 220px 60px 180px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.1), transparent);
}

.hero::after {
    display: none;
}

@keyframes heroRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: -0.04em;
    margin-bottom: 50px;
    line-height: 1.1;
    color: #1a1a1a;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-title em {
    font-style: normal;
    font-weight: 400;
    color: #1a1a1a;
    position: relative;
}

.hero-title strong {
    font-style: normal;
    font-weight: 500;
    color: #1a1a1a;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6a6a6a;
    margin-bottom: 70px;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

/* Letter animation styles */
.hero-subtitle .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg) scale(0.8);
    transform-origin: bottom;
}

.hero-subtitle .letter.animate-in {
    animation: letterIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-subtitle .letter.fade-out {
    animation: letterOut 0.5s cubic-bezier(0.6, 0.04, 0.98, 0.34) forwards;
}

@keyframes letterIn {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(-90deg) scale(0.8);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes letterOut {
    0% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) rotateX(90deg) scale(0.8);
    }
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.btn {
    padding: 16px 40px;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    background: var(--accent-blue-dark);
    border-color: var(--accent-blue-dark);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Services Section */
.services {
    padding: 180px 60px;
    background: #fafafa;
    position: relative;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6a6a6a;
    text-align: center;
    margin-bottom: 100px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    will-change: transform;
}

/* Hyperspeed canvas for service cards */
.service-hyperspeed-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 2;
}

.service.holding .service-hyperspeed-canvas {
    opacity: 1;
}

/* Progress ring for service cards */
.service-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 3;
}

.service.holding .service-progress-ring {
    opacity: 1;
}

.service-progress-ring circle {
    fill: none;
    stroke: #00d4ff;
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transform-origin: center;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    transition: stroke-dashoffset 0.05s linear;
}

/* Completion flash for service cards */
@keyframes serviceCompletionFlash {
    0% {
        box-shadow: inset 0 0 0 0 rgba(0, 212, 255, 0.9);
        border-color: #00d4ff;
        background: rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
    10% {
        box-shadow: inset 0 0 100px rgba(0, 212, 255, 0.6);
        border-color: #00d4ff;
        background: rgba(0, 212, 255, 0.25);
        transform: scale(1);
    }
    30% {
        box-shadow: inset 0 0 80px rgba(0, 212, 255, 0.4);
        border-color: #00d4ff;
        background: rgba(0, 212, 255, 0.15);
        transform: scale(1);
    }
    60% {
        box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.2);
        border-color: rgba(0, 212, 255, 0.5);
        background: rgba(0, 212, 255, 0.08);
        transform: scale(1);
    }
    100% {
        box-shadow: inset 0 0 0 rgba(0, 212, 255, 0);
        border-color: rgba(255, 255, 255, 0.1);
        background: #1a1a1a;
        transform: scale(1);
    }
}

.service.completed {
    animation: serviceCompletionFlash 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, box-shadow, border-color, background;
}

.service.completed .service-content {
    animation: contentFlash 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contentFlash {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    15% {
        opacity: 0.4;
        transform: scale(1.03);
    }
    35% {
        opacity: 0.75;
        transform: scale(1.01);
    }
    55% {
        opacity: 0.9;
        transform: scale(1.005);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.service.holding {
    transform: scale(0.98);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-content {
    position: relative;
    z-index: 1;
}

.service::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    transition: height 0.3s ease;
    z-index: 0;
}

.service:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.service.holding:hover {
    transform: scale(0.98);
}

.service:hover::before {
    height: 2px;
}

.service.holding::before {
    height: 0;
}

.service h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.service p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* About Section */
.about {
    padding: 180px 60px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.about::before {
    display: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.about-tagline {
    font-size: 1.25rem;
    color: #6a6a6a;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: #fafafa;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 0;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 26, 26, 0.15);
}

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

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-card p {
    font-size: 1rem;
    color: #6a6a6a;
    line-height: 1.8;
    font-weight: 300;
}

/* Team Card Specific */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

a.team-member {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

a.team-member:hover {
    background: #f5f5f5;
    transform: translateX(5px);
    text-decoration: none;
}

a.team-member:active {
    transform: translateX(3px);
}

.member-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.member-role {
    font-size: 0.875rem;
    color: #8a8a8a;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Certification Badge */
a.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

a.certification-badge:hover {
    background: #3a3a3a;
    transform: scale(1.05);
    color: #ffffff;
    text-decoration: none;
}

/* Location */
.about-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 0;
    border: 1px solid rgba(26, 26, 26, 0.06);
}

.location-marker {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.location-marker svg {
    width: 100%;
    height: 100%;
}

.about-location span {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* About Section Responsive */
@media (max-width: 968px) {
    .about {
        padding: 120px 30px;
    }

    .about-header h2 {
        font-size: 2.5rem;
    }

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

    .about-card {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 80px 20px;
    }

    .about-header {
        margin-bottom: 50px;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .about-tagline {
        font-size: 1rem;
    }

    .about-card {
        padding: 24px;
    }

    .about-card h3 {
        font-size: 1.25rem;
    }

    .team-member {
        padding: 12px 16px;
    }

    .member-name {
        font-size: 1rem;
    }
}

/* Legacy about-content support */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.about-content p {
    font-size: 1.125rem;
    color: #6a6a6a;
    line-height: 2;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Portfolio Section */
.portfolio {
    padding: 180px 60px;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Portfolio starfield styling */
.portfolio-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
    z-index: 0;
}

.portfolio-starfield .star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Pure CSS Shooting Stars for Portfolio */
.portfolio-starfield span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 1);
    animation: shootingStar 3s linear infinite;
}

.portfolio-starfield span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shootingStar {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

.portfolio-starfield span:nth-child(1) {
    top: 0;
    right: 0;
    left: initial;
    animation-delay: 0s;
    animation-duration: 2s;
}

.portfolio-starfield span:nth-child(2) {
    top: 0;
    right: 300px;
    left: initial;
    animation-delay: 1s;
    animation-duration: 2.5s;
}

.portfolio-starfield span:nth-child(3) {
    top: 200px;
    right: 0px;
    left: initial;
    animation-delay: 2s;
    animation-duration: 2s;
}

/* Portfolio container and content positioning */
.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio .section-title {
    color: #ffffff;
}

.portfolio .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.portfolio-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.portfolio-image {
    width: 100%;
    height: 320px;
    background-color: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    transition: opacity 0.3s ease;
}

.portfolio-image.has-image {
    background-color: transparent;
}

.portfolio-image.has-image::before {
    background: rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 0;
}

.portfolio-info {
    padding: 40px;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.portfolio-item:hover .portfolio-info h3 {
    opacity: 0.8;
}

.portfolio-info p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Stats Section */
.stats {
    padding: 180px 60px;
    background: #ffffff;
    position: relative;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.stats::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    background: transparent;
    border: none;
    padding: 60px 30px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent-blue);
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.875rem;
    color: #6a6a6a;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* CTA Section */
.cta {
    padding: 180px 60px;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* CTA Starfield */
.cta-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.cta-starfield .star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Shooting Stars in CTA */
.cta-starfield span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 8px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 1);
    animation: shootingStar 3s linear infinite;
}

.cta-starfield span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shootingStar {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

.cta-starfield span:nth-child(1) {
    top: 0;
    right: 0;
    left: initial;
    animation-delay: 0s;
    animation-duration: 1s;
}

.cta-starfield span:nth-child(2) {
    top: 0;
    right: 80px;
    left: initial;
    animation-delay: 0.2s;
    animation-duration: 3s;
}

.cta-starfield span:nth-child(3) {
    top: 80px;
    right: 0px;
    left: initial;
    animation-delay: 0.4s;
    animation-duration: 2s;
}

.cta-starfield span:nth-child(4) {
    top: 0;
    right: 180px;
    left: initial;
    animation-delay: 0.6s;
    animation-duration: 1.5s;
}

.cta-starfield span:nth-child(5) {
    top: 0;
    right: 400px;
    left: initial;
    animation-delay: 0.8s;
    animation-duration: 2.5s;
}

.cta-starfield span:nth-child(6) {
    top: 0;
    right: 600px;
    left: initial;
    animation-delay: 1s;
    animation-duration: 3s;
}

.cta-starfield span:nth-child(7) {
    top: 300px;
    right: 0px;
    left: initial;
    animation-delay: 1.2s;
    animation-duration: 1.75s;
}

.cta-starfield span:nth-child(8) {
    top: 0px;
    right: 700px;
    left: initial;
    animation-delay: 1.4s;
    animation-duration: 1.25s;
}

.cta-starfield span:nth-child(9) {
    top: 0px;
    right: 1000px;
    left: initial;
    animation-delay: 0.75s;
    animation-duration: 2.25s;
}

.cta-starfield span:nth-child(10) {
    top: 0px;
    right: 450px;
    left: initial;
    animation-delay: 2.75s;
    animation-duration: 2.25s;
}

.cta::before {
    display: none;
}

@keyframes ctaPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.btn-large {
    padding: 18px 50px;
    font-size: 0.875rem;
    background: var(--accent-blue);
    color: #ffffff;
    border: 1px solid var(--accent-blue);
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-large::before {
    display: none;
}

.btn-large:hover {
    background: var(--accent-blue-dark);
    border-color: var(--accent-blue-dark);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.btn-outline-white {
    padding: 18px 50px;
    font-size: 0.875rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-outline-white::before {
    display: none;
}

.btn-outline-white:hover {
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    padding: 100px 60px 50px;
    background: #fafafa;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    position: relative;
}

.footer::before {
    display: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 2;
    color: #6a6a6a;
    font-weight: 300;
}

/* Social media links - Apple style */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 2px;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: translateX(2px);
}

.social-links a:hover::after {
    width: 100%;
    background: var(--accent-blue);
}

.social-links a:active {
    transform: translateX(2px) scale(0.98);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #6a6a6a;
    letter-spacing: 0.05em;
}

/* Responsive */

/* Mobile hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin: -10px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablet styles */
@media (max-width: 968px) {
    .nav-container {
        padding: 20px 30px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
        padding: 15px 30px;
    }

    .hero {
        padding: 140px 30px 100px;
        min-height: auto;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -0.02em;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

    .services,
    .portfolio,
    .stats,
    .cta {
        padding: 100px 30px;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 60px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service {
        padding: 40px 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item {
        padding: 40px 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer {
        padding: 80px 30px 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        align-items: center;
    }

    .legal-links {
        align-items: center;
    }
}

/* Phone styles */
@media (max-width: 480px) {
    .nav-container {
        padding: 16px 20px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-menu a {
        font-size: 1.75rem;
        padding: 20px;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -0.01em;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.02em;
        margin-bottom: 40px;
        line-height: 1.6;
    }

    .hero-buttons {
        max-width: 100%;
    }

    .btn {
        padding: 16px 32px;
        font-size: 0.875rem;
        min-height: 52px;
    }

    .services,
    .portfolio,
    .stats,
    .cta {
        padding: 80px 20px;
    }

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

    .section-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 50px;
        line-height: 1.7;
    }

    .service {
        padding: 30px 24px;
    }

    .service h3 {
        font-size: 1.125rem;
    }

    .service p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .portfolio-item {
        height: auto;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-info {
        padding: 24px;
    }

    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }

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

    .stat-item {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.75rem;
        margin-bottom: 10px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .cta {
        padding: 80px 20px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    .cta-content p {
        font-size: 0.9375rem;
        margin-bottom: 40px;
        line-height: 1.7;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-large,
    .btn-outline-white {
        width: 100%;
        padding: 16px 30px;
        min-height: 52px;
    }

    .footer {
        padding: 60px 20px 30px;
    }

    .footer-section h4 {
        font-size: 0.8125rem;
        margin-bottom: 20px;
    }

    .footer-section p {
        font-size: 0.875rem;
    }

    .social-links a {
        font-size: 0.875rem;
        padding: 8px 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling on iOS */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Better touch targets */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .btn-large,
    .btn-outline-white,
    .nav-menu a,
    .social-links a,
    a.team-member,
    a.certification-badge {
        min-height: 44px;
        min-width: 44px;
    }

    .service {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .service:active {
        transform: scale(0.98);
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-size: 0.8rem;
    color: #666;
}

.lang-switcher .lang-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-switcher .lang-btn:hover {
    color: #1a1a1a;
}

.lang-switcher .lang-btn.active {
    color: #1a1a1a;
    font-weight: 500;
}

.lang-switcher .lang-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Legal Links in Footer */
.legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-links a {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 2px;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-links a:hover {
    color: var(--accent-blue);
    transform: translateX(2px);
}

.legal-links a:hover::after {
    width: 100%;
    background: var(--accent-blue);
}

/* Mobile adjustments for language switcher */
@media (max-width: 968px) {
    .lang-switcher {
        position: absolute;
        top: 50%;
        right: 70px;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .lang-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
}
