/* --- Root Variables & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #fcfbfa; 
    --text-main: #111111;
    --text-muted: #666666;
    --accent-color: #8c6239; 
    --border-color: #e5e2dd;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* --- Global Elements & Background Texture --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    
    background-image: 
        linear-gradient(rgba(229, 226, 221, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 226, 221, 0.25) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Native CSS Scroll Indicator Track line */
.scroll-tracker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10000;
    animation: track-progress linear;
    animation-timeline: scroll(root block);
}

@keyframes track-progress {
    to { transform: scaleX(1); }
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    opacity: 0.04; 
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4%;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.logo span { color: var(--accent-color); }

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 1.2rem;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--accent-color); }

.btn-download {
    text-decoration: none;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: background 0.3s;
}
.btn-download:hover { background-color: #704e2c; }

/* --- Global Section Helpers --- */
.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
}

.section-lead-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* --- 01 Hero Section --- */
.hero-section {
    display: flex;
    min-height: calc(100vh - 90px);
    border-bottom: 1px solid var(--border-color);
}

.hero-left {
    flex: 1.1;
    padding: 5rem 4% 3rem 4%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.hello-tag {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-left h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 1.5rem;
}
.hero-left h1 .asterisk { color: var(--accent-color); }

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-dark {
    text-decoration: none;
    background-color: var(--text-main);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-underline {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 3px;
}

.scroll-explore {
    position: absolute;
    bottom: 2rem;
    left: 4%;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.rotated-text {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    white-space: nowrap;
}

.hero-right {
    flex: 0.9;
    position: relative;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-card {
    position: absolute;
    bottom: 3rem;
    right: 0;
    background-color: rgba(17, 17, 17, 0.95);
    color: #fff;
    padding: 2.5rem;
    max-width: 320px;
}
.quote-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- 02 Isolated About Me Section (50/50 Split) --- */
.about-section-isolated {
    display: flex;
    min-height: 80vh;
    border-bottom: 1px solid var(--border-color);
}

.about-left {
    flex: 1;
    max-height: 85vh;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

.about-left .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-right {
    flex: 1;
    padding: 6rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.info-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2px;
}
.info-item strong {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.3rem;
}
.info-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- 03 Isolated Skills Section --- */
.skills-section-isolated {
    display: flex;
    min-height: 85vh;
    border-bottom: 1px solid var(--border-color);
}

.skills-left {
    flex: 1;
    padding: 6rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skills-bars {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.skill-item { width: 100%; }
.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}
.tech-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}
.progress-bar {
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
}

.progress {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background-color: var(--text-main);
    width: var(--target-width);
    transform-origin: left;
    animation: grow-progress linear both;
    animation-timeline: view();
    animation-range: entry 10% contain 40%;
}

@keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.skills-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* --- Concentric Ferris Wheel Matrix (With Target Lines) --- */
.floating-logos-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Geometric Layout Circle Overlays */
.wheel-tracks-svg {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.track-line {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1px;
}

/* Uniform design framework for circular branding badges */
.dynamic-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;  
    height: 65px; 
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    transition: border-color 0.3s, scale 0.3s;
    z-index: 2;
}

.dynamic-logo img {
    width: 38px;  
    height: 38px; 
    object-fit: contain;
}

/* Light scaling highlight interaction on pointer overlap without stopping cycle */
.dynamic-logo:hover {
    border-color: var(--accent-color);
    scale: 1.1;
    cursor: pointer;
    z-index: 10;
}

/* --- Concentric Ring Structural Radius Mapping --- */
.ring-inner {
    --radius: 75px;
    animation: ferris-wheel-cw 20s linear infinite;
}

.ring-middle {
    --radius: 145px;
    animation: ferris-wheel-ccw 25s linear infinite;
}

.ring-outer {
    --radius: 215px;
    animation: ferris-wheel-cw 35s linear infinite;
}

/* --- Ferris Wheel Upright Matrix Transformations --- */

/* Clockwise Structural Path Loops */
@keyframes ferris-wheel-cw {
    from {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
    }
    to {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translate(var(--radius)) rotate(calc(-1 * (var(--angle) + 360deg)));
    }
}

/* Anti-Clockwise Structural Path Loops */
@keyframes ferris-wheel-ccw {
    from {
        transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
    }
    to {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) - 360deg)) translate(var(--radius)) rotate(calc(-1 * (var(--angle) - 360deg)));
    }
}

/* --- DYNAMIC HORIZONTAL SCROLL TIMELINE TRACKS --- */
.horizontal-scroll-wrapper {
    position: relative;
    height: 300vh; 
    background-color: #1a1918;
    color: #fcfbfa;
}

.horizontal-scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    padding: 0 10vw;
    gap: 8vw;
    width: max-content;
    will-change: transform;
}

.horizontal-slide {
    width: 28vw;
    flex-shrink: 0;
}

.introduction-slide {
    width: 32vw;
}

.introduction-slide h2 {
    font-size: 4rem;
    color: #fff;
}
.introduction-slide .section-lead-text {
    color: #aaa;
}

.horizontal-scroll-wrapper .project-card {
    background: #242321;
    border: 1px solid #33322f;
    padding: 2.5rem;
    transition: background 0.4s;
}
.horizontal-scroll-wrapper .project-card:hover {
    background: #2b2a27;
}
.horizontal-scroll-wrapper .project-img-container {
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.horizontal-scroll-wrapper .project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}
.horizontal-scroll-wrapper .project-details h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.horizontal-scroll-wrapper .proj-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #bfa083;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.horizontal-scroll-wrapper .proj-desc {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
}
.horizontal-scroll-wrapper .project-tech-tags {
    display: flex;
    gap: 0.6rem;
}
.horizontal-scroll-wrapper .project-tech-tags span {
    font-size: 0.7rem;
    border: 1px solid #444;
    padding: 0.3rem 0.8rem;
    color: #bbb;
}

