@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
    --spacing: 1.5rem;
}

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

/* html { Manual scroll-behavior handled per page or by Lenis } */

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 var(--spacing);
}

.hero.centered {
    align-items: center;
    text-align: center;
}

#hero-particles {
    position: fixed;
    /* Fixed to cover whole page during scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
}


.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.flex.justify-center {
    justify-content: center;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Section Layout & Transparency */
.content-wrapper {
    max-width: 80%;
    margin: 0 auto;
    background: #000;
    /* Absolute black for full opacity */
    position: relative;
    z-index: 5;
}

@media (max-width: 1024px) {
    .content-wrapper {
        max-width: 95%;
    }
}

section {
    padding: 120px var(--spacing);
    position: relative;
    background: var(--bg-color);
    z-index: 10;
}

.section-dark {
    padding: 120px var(--spacing);
    background: transparent !important;
    /* Let wrapper background show */
}

/* Stylish Section Divider */
.section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 148, 0.3), transparent);
}



.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Strengths Section */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.strength-card {
    padding: 3rem;
    background: #000;
    /* Absolute black */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
}

.strength-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.strength-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.strength-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Achievement Preview Component (Used in Industry Preview) */
.achievement-preview {
    background: #000;
}

.achievement-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.achievement-img {
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: #050505;
}

.achievement-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .strength-card {
        padding: 2rem;
    }
}

/* Utilities */
.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-huge {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
}

.text-large {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    background: transparent;
}

/* Animations & Reveal Layer */
/* Default state: Visible at all times unless JS specifically hides it for animation */
.reveal {
    opacity: 1;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When JS is ready and observing, it will add this class to enable the reveal animation */
.reveal.js-reveal-ready {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

/* When in viewport, the observer removes js-reveal-ready and adds active */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Simplify all variants to just standard fade+slide */
/* .reveal-slide-up { No unique overrides - use base .reveal classes } */


/* Staggered Delay Utilities */
.stagger-1 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

/* Hero Headlines Ambient Drift - Applied to inner wrapper to avoid transform conflict */
.hero-drift>span,
.hero-drift-inner {
    display: inline-block;
    animation: floating 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(0.5deg);
    }

    66% {
        transform: translateY(5px) rotate(-0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Character/Letter spacing animation for emphasis */
.text-tracking-expand.active {
    animation: tracking-expand 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes tracking-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
        filter: blur(10px);
    }

    40% {
        opacity: 0.6;
    }

    100% {
        letter-spacing: normal;
        opacity: 1;
        filter: blur(0);
    }
}

/* --- Original Sections Start --- */


/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--spacing);
    z-index: 100;
    transition: var(--transition-slow);
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

header.scrolled {
    padding: 1.2rem var(--spacing);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

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

.lang-switch {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
}

.lang-switch a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Creative Footer */
footer {
    position: relative;
    padding: 40px var(--spacing) 40px;
    /* Thinner vertical profile */
    background: transparent;
    overflow: hidden;
}

/* Seamless transition from content-wrapper */
.content-wrapper+footer {
    margin-top: -1px;
}

.footer-watermark {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    /* Slightly smaller to feel more integrated */
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    /* Even more subtle */
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Centered for thinner look */
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .footer-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-links-grid {
    display: flex;
    gap: 6rem;
}

.footer-column h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a {
    font-size: 1rem;
    opacity: 0.6;
}

.footer-column a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links-grid {
        gap: 4rem;
    }

    .footer-watermark {
        font-size: 40vw;
    }
}

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

    .nav-links {
        display: none;
    }
}

/* Code Hero Section */
.code-hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    padding: 0 var(--spacing);
    background: #000;
    z-index: 1;
    perspective: 1000px;
    /* Enable 3D space */
}


#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.code-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    will-change: transform, opacity;
    transform-style: preserve-3d;
}


