/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --bg: #ededed;
    --bg-secondary: #ffffff;
    --text: #000000;
    --text-muted: #9e9e9e;
    --border: #e8e8e8;
    --glass-bg: rgba(237, 237, 237, 0.55);
    --glass-border: rgba(255, 255, 255, 0.3);
    --accent-green: #17bf6f;
    --accent-cyan: #00ddd8;
    --accent-blue: #0f94fa;
    --accent-orange: #faa40f;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.08);
    --radius: 20px;
    --radius-lg: 35px;
    --nav-height: 56px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-secondary: #141414;
    --text: #ffffff;
    --text-muted: #9e9e9e;
    --border: #222222;
    --glass-bg: rgba(31, 31, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
    --card-bg: #181818;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.3);
    --card-hover-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   TOP GRADIENT OVERLAY
   ============================================ */
.top-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 115px;
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 30%, transparent 100%);
    z-index: 8;
    pointer-events: none;
    transition: background var(--transition);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 36px);
    max-width: 1164px;
    z-index: 10;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: background var(--transition), border var(--transition);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--text);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    transition: background var(--transition), color var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 100px;
    transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active {
    background: var(--card-bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--card-bg);
}

.icon-moon { display: none; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 24px;
    background: var(--text);
    color: var(--bg);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: transform var(--transition), opacity var(--transition), background var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn-cta:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-link {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--text);
}

.mobile-cta {
    margin-top: 16px;
    font-size: 16px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-greeting {
    font-family: 'Fragment Mono', monospace;
    font-size: 16px;
    color: var(--accent-green);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.role-text {
    color: var(--text);
    font-weight: 600;
}

.company-text {
    color: var(--text);
    font-weight: 600;
}

.hero-cta {
    font-size: 16px;
    padding: 12px 32px;
}

.hero-image {
    flex-shrink: 0;
}

.hero-img-placeholder {
    width: 380px;
    height: 440px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan), var(--accent-blue));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
    padding: 80px 0;
}

.section-label {
    margin-bottom: 16px;
}

.label-tag {
    font-family: 'Fragment Mono', monospace;
    font-size: 13px;
    color: var(--accent-green);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    letter-spacing: 0.05em;
    display: inline-block;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 500px;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ============================================
   ESSENCE SECTION
   ============================================ */
.essence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.essence-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border var(--transition);
}

.essence-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.essence-card-image {
    height: 200px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transition: background var(--transition);
}

[data-theme="dark"] .img-placeholder {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
}

.essence-card-content {
    padding: 24px;
}

.essence-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.essence-card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   VALUE / MARQUEE SECTION
   ============================================ */
.marquee-wrapper {
    overflow: hidden;
    margin-bottom: 60px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

.marquee-item {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-muted);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.milestones {
    text-align: center;
}

.milestones-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.stat-number {
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    height: 280px;
}

.project-card:hover .project-placeholder {
    transform: scale(1.03);
}

.project-placeholder {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-info {
    padding: 24px;
}

.project-type {
    font-family: 'Fragment Mono', monospace;
    font-size: 12px;
    color: var(--accent-green);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.project-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: background var(--transition), border var(--transition);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    gap: 16px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: block;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.blog-image {
    overflow: hidden;
}

.blog-placeholder {
    height: 200px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 0;
}

.blog-tag {
    font-family: 'Fragment Mono', monospace;
    font-size: 12px;
    color: var(--accent-green);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

.blog-date {
    font-size: 13px;
    color: var(--text-muted);
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 24px 8px;
}

.blog-desc {
    font-size: 14px;
    color: var(--text-muted);
    padding: 0 24px 24px;
    line-height: 1.6;
}

/* ============================================
   CONNECT SECTION
   ============================================ */
.connect {
    padding-bottom: 40px;
}

.connect-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    transition: background var(--transition), border var(--transition);
}

.connect-card h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.connect-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
    transition: border var(--transition);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    transition: border var(--transition);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 520px;
    }

    .hero-img-placeholder {
        width: 320px;
        height: 370px;
    }

    .essence-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .essence-card {
        display: flex;
        flex-direction: row;
    }

    .essence-card-image {
        width: 200px;
        height: auto;
        min-height: 160px;
        flex-shrink: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .blog-card {
        display: flex;
        flex-direction: row;
    }

    .blog-image {
        width: 200px;
        flex-shrink: 0;
    }

    .blog-placeholder {
        height: 100%;
        min-height: 160px;
    }

    .blog-meta {
        padding: 20px 20px 0;
    }

    .blog-title {
        padding: 8px 20px 4px;
    }

    .blog-desc {
        padding: 0 20px 20px;
    }

    .connect-card {
        padding: 60px 40px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn-cta {
        display: none;
    }

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

    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-img-placeholder {
        width: 260px;
        height: 300px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .essence-card {
        flex-direction: column;
    }

    .essence-card-image {
        width: 100%;
        height: 180px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-placeholder {
        height: 220px;
    }

    .stats-grid {
        gap: 40px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        width: 100%;
    }

    .blog-placeholder {
        height: 180px;
    }

    .connect-card {
        padding: 48px 24px;
        border-radius: var(--radius);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 48px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 20px;
    }

    .faq-answer p {
        padding: 0 20px 16px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }
}
