/* =============================================
   Michael Solaiman - Personal Website
   Stylesheet v1.0
   ============================================= */

/* CSS Variables */
:root {
    --sand: #E8E2D9;
    --warm-white: #FAF9F7;
    --charcoal: #2C2C2C;
    --gold: #B8956A;
    --gold-light: #D4B896;
    --sage: #8A9A8B;
    --ocean: #456A6E;
    --cream: #F5F3EF;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--warm-white);
    color: var(--charcoal);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Custom Cursor (Desktop only) */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0;
}

@media (pointer: fine) {
    .cursor { 
        opacity: 1; 
    }
}

/* =============================================
   Navigation
   ============================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-slow);
    mix-blend-mode: difference;
}

nav.scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 4rem;
    mix-blend-mode: normal;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--warm-white);
    transition: color var(--transition-normal);
}

nav.scrolled .logo {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--warm-white);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-normal);
}

nav.scrolled .nav-links a {
    color: var(--charcoal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-normal);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 1px;
    background: var(--warm-white);
    transition: all var(--transition-normal);
}

nav.scrolled .mobile-menu-btn span {
    background: var(--charcoal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--charcoal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 2rem 0;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--warm-white);
    transition: color var(--transition-normal);
}

.mobile-menu a:hover {
    color: var(--gold-light);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(69, 106, 110, 0.9) 0%, rgba(44, 44, 44, 0.85) 100%),
        url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?w=1920&q=80') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--warm-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--warm-white);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--gold-light);
    padding: 1rem 2.5rem;
    transition: all var(--transition-slow);
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-cta:hover {
    background: var(--gold-light);
    color: var(--charcoal);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   About Section
   ============================================= */
.about {
    padding: 10rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--gold-light);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    object-position: top;
    filter: none;
    transition: filter var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-content h2 span {
    color: var(--gold);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.05rem;
}

.signature {
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: italic;
    color: var(--gold);
    margin-top: 2rem;
}

/* =============================================
   Stats Bar
   ============================================= */
.stats-bar {
    background: var(--charcoal);
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--warm-white);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-light);
    display: inline;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.section-description {
    color: #666;
}

/* =============================================
   Expertise Section
   ============================================= */
.expertise {
    padding: 10rem 4rem;
    background: var(--cream);
}

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

.expertise-card {
    background: var(--warm-white);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height var(--transition-slow);
}

.expertise-card:hover::before {
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.expertise-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: #666;
    font-size: 0.95rem;
}

/* =============================================
   Journey Section
   ============================================= */
.journey {
    padding: 10rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.journey-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
}

.journey-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.journey-sidebar h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--sand);
}

.timeline-item {
    padding-left: 3rem;
    padding-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--warm-white);
    border: 2px solid var(--gold);
}

.timeline-year {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--ocean);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #666;
    font-size: 0.95rem;
}

/* =============================================
   Credentials Section
   ============================================= */
.credentials {
    padding: 6rem 4rem;
    background: var(--sand);
}

.credentials-content {
    max-width: 1000px;
    margin: 0 auto;
}

.credentials .section-header {
    margin-bottom: 3rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--warm-white);
    transition: transform var(--transition-normal);
}

.credential-item:hover {
    transform: translateX(5px);
}

.credential-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--gold);
}

.credential-icon svg {
    width: 100%;
    height: 100%;
}

.credential-text h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.credential-text p {
    color: #666;
    font-size: 0.9rem;
}

/* =============================================
   Insights Section
   ============================================= */
.insights {
    padding: 10rem 4rem;
    background: var(--charcoal);
    color: var(--warm-white);
}

.insights .section-label {
    color: var(--gold-light);
}

.insights .section-description {
    color: rgba(255,255,255,0.6);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.insight-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem;
    transition: all var(--transition-slow);
}

.insight-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--gold);
}

.insight-category {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.insight-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.insight-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.insight-link {
    color: var(--gold-light);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-normal);
}

.insight-link:hover {
    gap: 1rem;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    padding: 10rem 4rem;
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.contact p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact .advisory-note {
    font-style: italic;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    display: inline-block;
    max-width: 500px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-normal);
}

.contact-link:hover {
    color: var(--gold);
}

.contact-link-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.contact-link:hover .contact-link-icon {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--warm-white);
}

.contact-link span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 1px solid var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-link:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--warm-white);
}

/* =============================================
   Footer
   ============================================= */
footer {
    padding: 3rem 4rem;
    background: var(--charcoal);
    color: rgba(255,255,255,0.5);
    text-align: center;
    font-size: 0.85rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--gold-light);
    opacity: 0.6;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scrollPulse {
    0%, 100% { 
        transform: scaleY(1); 
        opacity: 1; 
    }
    50% { 
        transform: scaleY(0.5); 
        opacity: 0.5; 
    }
}

/* Reveal animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    .about {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 6rem 2rem;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
    }

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

    .journey-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .journey-sidebar {
        position: relative;
        top: 0;
    }

    .journey-sidebar h2 {
        writing-mode: horizontal-tb;
        transform: none;
    }

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

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

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }

    nav.scrolled {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-content h2,
    .section-title,
    .contact h2 {
        font-size: 2rem;
    }

    .about-image img {
        height: auto;
        max-height: 500px;
    }

    .expertise-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .expertise,
    .journey,
    .insights,
    .contact,
    .credentials {
        padding: 5rem 2rem;
    }

    .expertise-card,
    .insight-card {
        padding: 2rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.75rem;
    }

    .about-image::before {
        display: none;
    }

    .credential-item {
        flex-direction: column;
        text-align: center;
    }

    .credential-icon {
        margin: 0 auto;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    nav,
    .cursor,
    .scroll-indicator,
    .mobile-menu {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem;
    }

    .hero-bg {
        display: none;
    }

    .hero-content {
        color: var(--charcoal);
    }

    .hero-title,
    .hero-description,
    .hero-subtitle {
        color: var(--charcoal);
        opacity: 1;
        animation: none;
    }

    section {
        page-break-inside: avoid;
    }
}
