/* ==========================================================================
   CSS VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --bg-color-main: #0c0c0e;      
    --bg-color-card: rgba(30, 30, 32, 0.65); 
    --accent-color: #c69b6b;       
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 30px -15px rgba(0,0,0,0.8);
    --transition-speed: 0.3s;
    --radius-sharp: 12px; 
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; scroll-behavior: smooth; }

body { font-family: var(--font-body); background-color: var(--bg-color-main); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { text-decoration: none; color: var(--text-primary); transition: all var(--transition-speed); }

/* GLASSMORPHISM & UI */
.glass-card { background: var(--bg-color-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: var(--radius-sharp); }
.glass-nav { background: rgba(12, 12, 14, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-block; padding: 14px 28px; font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 30px; border: none; transition: var(--transition-speed); }
.primary-btn { background-color: var(--accent-color); color: #000; }
.primary-btn:hover { background-color: #fff; transform: translateY(-3px); }
.secondary-btn { background-color: transparent; border: 1px solid var(--accent-color); color: var(--text-primary); }
.secondary-btn:hover { background-color: var(--accent-color); color: #000; }
.hover-target { transition: border-color var(--transition-speed), transform var(--transition-speed); }

/* STICKY CTA */
.sticky-cta { position: fixed; bottom: 30px; right: 30px; background: var(--accent-color); color: #000; padding: 15px 25px; border-radius: 30px; font-family: var(--font-heading); font-weight: 700; z-index: 1000; box-shadow: 0 10px 20px rgba(198, 155, 107, 0.3); }

/* CUSTOM CURSOR */
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-color); position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--accent-color); position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 9998; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s; }
.cursor-hover .cursor-dot { background-color: transparent; }
.cursor-hover .cursor-outline { width: 60px; height: 60px; background-color: rgba(198, 155, 107, 0.1); border-color: transparent; }

/* NAVIGATION */
.fixed-nav { position: fixed; top: 0; left: 0; width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; z-index: 1000; }
.nav-brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; }
.nav-brand span { color: var(--accent-color); }
.pill-menu { display: flex; list-style: none; gap: 15px; align-items: center; }
.pill-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--border-color); border-radius: 30px; background: rgba(255,255,255,0.03); font-family: var(--font-heading); font-weight: 600; text-transform: capitalize; font-size: 0.95rem; color: var(--text-secondary); }
.pill-menu a:hover { background: var(--accent-color); color: #000; border-color: var(--accent-color); }

/* 1. HERO SECTION */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; padding: 100px 40px 0; max-width: 1400px; margin: 0 auto; }
.hero-content { flex: 1; max-width: 650px; z-index: 2; }
.hero-subtitle { font-size: 1.2rem; color: var(--accent-color); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-size: 4.5rem; line-height: 1.1; letter-spacing: -2px; margin-bottom: 10px; }

