/* 
  OSAMA CHATHA - QUALITY ARCHITECT
  A premium digital experience
*/

:root {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #ffffff;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-card-bg: rgba(255, 255, 255, 0.02);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 32px 48px;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.6s var(--ease-out);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.4s var(--ease-out);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 48px 120px;
    position: relative;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s var(--ease-out) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(3) { animation-delay: 0.5s; }

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 640px;
    margin-bottom: 64px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}

.hero-metrics {
    display: flex;
    gap: 80px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.7s forwards;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 64px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1s forwards;
}

.scroll-indicator {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-text-muted), transparent);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 1; transform: translateY(20px); }
}

/* Philosophy Section */
.philosophy {
    padding: 200px 48px;
    background: linear-gradient(to bottom, var(--color-bg), rgba(255, 255, 255, 0.02));
    border-top: 1px solid var(--color-border);
}

.philosophy-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.philosophy-author {
    font-size: 16px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Common Section Styles */
section {
    padding: 160px 48px;
    border-top: 1px solid var(--color-border);
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 120px;
}

.section-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Work Section */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.timeline-item {
    position: relative;
    padding-left: 160px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.timeline-card {
    padding: 48px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.6s var(--ease-out);
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-company {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.card-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.card-achievements {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.achievement {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    color: var(--color-text-muted);
}

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

/* Expertise Section */
.expertise {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), var(--color-bg));
}

.expertise-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.expertise-card {
    padding: 48px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.6s var(--ease-out);
    opacity: 0;
    transform: translateY(40px);
}

.expertise-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.expertise-icon {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.expertise-card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.expertise-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Approach Section */
.approach-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.approach-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 120px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.approach-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.approach-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.approach-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.approach-item h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.approach-item p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Contact Section */
.contact {
    background: linear-gradient(to bottom, var(--color-bg), rgba(255, 255, 255, 0.02));
}

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.contact-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 640px;
    margin-bottom: 80px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 24px;
    font-weight: 500;
    transition: all 0.6s var(--ease-out);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

.link-arrow {
    font-size: 32px;
    transition: transform 0.6s var(--ease-out);
}

.contact-link:hover .link-arrow {
    transform: translateX(8px);
}

/* Footer */
.footer {
    padding: 120px 48px 48px;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-easter-egg {
    display: flex;
    gap: 6px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s var(--ease-out);
}

.footer-easter-egg:hover {
    transform: scale(1.1);
}

.egg-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out);
}

.footer-easter-egg:hover .egg-dot {
    background: var(--color-text);
    animation: eggPulse 1s ease-in-out infinite;
}

.egg-dot:nth-child(1) { animation-delay: 0s; }
.egg-dot:nth-child(2) { animation-delay: 0.2s; }
.egg-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes eggPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Matrix Easter Egg */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out);
}

.matrix-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#matrixCanvas {
    width: 100%;
    height: 100%;
}

.matrix-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10001;
}

.matrix-logo {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #00ff41;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    margin-bottom: 24px;
    opacity: 0;
    animation: matrixFadeIn 1s var(--ease-out) 0.5s forwards;
}

.matrix-subtitle {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #00ff41;
    opacity: 0;
    animation: matrixFadeIn 1s var(--ease-out) 0.8s forwards;
}

.matrix-exit {
    margin-top: 80px;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    animation: matrixFadeIn 1s var(--ease-out) 1.2s forwards;
}

.matrix-exit:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

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

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        padding: 24px 32px;
    }
    
    .hero {
        padding: 120px 32px 80px;
    }
    
    section {
        padding: 120px 32px;
    }
    
    .hero-metrics {
        gap: 40px;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .timeline-item::before {
        position: static;
        display: block;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 32px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}
