:root {
    --bg: #050505;
    --text: #ffffff;
    --accent: #ff6600;
    --neutral: #555555;
    --font-main: 'Geist', sans-serif;
    --font-mono: 'Geist Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
}

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

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.post-terminal-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Don't block clicks */
    width: 90%; /* Ensure it's responsive */
    max-width: 600px;
}

.post-terminal-logo {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.post-terminal-logo span {
    color: var(--accent);
}

.post-terminal-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--neutral);
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

.terminal {
    width: 100%;
    max-width: 550px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1e1e1e;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-bottom: 1px solid #333;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #888;
}

.terminal-body {
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 320px;
    overflow-y: hidden;
    color: #d1d1d1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.prompt { color: var(--accent); font-weight: bold; }
.success { color: #27c93f; font-weight: bold; }
.info { color: #00aaff; }

.cursor {
    display: inline-block;
    width: 8px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-line { 
    margin-bottom: 6px; 
    word-break: break-all;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.nav-logo { font-weight: 900; font-size: 1.5rem; }
.nav-logo span { color: var(--accent); }
.nav-links a { margin-left: 2rem; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; }
.nav-cta { background: var(--accent); padding: 0.6rem 1.5rem; border-radius: 50px; }

/* Hero Widgets */
.hero-widgets {
    position: absolute;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 5;
    opacity: 0; /* Animated via GSAP */
    pointer-events: none;
}

.floating-widget {
    pointer-events: auto;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    width: 270px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
}

.floating-widget:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
}

.widget-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.widget-header .dot {
    width: 10px;
    height: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(39, 201, 63, 0.4);
    animation: widget-pulse 2s infinite;
}

@keyframes widget-pulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: #888;
}

.terminal-mini {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
}

.mini-prompt { color: var(--accent); }

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item:last-child { border-bottom: none; }

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--neutral);
    letter-spacing: 1px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.vertical-banner {
    position: absolute;
    right: 5%;
    top: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 0;
}

.banner-track {
    display: flex;
    flex-direction: column;
}

.banner-track span {
    font-size: 7vh;
    font-weight: 900;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
    padding: 2rem 0;
    white-space: nowrap;
}

.hero-sub { color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 1rem; }
.hero-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; line-height: 0.9; }
.text-accent { color: var(--accent); }
.hero-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%; /* Ensure it takes full width */
    padding-top: 25vh; /* Adjusted to bring content up, reducing top negative space */
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10% 4rem; /* Adjusted bottom padding to maintain spacing with the footer bar */
    position: relative;
}

.hero-sub { 
    color: var(--accent); 
    font-family: var(--font-mono); 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    margin-top: 3rem; /* Brought down a few rems as requested */
    margin-bottom: 1rem; 
}

.hero-footer {
    margin-top: auto;
    padding-bottom: 6rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.footer-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 2rem;
    border-radius: 100px; /* Pill shape */
    gap: 2rem; /* Spacing between elements */
}

