:root {
    --bg-color: #f5f5f5; /* Light grey/white */
    --surface-color: #ffffff;
    --surface-light: #f0f0f0;
    --accent-color: #FFD500; /* Yellow */
    --accent-glow: rgba(255, 213, 0, 0.4);
    --text-main: #111111; /* Dark text */
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* =========================================
   NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(245, 245, 245, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.logo-img {
    height: 80px; /* Increased size significantly */
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.8;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}


/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
    background: var(--bg-color);
    background-image: repeating-radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.02) 0,
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 40px
    ); /* Topographic-like texture */
}

/* Watermark Text */
.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-family: var(--font-heading);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

/* Left column for vertical text + dots */
.hero-left-col {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Vertical Text on the left */
.hero-vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 0.8;
    margin: 0;
    letter-spacing: -2px;
}

/* Slide indicator dots */
.hero-decorators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-decorators .dot {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.hero-decorators .dot:hover {
    border-color: var(--accent-color);
}

.hero-decorators .dot.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Central image slideshow */
.hero-image-center {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 75vh;
    width: 100%;
    max-width: 800px;
    z-index: 3;
    pointer-events: none;
}

.hero-image-center .slide {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-image-center .slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 400px;
    text-align: right;
    position: relative;
    z-index: 10;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 30px rgba(217, 160, 91, 0.4);
}

/* =========================================
   SECTION SHARED
   ========================================= */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title span {
    color: var(--accent-color);
}

/* =========================================
   ABOUT US
   ========================================= */
#about {
    background: var(--surface-color);
}

.about-text {
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-main);
    font-weight: 400;
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.icon-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

.card-base {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    transition: var(--transition);
}

.icon-card:hover .service-svg {
    color: var(--accent-color);
}

.service-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

/* Futuristic Popup Default (UP) */
.card-popup {
    position: absolute;
    bottom: 120%; /* Show above the card */
    left: 50%;
    transform: translateX(-50%) scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    width: 260px;
    background: rgba(26, 26, 28, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px var(--accent-glow) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100; /* Ensure it stays on top of everything except header */
    pointer-events: none;
    text-align: left;
}

/* Little triangle pointer (UP) */
.card-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
}

.icon-card:hover .card-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
}

/* Modifier: DOWN */
.icon-card.popup-down .card-popup {
    bottom: auto;
    top: 120%; /* Show below the card */
    transform: translateX(-50%) scale(0.8) translateY(-20px);
}

.icon-card.popup-down:hover .card-popup {
    transform: translateX(-50%) scale(1) translateY(0);
}

.icon-card.popup-down .card-popup::after {
    top: auto;
    bottom: 100%; /* Point upwards from the top edge */
    border-color: transparent transparent var(--accent-color) transparent;
}

.popup-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-content h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.popup-content p {
    font-size: 0.85rem;
    color: #e0e0e0; /* Explicitly light text for popup since popup is dark */
    line-height: 1.4;
    margin: 0;
}
/* =========================================
   WORKFLOW
   ========================================= */
#workflow {
    background: var(--surface-color);
}

.modern-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 2;
    padding: 1.5rem 0;
}

.timeline-bg {
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    bottom: 0;
    background: var(--surface-light);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.timeline-row:hover .timeline-bg,
.timeline-row.active .timeline-bg {
    opacity: 1;
}

.timeline-half {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.left-half {
    justify-content: flex-end;
}

.right-half {
    justify-content: flex-start;
}

.timeline-center {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-center .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 3;
}

.timeline-row.active .timeline-center .dot {
    background: #111;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 6px rgba(255, 120, 73, 0.15);
}

.timeline-icon-box {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.timeline-row.active .timeline-icon-box {
    background: #222;
    color: #fff;
    border-color: #222;
}

.timeline-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 1.5rem;
    font-family: var(--font-heading);
}

.timeline-text {
    max-width: 320px;
}

.timeline-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.timeline-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

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

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

/* =========================================
   CONTACT
   ========================================= */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info {
    background: var(--surface-light);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 500;
    word-break: break-all;
}

.contact-value:hover {
    text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   THEME SWITCHER
   ========================================= */
.theme-switcher {
    position: fixed;
    top: 30%;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    transform: translateX(100%); /* Hidden by default except button */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-switcher.open {
    transform: translateX(0);
}

.theme-toggle-btn {
    position: absolute;
    left: -50px;
    width: 50px;
    height: 50px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.5s;
}

.theme-toggle-btn:hover svg {
    transform: rotate(90deg);
}

.theme-panel {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 0 0 0 12px;
    padding: 1.5rem;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.1);
}

.theme-panel h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-btn.active {
    border-color: #111;
    transform: scale(1.1);
}

.logo-options {
    display: flex;
    gap: 10px;
}

.logo-btn {
    flex: 1;
    padding: 0.5rem 0;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.logo-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    header {
        padding: 1rem 0;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .burger-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 0.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 130px;
        height: auto;
        min-height: 100vh;
    }

    .hero-layout {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .hero-left-col {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .hero-decorators {
        flex-direction: row;
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    .hero-vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 4.5rem;
        text-align: center;
    }
    
    .hero-image-center {
        position: relative;
        height: 40vh;
        width: 100%;
        max-width: 90%;
        margin-bottom: 2rem;
        transform: none;
        left: 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    /* Workflow Timeline */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 45px;
        padding-right: 15px;
        margin-bottom: 3rem;
    }
    
    .timeline-center {
        position: absolute;
        left: 0;
        top: 1.5rem;
    }
    
    .timeline-half {
        width: 100%;
        padding: 0;
        justify-content: flex-start;
    }
    
    .left-half {
        margin-bottom: 1rem;
    }
    
    .right-half {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    
    .timeline-text {
        text-align: left;
    }
    
    .text-right, .text-left {
        text-align: left;
    }
    
    .timeline-num {
        display: none;
    }
    
    .timeline-bg {
        left: 35px;
        right: 0;
    }
    
    .timeline-icon-box {
        margin-bottom: 1rem;
    }
}