:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-white: #ffffff;
    --accent-silver: #c0c0c0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --primary-gradient: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-container: 120px;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-white);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--accent-white);
    color: var(--bg-dark);
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-white);
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    display: inline-block;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--glass-highlight);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent-white);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 5px;
    font-family: inherit;
    font-weight: 500;
    transition: color 0.3s;
}

.lang-btn:hover {
    color: var(--accent-white);
}

.lang-btn.active {
    color: var(--accent-white);
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--accent-white);
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-subtitle {
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.0) 100%);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

#growthCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Graph Annotations Overlay */
.graph-annotations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to canvas if needed */
}

.annotation {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.annotation-1 { top: 75%; left: 15%; animation-delay: 1s; }
.annotation-2 { top: 50%; left: 45%; animation-delay: 1.5s; }
.annotation-3 { top: 20%; left: 75%; animation-delay: 2s; }

.annotation .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.annotation .text {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-background-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Transformation Section */
.transformation-section {
    padding: var(--spacing-container) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.transformation-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.step-marker {
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-silver);
    border-radius: 50%;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.step-marker.active {
    background: var(--accent-white);
    border-color: var(--accent-white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.step-content {
    padding: 30px;
    border-radius: var(--radius-md);
    width: 90%;
}

.timeline-connector {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
    margin-top: 9px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Services Section */
.services-section {
    padding: var(--spacing-container) 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 60%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--bg-card-hover);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.service-card:hover .icon {
    filter: grayscale(0);
}

/* Projects Section - Refined */
.projects-section {
    padding: var(--spacing-container) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    min-height: 350px;
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Bottom align content */
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20,20,20,0.4) 0%, rgba(20,20,20,0.8) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    text-decoration: none; /* For <a> tag */
    color: inherit;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.95) 80%);
    z-index: 1;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    background: linear-gradient(180deg, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.98) 80%);
}

/* Project Card External Icon */
.external-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--accent-white);
    opacity: 0.5;
    z-index: 5;
    transition: all 0.3s ease;
}

.project-card:hover .external-icon {
    opacity: 1;
    transform: translate(3px, -3px);
}

.card-content-wrapper {
    position: relative;
    z-index: 2;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-industry {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-silver);
}

.project-metric {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--accent-white);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 4px;
}

/* About Section - Profile Cards */
.about-section {
    padding: var(--spacing-container) 0;
}

.about-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--accent-white);
    line-height: 1.5;
    margin-top: 15px;
    opacity: 0.9;
}

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

.profile-card {
    display: block; /* Make anchor block */
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.profile-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.profile-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-silver);
    margin-bottom: 15px;
    display: block;
}

.profile-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-white);
}

.profile-card p {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.profile-link-indicator {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-white);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.profile-card:hover .profile-link-indicator {
    border-bottom-color: var(--accent-white);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-container) 0;
    margin-bottom: 50px;
}

.cta-box {
    text-align: center;
    padding: 100px 40px;
    border-radius: var(--radius-lg);
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-primary-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.inline-title {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to bottom right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.separator {
    font-size: 2.5rem;
    color: var(--accent-silver);
    font-weight: 300;
}

.contact-link-primary {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact-link-primary:hover {
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
    border-bottom-color: var(--accent-white);
}

.contact-secondary-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 10px;
}

.contact-link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-link-secondary:hover {
    color: var(--accent-white);
    border-bottom-color: var(--accent-white);
}

@media (max-width: 968px) {
    .contact-primary-line {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
    
    .inline-title, .contact-link-primary {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .cta-box {
        padding: 60px 20px;
    }
    
    .inline-title, .contact-link-primary {
        font-size: 1.5rem;
    }
    
    .contact-secondary-line {
        flex-direction: column;
        gap: 5px;
        font-size: 1rem;
    }
}

/* Remove old styles if they conflict */
.contact-actions, .contact-form, .glass-input, .small-text, .contact-subtitle, .contact-details, .contact-link, .cta-box h2 {
    /* Reset specific old styles or rely on new classes */
}
.cta-box h2 {
    margin-bottom: 0; /* Reset margin since we use flex gap */
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0;
    color: var(--text-muted);
}

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

.footer-brand h4 {
    color: var(--accent-white);
    margin-bottom: 5px;
}

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

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .cta-group { justify-content: center; }
    .about-container { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; gap: 30px; }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .transformation-timeline { flex-direction: column; gap: 40px; }
    .timeline-connector { display: none; }
    .timeline-step { width: 100%; }
    .step-marker { display: none; }
    .nav-wrapper { flex-direction: column; gap: 20px; align-items: flex-start; width: 100%; }
    .nav-links { display: none; width: 100%; flex-direction: column; gap: 20px; }
    .lang-selector { margin-left: 0; margin-top: 10px; }
    .mobile-menu-btn { display: flex; }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .contact-form { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .footer-links { flex-direction: column; gap: 15px; }
}