/* TYPING EFFECT STYLES */
.hero-typing { font-size: 1.8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 20px; min-height: 40px; font-family: var(--font-body); }
.cursor { display: inline-block; width: 3px; background-color: var(--accent-color); animation: blink 1s infinite; margin-left: 2px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 15px; max-width: 550px; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.hero-image-container { flex: 1; height: 80vh; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-cutout { max-height: 100%; max-width: 100%; object-fit: contain; z-index: 2; }
.hero-glow { position: absolute; width: 500px; height: 500px; background: rgba(198, 155, 107, 0.15); border-radius: 50%; filter: blur(80px); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }

/* PAGE SECTIONS */
.page-section { padding: 100px 0; }
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: 3rem; letter-spacing: -1px; }
.section-title span { color: var(--accent-color); }
.fade-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* GRIDS */
.grid-layout-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact-box, .case-card-ui { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.fact-box { padding: 30px 20px; text-align: center; }
.fact-box h3 { font-size: 3rem; color: var(--accent-color); line-height: 1; margin-bottom: 10px; }
.fact-box p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); font-weight: 600; margin: 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.about-text { padding: 40px; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; }

/* MARQUEE */
.full-width-marquee { width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); background-color: var(--accent-color); color: #000; padding: 20px 0; font-family: var(--font-heading); font-size: 1.2rem; white-space: nowrap; overflow: hidden; margin-bottom: 50px; margin-top: 20px; }
.marquee-content { display: inline-block; animation: scrollMarquee 20s linear infinite; }
.marquee-content span { margin: 0 40px; font-weight: 700; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SKILLS - PURE 12 TILE GRID */
.technical-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.skill-tile { padding: 30px 20px; border-radius: var(--radius-sharp); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; justify-content: center; }
.skill-tile i { font-size: 2.5rem; color: var(--accent-color); }
.skill-tile span { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.5px; font-size: 1rem; }
.skill-tile:hover { border-color: var(--accent-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(198, 155, 107, 0.1); }

/* AWARDS */
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.award-card { padding: 50px; }
.award-title { font-size: 1.8rem; margin-bottom: 15px; font-family: var(--font-heading); color: var(--text-primary); }
.award-desc { color: var(--text-secondary); font-size: 1.05rem; }

/* INFOGRAPHIC */
.infographic-container { position: relative; width: 100%; border-radius: var(--radius-sharp); padding: 15px; }
.info-img { width: 100%; height: auto; object-fit: contain; border-radius: 8px; transition: transform 0.5s ease; display: block; }
.info-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(198, 155, 107, 0.85); color: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 1.5rem; font-family: var(--font-heading); font-weight: 700; opacity: 0; transition: opacity 0.3s ease; border-radius: var(--radius-sharp); }
.infographic-container:hover .info-overlay { opacity: 1; }

/* RESULTS CASE CARDS (SOFTENED FONT) */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: stretch; }
.case-card-ui { position: relative; padding: 50px 40px; text-align: center; overflow: hidden; justify-content: flex-start; border-top: 4px solid transparent; transition: all 0.3s ease; }
.case-card-ui:hover { border-top-color: var(--accent-color); }
.case-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 25px; }
.case-card-ui h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 500; letter-spacing: 0; }
.highlight-metric { display: inline-block; padding: 8px 15px; background: rgba(198, 155, 107, 0.1); color: var(--accent-color); border-radius: 5px; font-weight: 500; font-family: var(--font-heading); margin-top: auto; }
.case-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--accent-color); color: #000; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; font-family: var(--font-heading); font-weight: 700; opacity: 0; transition: opacity 0.3s ease; }
.case-card-ui:hover .case-overlay { opacity: 1; }

/* BLOG SECTION */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: stretch; }
.blog-card { padding: 0; overflow: hidden; justify-content: flex-start; }
.blog-img-wrapper { width: 100%; height: 200px; overflow: hidden; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.blog-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img-wrapper img { transform: scale(1.1); }
.blog-content { padding: 30px; display: flex; flex-direction: column; height: 100%; }
.blog-content h3 { margin-bottom: 10px; font-size: 1.3rem; }
.blog-date { font-size: 0.8rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; font-weight: 600; }

/* CONTACT GRID */
.contact-cooler-grid { display: flex; flex-direction: column; gap: 20px; }
.contact-row-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card-large { display: flex; align-items: center; gap: 25px; padding: 40px; }
.contact-icon i { font-size: 2.5rem; color: var(--accent-color); }
.contact-details { display: flex; flex-direction: column; }
.contact-label { color: var(--text-secondary); font-size: 1rem; margin-bottom: 5px; }
.contact-value { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }
.contact-cta-buttons { display: flex; gap: 15px; }

/* RESUME - VERTICAL TIMELINE */
.resume-block-header { margin-bottom: 30px; }
.resume-badge { border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 30px; font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 1px; }

.timeline { position: relative; padding-left: 40px; border-left: 2px solid var(--border-color); }
.timeline-item { padding: 30px; margin-bottom: 40px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -47px; top: 35px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-color-main); border: 2px solid var(--accent-color); }
.timeline-3d-icon { position: absolute; left: -65px; top: 20px; width: 50px; height: 50px; object-fit: cover; mix-blend-mode: screen; border-radius: 10px; z-index: 10; transition: transform 0.3s ease; }
.timeline-item:hover .timeline-3d-icon { transform: scale(1.2) rotate(5deg); }
.timeline-marker { position: absolute; left: -47px; top: 35px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-color-main); border: 2px solid var(--accent-color); }

.timeline-date { display: inline-block; padding: 5px 15px; border: 1px solid var(--accent-color); border-radius: 20px; font-size: 0.85rem; color: var(--accent-color); margin-bottom: 15px; font-weight: 600; }
.timeline-title { font-size: 1.6rem; margin-bottom: 5px; }
.timeline-company { font-size: 1rem; color: var(--text-secondary); margin-bottom: 15px; font-weight: 400; letter-spacing: 1px; }