.tagline {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.footer-separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.socials {
    display: flex;
    align-items: center;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #EEEEEE; /* High contrast for improved legibility against black */
    padding: 0 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.social-link:last-child {
    border-right: none;
}

.social-link i {
    font-size: 1rem;
}

.social-link .social-code {
    opacity: 0.5;
}

.social-link:hover {
    color: var(--accent);
}

/* About */
.about { padding: 10rem 10%; background: #080808; }
.section-title { font-size: 3rem; margin-bottom: 3rem; }
.section-title span { color: var(--accent); }
.about-text { font-size: 1.5rem; max-width: 800px; line-height: 1.6; color: #ccc; }
.skills-grid { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.skill { border: 1px solid #333; padding: 0.5rem 1.5rem; border-radius: 50px; font-family: var(--font-mono); }

/* Horizontal Scroll */
.work-wrapper {
    overflow: hidden;
}

.horizontal-scroll {
    display: flex;
    width: 400vw; /* 4 cards * 100vw */
    height: 100vh;
}

.project-card {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    border-right: 1px solid #111;
}

.huge-text { font-size: 15vw; line-height: 0.8; font-weight: 900; opacity: 0.1; }

.project-info {
    max-width: 600px;
    position: relative;
}

.project-num { 
    font-family: var(--font-mono); 
    color: var(--accent); 
    display: block; 
    margin-bottom: 1rem; 
    font-size: 1.2rem;
}

.project-info h3 { font-size: 4rem; margin-bottom: 1.5rem; }
.project-info p { font-size: 1.2rem; color: var(--neutral); margin-bottom: 2rem; }
.view-btn { 
    color: var(--accent); 
    font-weight: bold; 
    border-bottom: 2px solid var(--accent); 
    padding-bottom: 5px;
}

/* Reveal Animation helper */
.reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

/* Footer & Contact */
.footer {
    padding: 10rem 5% 5rem;
    background: #000;
}

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

.footer-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.footer-heading {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.footer-sub {
    font-size: 1.2rem;
    color: var(--neutral);
    margin-bottom: 4rem;
}

.footer-email {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5rem;
    transition: color 0.3s;
}

.footer-email:hover {
    color: var(--accent);
}

.footer-email i {
    font-size: 0.7em;
    opacity: 0.5;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
    text-align: left;
}

.footer-col h4 {
    font-family: var(--font-mono);
    color: var(--neutral);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.social-links, .nav-links-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a, .nav-links-footer a {
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.social-links a:hover, .nav-links-footer a:hover {
    color: var(--accent);
    transform: translateX(10px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neutral);
    letter-spacing: 1px;
}

/* --- Mobile styling --- */
@media (max-width: 1024px) {
    .custom-cursor { display: none; }
    body { cursor: auto; }
    
    .vertical-banner { display: none; }
    
    .hero-widgets { display: none; }
    
    .horizontal-scroll {
        flex-direction: column;
        width: 100vw;
        height: auto;
    }

    .project-card {
        width: 100vw;
        height: auto;
        min-height: 60vh;
        padding: 4rem 5%;
        border-right: none;
        border-bottom: 1px solid #111;
    }

    .huge-text { font-size: 10rem; line-height: 1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified nav for mobile */
    
    .hero { padding: 0 5%; }
    .hero-title { font-size: 4rem; }
    .hero-footer { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 2rem; 
    }

    .terminal { width: 95%; }
    .terminal-body { height: 280px; font-size: 0.75rem; }

    .section-title { font-size: 2.2rem; }
    .about-text { font-size: 1.1rem; }
    
    .project-info h3 { font-size: 2.5rem; }

    .post-terminal-logo { font-size: 2.5rem; }
    .post-terminal-tagline { font-size: 0.9rem; }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (hover: none) {
    .custom-cursor { display: none; }
}

/* About Page Specific Styles */
.about-hero-section {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 10rem 10% 4rem; /* Consistent with hero section padding */
    background-color: var(--bg);
    gap: 5%;
}

.about-hero-left {
    flex: 1;
    max-width: 55%;
}

.about-hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text);
}

.about-hero-title span {
    color: var(--accent);
}

.about-hero-right {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: flex-end;
}

.developer-manifest-card {
    width: 100%;
    max-width: 450px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #d1d1d1;
}

.manifest-header {
    background: #1e1e1e;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-bottom: 1px solid #333;
}

.manifest-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #888;
}

.manifest-body {
    padding: 20px;
    line-height: 1.6;
}

/* Syntax Highlighting for Manifest */
.manifest-body code {
    color: #ce9178; /* String color */
}
.manifest-body pre {
    color: #9cdcfe; /* Key color */
}
#local-time, #local-time-home {
    color: var(--accent);
}
.about-brief {
    margin-top: 2rem;
    color: var(--neutral);
    font-size: 1.1rem;
    max-width: 450px;
}

.manifest-body pre {
    margin: 0;
}

/* Section 2: Interactive Timelines */
.about-journey-section {
    padding: 80px 10%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content to equalize negative space */
    gap: 48px;
}

.timeline-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    gap: 32px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 80px 40px 1fr;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #222222;
    opacity: 0; /* Hidden initially for GSAP animation */
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: #555555;
    font-weight: bold;
}

.timeline-row[data-year="2024"] .timeline-year {
    color: #FF5700;
    font-weight: 900;
}

.timeline-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.timeline-icon-box svg {
    width: 24px;
    height: 24px;
}

.timeline-text-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.milestone-title {
    font-size: 1.75rem;
    color: #FFFFFF;
    font-weight: 700;
}

.milestone-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    max-width: 700px;
}

/* Section 3: Workflow Matrix */
.about-workflow-section {
    padding: 10rem 10%;
    background-color: var(--bg);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.workflow-column {
    padding: 0 1rem;
}

.workflow-separator {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.workflow-column:first-child .workflow-separator {
    display: none; /* Hide separator for the first column */
}

.workflow-header {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.workflow-column ul {
    list-style: none;
    padding: 0;
}

.workflow-column li {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.workflow-column li:hover {
    opacity: 1;
    color: var(--accent);
}

/* Responsive adjustments for About page */
@media (max-width: 1024px) {
    .about-hero-section {
        flex-direction: column;
        padding: 8rem 5% 4rem;
    }
    .about-hero-left, .about-hero-right {
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }
    .about-hero-title {
        margin-bottom: 3rem;
    }
    .timeline-grid, .workflow-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .timeline-content {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
    }
    .workflow-separator {
        display: none;
    }
    .workflow-column {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2.5rem;
    }
    .developer-manifest-card {
        font-size: 0.75rem;
    }
    .timeline-year-item {
        font-size: 1.5rem;
    }
    #timeline-detail {
        font-size: 1rem;
    }
    .workflow-header {
        font-size: 0.8rem;
    }
    .workflow-column li {
        font-size: 1rem;
    }
}