@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@200;300;400;500;600&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
    --bg: #fffdf9;
    --surface: #f8f1e7;
    --gold: #d4af37;
    --gold-soft: #e5c48e;
    --rose: #dcae96;
    --charcoal: #2d2d2d;
    --text-dim: #666666;
    --border: rgba(212, 175, 55, 0.15);
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Global */
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg);
    color: var(--charcoal);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-align: justify;
    text-justify: inter-word;
}

p, li, .timeline-desc, .hero-content p, #about p {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto;
    word-break: break-word;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Header */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-scrolled {
    padding: 15px 0;
    background: rgba(255, 253, 249, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 4rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content h1 span {
    font-style: italic;
    color: var(--gold);
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--surface);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.1);
}

.hero-frame {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-soft);
    z-index: -1;
}

/* Sections */
section {
    padding: 180px 0;
}

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--gold-soft);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 120px;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 10px;
    width: 11px;
    height: 11px;
    background: var(--gold);
    border-radius: 50%;
}

.timeline-year {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.timeline-role {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 2rem;
    display: block;
}

/* Skill Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-card {
    padding: 4rem;
    background: var(--surface);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    background: #fff;
    box-shadow: 0 40px 80px rgba(212, 175, 55, 0.1);
    transform: translateY(-10px) scale(1.03);
}

/* Contact */
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 180px 0;
}

.contact-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30vw;
    font-family: 'Playfair Display';
    color: rgba(212, 175, 55, 0.03);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.contact-email-large {
    font-family: 'Playfair Display';
    font-size: clamp(2rem, 8vw, 6rem);
    color: var(--charcoal);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6rem;
    position: relative;
    transition: var(--transition);
}

.contact-email-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-email-large:hover::after {
    transform: scaleX(1);
}

.contact-grid-refined {
    display: flex;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-circle-item {
    width: 120px;
    height: 120px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--charcoal);
    transition: var(--transition);
    background: transparent;
}

.contact-circle-item:hover {
    border-color: var(--gold);
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-circle-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.contact-circle-item span {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* Value Cards */
.value-card {
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    background: transparent;
}

.value-card:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.value-card:hover span {
    color: #fff !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Final Luxury Polish */
::selection {
    background: var(--gold-soft);
    color: #fff;
}/* Utilities */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* --- Responsive Design --- */

/* Tablet (iPad) */
@media (max-width: 1024px) {
    .container { padding: 0 3rem; }
    h1 { font-size: 4.5rem !important; }
    h2 { font-size: 2.8rem !important; }
    
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-content { align-items: center; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-image-wrap { max-width: 600px; margin: 0 auto; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    
    /* Global Reset for Mobile Overflow */
    html, body { overflow-x: hidden; position: relative; width: 100%; }
    section { overflow: hidden; }

    /* Navigation */
    .nav-links { display: none; }
    nav { padding: 15px 0; }
    .nav-scrolled { padding: 10px 0; }
    
    /* Typography */
    h1 { font-size: 3.2rem !important; line-height: 1.1; margin-bottom: 2rem !important; }
    h2 { font-size: 2rem !important; margin-bottom: 2rem !important; }
    
    /* Stacking Grids - Forced */
    .grid-2-col { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important; 
    }
    
    /* Hero */
    .hero { height: auto; padding: 100px 0 40px 0; }
    .hero-image-wrap { max-width: 100%; }
    .hero-content { padding: 0; }
    .hero-content p { margin-bottom: 3rem !important; }
    
    /* About */
    #about > div { grid-template-columns: 1fr !important; gap: 3rem !important; }
    #about .grid-2-col { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; } /* Keep strengths 2x2 on mobile if they are small tags */
    
    /* Experience */
    .timeline { padding-left: 0.25rem; }
    .timeline-item { padding-left: 1.25rem; }
    .timeline-role { font-size: 1.4rem; }
    .timeline-year { font-size: 0.7rem; }
    
    /* Achievements */
    #achievements .grid-2-col { grid-template-columns: 1fr !important; }
    #achievements > div > div { padding: 2rem 1.5rem !important; }
    
    /* Education */
    #education .grid-2-col { grid-template-columns: 1fr !important; }
    #education > div > div { 
        text-align: center !important; 
        padding: 2rem 0 !important; 
        border: none !important; 
    }
    
    /* Contact */
    .contact-hero { padding: 80px 0; }
    .contact-grid-refined { gap: 1rem; }
    .contact-circle-item { width: 80px; height: 80px; }
    .contact-circle-item i { font-size: 1.2rem; }
    .contact-circle-item span { font-size: 0.45rem; }
    .contact-email-large { font-size: 1.15rem !important; }
    .contact-watermark { font-size: 50vw; top: 30%; }
    
    /* Footer */
    footer { padding: 60px 0; }
    footer div:first-child { flex-direction: column; gap: 2rem; }
    footer div:last-child { flex-direction: column; gap: 1.5rem; text-align: center !important; }
}