/* EDU/COURSES GRID */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.resume-column { display: flex; flex-direction: column; gap: 20px; }
.resume-card { padding: 40px; position: relative; border-left: 2px solid var(--border-color); }
.rc-date { position: absolute; top: -12px; left: 30px; background: var(--bg-color-main); border: 1px solid var(--border-color); padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; color: var(--accent-color); }
.rc-title { font-size: 1.4rem; margin-bottom: 10px; }

/* MODALS */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.modal-content { padding: 50px; width: 100%; max-width: 600px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 2rem; color: var(--text-secondary); z-index: 10; }
.close-modal:hover { color: var(--accent-color); }
.modal-body h4 { color: var(--accent-color); margin: 25px 0 10px; font-size: 1.2rem; }
.modal-body p { color: var(--text-secondary); }
#modal-title { font-size: 2rem; margin-bottom: 10px; line-height: 1.2; }

/* FOOTER */
.site-footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--border-color); margin-top: 50px; color: var(--text-secondary); font-size: 0.9rem; }

/* ==========================================================================
   ARTICLE / BLOG POST TYPOGRAPHY
   ========================================================================== */
.article-body h2 { font-size: 2.2rem; margin: 50px 0 20px; letter-spacing: -0.5px; color: var(--text-primary); }
.article-body h3 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--text-primary); }
.article-body p { font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 25px; }
.article-body ul, .article-body ol { margin-bottom: 30px; padding-left: 25px; }
.article-body li { font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 10px; }
.article-body hr { border: 0; height: 1px; background: var(--border-color); margin: 50px 0; }
.callout-box { padding: 30px; margin: 40px 0; border-left: 4px solid var(--accent-color); }
.callout-box h4 { font-size: 1.3rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.callout-box p:last-child { margin-bottom: 0; }

.table-responsive { overflow-x: auto; margin: 40px 0; padding: 0; }
.article-table { width: 100%; border-collapse: collapse; text-align: left; }
.article-table th { background: rgba(255,255,255,0.05); padding: 20px; font-family: var(--font-heading); font-weight: 600; color: var(--accent-color); border-bottom: 1px solid var(--border-color); }
.article-table td { padding: 20px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.article-table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   MOBILE OVERRIDES (FIXED HERO LAYOUT)
   ========================================================================== */
@media (max-width: 992px) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
    
    .hero-section { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 120px; 
        min-height: 100vh; 
        justify-content: flex-start;
        align-items: center; 
        position: relative;
    }
    
    .hero-content { 
        margin-bottom: 20px; 
        z-index: 10;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
    
    .hero-actions { justify-content: center; width: 100%; flex-wrap: wrap; }
    .hero-title { font-size: 2.8rem; margin-bottom: 10px; }
    .hero-typing { font-size: 1.4rem; min-height: 30px; margin-bottom: 15px;}
    
    .hero-image-container { 
        position: absolute; bottom: 0; left: 0; width: 100%; height: 50vh; 
        z-index: 0; pointer-events: none; opacity: 0.25; 
    }
    
    .hero-cutout { 
        position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) !important; 
        max-height: 100%; width: auto; object-fit: contain; object-position: bottom;
        -webkit-mask-image: -webkit-linear-gradient(bottom, transparent 0%, black 20%, black 100%);
        mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
    }
    .hero-glow { display: none; }

    .grid-layout-4 { grid-template-columns: 1fr 1fr; }
    .awards-grid, .contact-row-top, .resume-grid, .skills-split-layout { grid-template-columns: 1fr; }
    .technical-grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-card-large { flex-direction: column; text-align: center; gap: 15px; padding: 30px; }
    .mobile-contact-fix { flex-direction: column; }
    .contact-cta-buttons { flex-direction: column; width: 100%; margin-top: 20px; }
    .contact-cta-buttons a { width: 100%; text-align: center; }

    .nav-links { display: none; }
    .section-title { text-align: center; }
    .section-title h2 { font-size: 2.2rem; }
    
    .timeline-3d-icon { left: -55px; width: 40px; height: 40px; top: 25px; }
    .sticky-cta { bottom: 15px; right: 15px; padding: 12px 20px; font-size: 0.9rem; }
    
    .article-body h2 { font-size: 1.8rem; }
    .article-body p, .article-body li { font-size: 1.05rem; }
    .article-table th, .article-table td { padding: 15px 10px; font-size: 0.95rem; }
}