/* CSS Design System for Portfolio Website */

:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #88888c;
    --text-dark: #444446;
    --border-color: #121214;
    --border-hover: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.05);
    --thermal-hot: #ffffff;
    --thermal-cold: #000000;
    --thermal-glow: rgba(255, 255, 255, 0.15);
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    scrollbar-width: thin;
    scrollbar-color: #2a2a2c #000000;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #222224;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444446;
}

/* Lenis smooth scrolling optimization */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background elements for 3D and Thermal Effects */
#hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    overflow: hidden;
}

#thermal-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2; /* Sits behind text content but overlays bg grid */
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.10;
}

::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0px;
}

/* Typography Utility */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Symmetrical Header Styling */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 583px;
    height: 64px;
    z-index: 100;
    border: 0px solid rgba(255, 255, 255, 0.08);
    background: rgb(0 0 0 / 30%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    margin-top: 12px;
    border-radius: 120px;
}

.site-header.scrolled {
    height: 64px;
    background: rgb(0 0 0 / 71%);
    border-bottom: 0cqmin solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    padding: 0 15px 0px 25px;
}

.nav-right {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;

    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active:not(.contact-btn) {
    color: #ffffff;
}

.contact-btn {
    font-weight: 700 !IMPORTANT;
    padding: 8px 16px;
    border: 0px solid rgb(211 211 211 / 15%);
    border-radius: 100px;
    background: rgb(255 255 255);
    color: black;
    letter-spacing: 0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.logo-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-logo {
    height: 30px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    width: 22px;
    height: 1.5px;
    background: #ffffff;
    transition: var(--transition-fast);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

@keyframes fadeInBg {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.75;
    }
}

.hero-bg-img,
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(1) invert(1) contrast(1.6) brightness(1.1) !important;
    transition: var(--transition-smooth);
    animation: fadeInBg 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, #000000 85%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, #000000 100%);
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-status {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 28px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@keyframes fadeInUpBlur {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 600;
    max-width: 900px;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUpBlur 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    color: #ffffff;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUpBlur 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUpBlur 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 23px;
    border-radius: 80px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: white;
    color: #000000;
    transform: translateY(0px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: #00000000;
    color: var(--text-main);
    border: 1px solid #ffffff69;
    backdrop-filter: blur(3px);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    transform: translateY(0px);
}

/* Hero Showcase Image Frame */
.hero-showcase-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 100px rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
    margin-bottom: 48px;
}

.mockup-frame {
    background: #0d0d0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.mockup-header {
    background: #121214;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red {
    background: rgba(255, 255, 255, 0.15);
}

.dot-yellow {
    background: rgba(255, 255, 255, 0.35);
}

.dot-green {
    background: rgba(255, 255, 255, 0.6);
}

.mockup-address-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3px 20px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    width: 220px;
    text-align: center;
    font-weight: 300;
}

.mockup-content {
    background: #050505;
    position: relative;
    line-height: 0;
}

.showcase-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.hero-showcase-container:hover .showcase-img {
    opacity: 1;
    transform: scale(1.005);
}

/* About Section */
.about-section {
    padding: 120px 0;
    border-top: 0px solid var(--border-color);
}

.section-label {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: fit-content;
}

.label-num {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.label-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 600;
}

.about-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.25;
    font-weight: 200;
    margin-bottom: 32px;
    background: linear-gradient(90deg, #555555, #ffffff, #222222, #ffffff, #555555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: -webkit-text-fill-color 1.2s ease, text-fill-color 1.2s ease;
    letter-spacing: -3.0px;
}

.about-headline.shimmering {
    -webkit-text-fill-color: #ffffff;
    text-fill-color: #ffffff;
}

.about-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.skill-card {
    background: #000000;
    border: 1px solid #111112;
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.skill-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #050505;
    transform: translateY(0px);
}

/* Card HUD corner tick marks */
.skill-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: 
        /* Top Left */
        linear-gradient(to right, #ffffff 10px, transparent 10px) 0 0,
        linear-gradient(to bottom, #ffffff 10px, transparent 10px) 0 0,
        /* Top Right */
        linear-gradient(to left, #ffffff 10px, transparent 10px) 100% 0,
        linear-gradient(to bottom, #ffffff 10px, transparent 10px) 100% 0,
        /* Bottom Left */
        linear-gradient(to right, #ffffff 10px, transparent 10px) 0 100%,
        linear-gradient(to top, #ffffff 10px, transparent 10px) 0 100%,
        /* Bottom Right */
        linear-gradient(to left, #ffffff 10px, transparent 10px) 100% 100%,
        linear-gradient(to top, #ffffff 10px, transparent 10px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::after {
    opacity: 0.75;
}

.skill-card-img {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: -30px;
    margin-top: auto;
    height: auto;
    display: block;
    opacity: 0.85;
    transition: var(--transition-smooth);
    padding: 20px 5px 5px 5px;
    border-radius: 12px;
}

.skill-card:hover .skill-card-img {
    opacity: 1;
    transform: scale(1.0);
}

.skill-index {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 16px;
    display: block;
}

.skill-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 10px;
}

.skill-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 300;
}

/* Works Section */
.works-section {
    padding: 120px 0;
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05), transparent) 1;
}

.works-header {
    margin-bottom: 60px;
}

.works-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 200;
    line-height: 1.25;
    letter-spacing: -3px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card.large {
    grid-column: span 2;
}

.sheen-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(circle at var(--sheen-x, 50%) var(--sheen-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.work-image-wrapper:hover .sheen-overlay,
.skill-card:hover .sheen-overlay {
    opacity: 1;
}

.work-image-wrapper {
    position: relative;
    border-radius: 24px !Important;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #060608;
    transition: var(--transition-smooth);
}

.work-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px !Important;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.work-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(rgba(255, 255, 255, 0.08) 50%, transparent 50%);
    background-size: 100% 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-image-wrapper::before {
    opacity: 1;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: grayscale(1) brightness(0.65) contrast(1.1);
    transition: var(--transition-smooth);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
}

.work-link-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8) translateY(15px);
    transition: var(--transition-smooth);
}

.work-link-icon svg {
    width: 26px;
    height: 26px;
}

.work-card:hover .work-image-wrapper::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.7) 100%);
}

.work-card:hover .work-image {
    transform: scale(1.04);
    opacity: 1;
    filter: grayscale(1) invert(1) brightness(1.2) contrast(1.7);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-card:hover .work-link-icon {
    transform: scale(1) translateY(0);
}

.work-card {
    position: relative;
}

.work-card::after {
    content: "";
    position: absolute;
    inset: -12px;
    pointer-events: none;
    z-index: 5;
    background: 
        /* Top Left */
        linear-gradient(to right, #ffffff 10px, transparent 10px) 0 0,
        linear-gradient(to bottom, #ffffff 10px, transparent 10px) 0 0,
        /* Top Right */
        linear-gradient(to left, #ffffff 10px, transparent 10px) 100% 0,
        linear-gradient(to bottom, #ffffff 10px, transparent 10px) 100% 0,
        /* Bottom Left */
        linear-gradient(to right, #ffffff 10px, transparent 10px) 0 100%,
        linear-gradient(to top, #ffffff 10px, transparent 10px) 0 100%,
        /* Bottom Right */
        linear-gradient(to left, #ffffff 10px, transparent 10px) 100% 100%,
        linear-gradient(to top, #ffffff 10px, transparent 10px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), inset 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover::after {
    opacity: 0.75;
    inset: -6px;
}

.work-info {
    margin-top: 18px;
}

.work-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.work-card:hover .work-title {
    color: #ffffff;
}

/* Custom CSS Placeholders for Secondary Works */
.placeholder-img-1 {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img-2 {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.logo-watermark {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: -0.01em;
}

.geometric-shape {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    position: relative;
    animation: rotateShape 25s linear infinite;
}

.geometric-shape::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.vibe-text {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.03);
    padding-left: 0.2em;
}

.audio-bars {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 24px;
}

.audio-bars span {
    width: 2.5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    animation: bounceBar 1.4s ease-in-out infinite alternate;
}

.audio-bars span:nth-child(1) {
    height: 8px;
    animation-delay: 0.1s;
}

.audio-bars span:nth-child(2) {
    height: 20px;
    animation-delay: 0.4s;
}

.audio-bars span:nth-child(3) {
    height: 12px;
    animation-delay: 0.2s;
}

.audio-bars span:nth-child(4) {
    height: 16px;
    animation-delay: 0.6s;
}

@keyframes bounceBar {
    0% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1.1);
    }
}

/* Services Section */
.services-section {
    padding: 120px 0;
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05), transparent) 1;
}

.services-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 200;
    line-height: 1.25;
    margin-bottom: 40px;
    letter-spacing: -3.0px;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    padding: 36px 0;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(134, 134, 139, 0.25) 50%, transparent) 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    transition: var(--transition-smooth);
}

.service-item:first-child {
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(134, 134, 139, 0.25) 50%, transparent) 1;
}

.service-item:hover {
    padding-left: 0px;
    background: rgba(255, 255, 255, 0.005);
}

.service-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
}

/* Footer Section */
.site-footer {
    border-top: 0px solid;
    border-image: linear-gradient(to right, transparent, rgba(134, 134, 139, 0.25) 50%, transparent) 1;
    padding: 120px 0 40px;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.site-footer .container {
    position: relative;
}

.footer-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: grayscale(100%) brightness(5.4);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, #00000000 0%, #00000000, #00000042, #ffffff 100%);
}

.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000 0%, transparent 15%, transparent 85%, #000000 100%);
}

.footer-cta {
    margin-bottom: 90px;
}

.cta-title {
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 36px;
    border-radius: 100px;
    background: #ffffff21;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1.5px solid #ffffff00;
    letter-spacing: -1.5px;
    backdrop-filter: blur(15px);
}

.cta-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
    background: #ffffff33;
    border-color: #ffffff00;
    box-shadow: 0 0px 308px rgb(255 255 255 / 98%);
}

.cta-button:hover svg {
    transform: translateX(6px);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(134, 134, 139, 0.25) 50%, transparent) 1;
    padding-top: 40px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 400;
    text-align: left;
}

.footer-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ffffff;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-label {
        position: relative;
        top: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .work-card.large {
        grid-column: span 1;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 28px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 24px;
    }

    .nav-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Active mobile icon toggled */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .hero-section {
        padding: 140px 0 80px;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

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

    .about-headline,
    .works-headline,
    .services-headline {
        letter-spacing: -1.5px;
    }
}

/* Let's Talk Form Page styling */
.talk-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.talk-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.talk-label .label-num {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.talk-label .label-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 600;
    text-transform: uppercase;
}

.talk-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

.talk-form {
    position: relative;
}

/* Sentence formatting */
.sentence-container {
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    line-height: 1.8;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 50px;
}

/* Inline Fields Styling */
.sentence-container .input-wrapper,
.sentence-container .select-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 4px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.sentence-container .input-wrapper:hover,
.sentence-container .select-wrapper:hover {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.sentence-container .input-wrapper.focused,
.sentence-container .select-wrapper.focused {
    border-bottom-color: #ffffff;
    box-shadow: 0 4px 12px -4px rgba(255, 255, 255, 0.15);
}

.sentence-container input,
.sentence-container select {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    padding: 0 6px 4px 6px;
    width: auto;
    min-width: 150px;
    transition: var(--transition-fast);
}

/* Specific input settings */
.sentence-container input::placeholder {
    color: var(--text-dark);
    font-weight: 300;
    opacity: 0.6;
}

/* Dropdown styling */
.sentence-container select {
    cursor: pointer;
    padding-right: 24px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sentence-container .select-wrapper::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.sentence-container .select-wrapper.focused::after {
    border-top-color: #ffffff;
    transform: translateY(-50%) rotate(180deg);
}

/* Standard values for selects option elements */
.sentence-container select option {
    background-color: #121214;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 12px;
}

/* Dynamic autogrow helper or input styling */
.sentence-container input[name="name"] {
    width: 200px;
}

.sentence-container input[name="email"] {
    width: 250px;
}

.sentence-container input[name="phone"] {
    width: 180px;
}

.sentence-container input[name="details"] {
    width: 320px;
}

/* Actions and Send Button */
.talk-form .form-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 40px;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 80px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.send-btn:hover {
    background: #ffffff;

    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.12);
}

.send-btn .btn-icon {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.send-btn .btn-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.send-btn:hover .btn-icon svg {
    transform: translateX(4px);
}

/* Success state view styling */
.success-card {
    text-align: center;
    padding: 80px 40px;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    max-width: 600px;
    margin: 40px auto;
    opacity: 0;
    transform: scale(0.95);
    animation: successIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #ffffff;
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #ffffff;
}

.success-message {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-card .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile responsive styling for talk-container */
@media screen and (max-width: 768px) {
    .talk-container {
        margin: 100px auto 40px;
        padding: 0 24px;
    }

    .sentence-container {
        font-size: 1.25rem;
        line-height: 2.2;
    }

    .sentence-container input,
    .sentence-container select {
        padding-bottom: 1px;
        min-width: 100%;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .sentence-container .input-wrapper,
    .sentence-container .select-wrapper {
        display: block;
        margin: 8px 0;
    }
}