.hero-main-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5rem);
    /* Responsive fluid size */
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
    /* Align with code editor */
    letter-spacing: -0.02em;
    word-break: keep-all;
    /* Prevent mid-word breaks */
    white-space: pre-line;
    /* Respect manual breaks */
}

/* Code Window */
.code-window {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.filename {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.window-body {
    padding: 24px;
    font-family: 'Outfit', 'Cascadia Code', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .code-hero {
        align-items: center;
        /* Center vertically */
    }

    .window-body {
        font-size: 0.75rem;
        /* Smaller font for mobile */
        padding: 12px;
        line-height: 1.4;
        max-height: 45vh;
        /* Strictly limit height */
        overflow-y: auto;
        /* Allow scrolling */
    }

    .code-wrapper {
        max-width: 95%;
        margin: 0 auto 20px;
    }

    .hero-main-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        /* Slightly larger prop on mobile */
        text-align: center;
        /* Center on mobile for balance */
        margin-bottom: 15px;
    }

    .window-header {
        padding: 8px 12px;
    }
}

/* Syntax Highlighting */
.kwd {
    color: #c678dd;
}

.def {
    color: #e06c75;
}

.op {
    color: #56b6c2;
}

.brace {
    color: #abb2bf;
}

.prop {
    color: #d19a66;
}

.str {
    color: #98c379;
}

.var {
    color: #61afef;
}

.indent {
    padding-left: 2rem;
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #528bff;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.window-footer {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment {
    color: #5c6370;
    font-family: monospace;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.code-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.type-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.type-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Specific Active Colors */
.type-btn[data-type="Corporate"].active {
    border-color: #00a8ff;
    /* Cyan Blue */
    color: #00a8ff;
    background: rgba(0, 168, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

.type-btn[data-type="Landing Page"].active {
    border-color: #e84393;
    /* Pink */
    color: #e84393;
    background: rgba(232, 67, 147, 0.1);
    box-shadow: 0 0 15px rgba(232, 67, 147, 0.2);
}

.type-btn[data-type="Web App"].active {
    border-color: #55efc4;
    /* Mint Green */
    color: #55efc4;
    background: rgba(85, 239, 196, 0.1);
    box-shadow: 0 0 15px rgba(85, 239, 196, 0.2);
}

/* Bottom Text Area */
.hero-text-area {
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.btn-text {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.btn-text:hover {
    border-color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Custom Cursor - Desktop Only */
#custom-cursor {
    display: none;
    /* Hidden by default */
}

@media (pointer: fine) and (min-width: 769px) {
    body {
        cursor: none !important;
    }

    a,
    button,
    .type-btn,
    input,
    textarea {
        cursor: none !important;
    }

    #custom-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
        mix-blend-mode: difference;
    }

    body.hovering #custom-cursor {
        width: 32px;
        height: 32px;
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* --- LP Mode Specification --- */
/* Activated via main.js when "Landing Page" is selected in Hero */

/* Header: Hide navigation links but keep Logo and Lang Switch */
body.lp-mode .nav-links {
    display: none !important;
}

body.lp-mode header {
    /* Ensure header remains visible for Logo/Lang */
    display: block !important;
    pointer-events: auto;
}

/* Content Switching Utilities */
.show-on-lp {
    display: none !important;
}

body.lp-mode .show-on-lp {
    display: block !important;
    animation: fadeInUp 0.8s ease forwards;
}

body.lp-mode .hide-on-lp {
    display: none !important;
}

/* LP Specific Styles */
body.lp-mode .lp-highlight {
    color: #e84393;
    /* Pink accent for LP items */
}

/* --- Component Migrations (Service, Price, Portfolio, Contact) --- */

/* Service: Flow */
.flow-container {
    max-width: 900px;
    margin: 40px auto;
}

.flow-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.flow-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -40px;
    width: 1px;
    background: var(--border-color);
}

.flow-item:last-child::before {
    display: none;
}

.flow-number {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    background: var(--bg-color);
    z-index: 1;
    flex-shrink: 0;
}

.flow-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .flow-item {
        gap: 1.5rem;
    }
}

/* Pricing: Cards */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.price-card {
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    background: #050505;
}

.price-card:hover {
    border-color: var(--text-color);
}

.price-card.featured {
    border-color: var(--text-color);
    background: #0a0a0a;
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-month {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-target {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    min-height: 80px;
}

.plan-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
    color: #fff;
}

.plan-features {
    flex: 1;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features li {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.plan-features li span:last-child {
    color: var(--text-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio: Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.portfolio-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4rem;
}

.portfolio-img {
    aspect-ratio: 16/9;
    background: #111;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.tag-list {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-transform: uppercase;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-label {
    width: 100px;
    color: var(--text-muted);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Contact: Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 100px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.contact-form {
    background: #000;
    /* Absolute black to guarantee 100% opacity */
    padding: 4rem;
    border: 1px solid #333;
    /* Solid opaque border */
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.form-input {
    width: 100%;
    background: #0a0a0a;
    /* Solid opaque dark grey */
    border: 1px solid #333;
    /* Solid opaque border */
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    /* Ensure font consistency */
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #333;
    background: #0a0a0a;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked+.checkbox-custom {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked+.checkbox-custom::after {
    display: block;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-selection-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.plan-selection-wrapper.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 2rem;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Terms Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #333;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.modal-body h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.modal-body h3 {
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    color: #fff;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #333;
    text-align: center;
}

.submitted-msg {
    display: none;
    text-align: center;
    padding: 4rem 0;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* --- Preview Page Styles (Shared with LP Mode) --- */
.page-header {
    padding: 160px var(--spacing) 80px;
}

/* --- First View Impact Animation (Chaos to Order) --- */
#impact-card {
    display: flex;
    flex-direction: row-reverse;
    /* Text Left, Visual Right */
    gap: 4rem;
    align-items: center;
}

#impact-card .achievement-info {
    flex: 1;
}

#impact-card .custom-canvas-container {
    flex: 1;
    aspect-ratio: 16/9;
    background: #050505;
    /* Restored background for contrast */
    position: relative;
    overflow: hidden;
    min-height: 200px;
    /* Safety height */
    border-radius: 12px;
    border: none !important;
    /* Force remove any inherited borders */
}

#impact-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 992px) {
    #impact-card {
        flex-direction: column;
        /* Stack vertically on mobile */
    }

    #impact-card .custom-canvas-container {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* --- Ultra-Premium Portfolio Card Styles --- */
.portfolio-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
}

.portfolio-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    /* Matte display frame */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Default consistent frame */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.9;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.04);
    opacity: 1;
}

/* Specific adjustment for onestep as it looks better as cover if it's a full shot */
.portfolio-card-img.cover img {
    object-fit: cover;
}

.portfolio-card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}

.portfolio-card-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex: 1;
}

.btn-visit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-visit:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.btn-visit::after {
    content: ' →';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.btn-visit:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition-fast);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

.nav-links .lang-switch {
    display: none;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* Integrated Language Switch */
    .nav-links .lang-switch {
        margin-top: 2rem;
        font-size: 1.2rem;
        display: flex !important;
    }

    /* Hide desktop header components */
    header .container>.lang-switch {
        display: none !important;
    }
}

/* --- LP Mode Compatibility & Header Adjustments --- */
.show-on-lp {
    display: none !important;
}

.lp-mode .hide-on-lp {
    display: none !important;
}

.lp-mode .show-on-lp {
    display: block !important;
}

/* Use flex for strengths-grid if it's shown on LP */
.lp-mode .strengths-grid.show-on-lp {
    display: grid !important;
}

/* Header & Hamburger Control for LP Mode */
.lp-mode .menu-toggle {
    display: none !important;
}

.lp-mode .nav-links {
    display: none !important;
}

@media (max-width: 1024px) {
    .lp-mode header .container>.lang-switch {
        display: flex !important;
        font-size: 0.9rem;
    }
}