/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

/* ================= THEME VARIABLES ================= */
:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
    --muted: #b3b3b3;
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --cursor-color: #ffffff;
}

body.light {
    --bg: #F2F0EA;
    --card: #ffffff;
    --text: #111111;
    --muted: #555555;
    --btn-bg: #000000;
    --btn-text: #ffffff;
}

body.light .card {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-top: 160px;
    /* Compensation for fixed header (160px) */
}

/* ================= CUSTOM CURSOR ================= */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s, height 0.3s;
    will-change: transform;
}

/* Hover effect state (optional, can be triggered by JS) */
body.hovering #custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
}

/* ================= HEADER ================= */
header {
    height: 160px;
    /* Restored Giant Header */
    padding: 0 90px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    position: fixed;
    /* FIXED */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    /* Default Dark Transparent */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    transition: background 0.3s ease;
}

body.light header {
    background: rgba(242, 240, 234, 0.85);
    /* Default Light Transparent */
}

/* NO LONGER NEED CONDITIONAL STICKY CLASS */

.header-left img {
    height: 140px;
    /* Restored Giant Logo */
    object-fit: contain;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    /* Vertical Center Container */
}

.header-center nav {
    display: flex;
    gap: 42px;
    align-items: center;
    /* Vertical Center Items */
    height: 100%;
}

/* Vertical Align Fix */
.header-center a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    /* Removed 'all' to be specific */
    cursor: none;
    display: flex;
    /* FLEX for perfect centering */
    align-items: center;
    justify-content: center;
    transform-origin: center;
    height: 40px;
    /* Fixed height container for links */
    line-height: 1;
    /* Reset line height */
}

.header-center a:hover {
    color: var(--text);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.header-center a.active {
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    transform: scale(1);
    /* Keep scale 1 to rely on font-size */
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

/* LANG SLIDER */
.lang-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    cursor: none;
}

.lang-toggle {
    width: 46px;
    height: 26px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.lang-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    transform: translateY(-50%);
    /* Perfect Center */
}

/* Light Mode Styles for Lang Toggle */
body.light .lang-toggle {
    background: #fff;
    border: 2px solid #000;
}

body.light .lang-toggle::after {
    background: #000;
}

/* REMOVED: .lang-toggle:hover::after rule to prevent ball scaling */

.lang-toggle.active::after {
    left: 21px;
}

/* THEME */
.theme-toggle {
    width: 22px;
    cursor: none;
}

.theme-toggle img {
    width: 100%;
}

/* BUTTON */
.contact-btn {
    padding: 15px 0;
    /* Adjusted padding for fixed width */
    min-width: 160px;
    /* Fixed width to prevent resizing */
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    cursor: none;
}

/* ================= SECTIONS ================= */
.hero {
    padding: 160px 80px 120px;
    text-align: center;
}

.hero h1 {
    max-width: 1380px;
    margin: 0 auto 26px;
    font-size: 66px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 760px;
    margin: auto;
    font-size: 18px;
    color: var(--muted);
}

.sections {
    padding: 120px 90px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
}


.card {
    background: var(--card);
    border-radius: 40px;
    padding: 110px 40px 60px;
    text-align: center;
    position: relative;
    transition: .4s;
    cursor: none;
    min-height: 255px;
}

.card:hover {
    transform: translateY(-12px);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}