/* --- Professional Experience Horizontal Slide Modifications --- */
.evaluation-track {
    background-color: var(--bg-color);
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
}
.evaluation-track .introduction-slide h2 {
    color: var(--text-main);
}
.evaluation-track .introduction-slide .section-lead-text {
    color: var(--text-muted);
}

.timeline-slide {
    width: 32vw;
}
.timeline-card {
    border-left: 2px solid var(--text-main);
    padding: 1.5rem 0 1.5rem 2.5rem;
    position: relative;
}
.timeline-card .date {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.timeline-card h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
}
.timeline-card h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 440px;
}

/* --- Bottom Layout Info Sections --- */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    border-top: 1px solid var(--border-color);
}
.bottom-grid > section {
    padding: 6rem 4rem;
}
.bottom-grid > section:first-child {
    border-right: 1px solid var(--border-color);
}

/* Certifications Panel */
.cert-list {
    list-style: none;
    margin-top: 1rem;
}
.cert-list li {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Connect Section styling */
.connect-content {
    display: flex;
    gap: 3rem;
}
.contact-methods {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-link {
    font-size: 0.95rem;
}
.contact-link i {
    color: var(--accent-color);
    margin-right: 10px;
}
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}
.social-icons a {
    color: var(--text-main);
    font-size: 1.2rem;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--accent-color); }

.connect-image-side {
    flex: 1;
    position: relative;
    height: 280px;
}
.connect-image-side img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.vertical-thankyou {
    position: absolute;
    right: -2.5rem; top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 4%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    background-color: #111;
    color: #777;
}

/* --- Responsive Layout Switches --- */
@media (max-width: 1024px) {
    .horizontal-scroll-wrapper { height: auto; }
    .horizontal-scroll-container { 
        position: static; 
        height: auto; 
        flex-direction: column; 
        width: 100%; 
        padding: 4rem 6%;
        gap: 3rem;
    }
    .horizontal-slide { width: 100%; }
    .introduction-slide { width: 100%; }
    .bottom-grid { grid-template-columns: 1fr; }
    .bottom-grid > section:first-child { border-right: none; border-bottom: 1px solid var(--border-color); }
    
    .about-section-isolated, .skills-section-isolated {
        flex-direction: column;
    }
    .about-left, .skills-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .about-left {
        height: 45vh;
    }
    .skills-right {
        padding: 5rem 0;
        height: 450px;
    }
}