:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #7a8a7a;
    --accent-color: #00FF41; /* Matrix Green */
    --accent-glow: rgba(0, 255, 65, 0.3);
    --accent-dim: rgba(0, 255, 65, 0.1);
    --glass-bg: rgba(0, 255, 65, 0.02);
    --glass-border: rgba(0, 255, 65, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

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

/* Matrix Canvas Background */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.4;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: 5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #00FF41, #00aa2a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h3 {
    font-size: 2rem;
    line-height: 1.3;
}

.en {
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.6;
    margin-left: 10px;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    background: rgba(10, 10, 10, 0.8);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-color);
}

.logo .dot {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-family: var(--font-mono);
}

.links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.btn-highlight {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: 0;
    color: var(--accent-color) !important;
}

.btn-highlight:hover {
    background: var(--accent-dim);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    opacity: 0.7;
}

.command {
    border-right: 2px solid var(--accent-color);
    padding-right: 5px;
    animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
    0%, 50% { border-color: var(--accent-color); }
    51%, 100% { border-color: transparent; }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 10vw;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.scroll-indicator .line {
    width: 50px;
    height: 1px;
    background: var(--accent-color);
}

/* Content Sections */
section {
    min-height: 100vh;
    padding: 6rem 10vw;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
}

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

/* Philosophy Cards */
.philosophy-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-dim);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* About / Journey */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content .label {
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.text-content h3 {
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Journey Timeline */
.journey-timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.journey-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.journey-item .flag {
    font-size: 1.5rem;
}

.journey-info {
    display: flex;
    flex-direction: column;
}

.journey-info strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.journey-info span {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.journey-arrow {
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.5;
}

.stats {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats li {
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

.stats strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.stats span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.narrative {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* Services */
.services-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title .dim {
    opacity: 0.5;
    font-family: var(--font-mono);
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '>';
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-family: var(--font-mono);
}

/* Contact & Footer */
.contact-section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--accent-color);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.contact-info {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    nav { padding: 1.5rem; }
    .links { display: none; }
    section { padding: 4rem 5vw; }
    .journey-timeline { flex-direction: column; align-items: flex-start; }
    .journey-arrow { transform: rotate(90deg); }
    .stats { flex-wrap: wrap; }
}
