/* ==========================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================== */
   :root {
    --bg: #050505;
    --surface: #0D0D0D;
    --card: #111111;
    --border: rgba(255, 255, 255, 0.08);
    --primary: #ffffff;
    --accent: #4FD1FF;
    --secondary: #7C5CFF;
    --text-main: #f0f0f0;
    --text-muted: #999999;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================
   CUSTOM CURSOR
   ========================================================== */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* ==========================================================
   LOADER
   ========================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-logo {
    font-size: 4rem;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    opacity: 0;
}

.loader-progress-wrapper {
    width: 200px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
}

.loader-percentage {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================
   BACKGROUND CANVAS
   ========================================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 1rem 2rem;
    z-index: 100;
    transition: var(--transition);
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.nav-resume {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
}

.hero-intro {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero-intro .highlight {
    color: var(--primary);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 3rem;
    height: 30px;
}

.typing-cursor {
    animation: blink 1s infinite;
}

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: float-container 10s ease-in-out infinite;
}

@keyframes float-container {
    0%, 100% { transform: translateY(0) rotateX(10deg); }
    50% { transform: translateY(-20px) rotateX(15deg); }
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed var(--border);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 { width: 180px; height: 180px; margin: -90px 0 0 -90px; animation: spin-right 20s linear infinite; }
.orbit-2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: spin-left 30s linear infinite; }
.orbit-3 { width: 420px; height: 420px; margin: -210px 0 0 -210px; animation: spin-right 40s linear infinite; }

.tech-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Reverse rotation to keep icons upright */
    animation: counter-spin 20s linear infinite;
}

/* Positioning icons on orbits via manual translation then reversing rot */
.orbit-1 .tech-icon:nth-child(1) { top: 0; left: 50%; margin: -25px 0 0 -25px; }
.orbit-1 .tech-icon:nth-child(2) { bottom: 0; left: 50%; margin: 0 0 -25px -25px; }

.orbit-2 .tech-icon:nth-child(1) { top: 15%; left: 15%; margin: -25px 0 0 -25px; animation-duration: 30s; animation-name: spin-right; }
.orbit-2 .tech-icon:nth-child(2) { top: 15%; right: 15%; margin: -25px -25px 0 0; animation-duration: 30s; animation-name: spin-right; }
.orbit-2 .tech-icon:nth-child(3) { bottom: 0; left: 50%; margin: 0 0 -25px -25px; animation-duration: 30s; animation-name: spin-right; }

.orbit-3 .tech-icon:nth-child(1) { top: 0; left: 50%; margin: -25px 0 0 -25px; animation-duration: 40s; }
.orbit-3 .tech-icon:nth-child(2) { bottom: 0; left: 50%; margin: 0 0 -25px -25px; animation-duration: 40s;}
.orbit-3 .tech-icon:nth-child(3) { top: 50%; left: 0; margin: -25px 0 0 -25px; animation-duration: 40s;}
.orbit-3 .tech-icon:nth-child(4) { top: 50%; right: 0; margin: -25px -25px 0 0; animation-duration: 40s;}

@keyframes spin-right { 100% { transform: rotate(360deg); } }
@keyframes spin-left { 100% { transform: rotate(-360deg); } }
@keyframes counter-spin { 100% { transform: rotate(-360deg); } }

/* ==========================================================
   GLOBAL SECTION STYLES
   ========================================================== */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

/* ==========================================================
   ABOUT SECTION
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card h3 {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================
   EXPERIENCE SECTION
   ========================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    opacity: 0.5;
}

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

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
}

.timeline-header span {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ==========================================================
   SKILLS SECTION
   ========================================================== */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 160px;
    transition: var(--transition);
}

.skill-card i {
    font-size: 2rem;
    color: var(--text-main);
}

.skill-card span {
    font-weight: 500;
    font-size: 1rem;
}

/* ==========================================================
   PROJECTS SECTION
   ========================================================== */
.project-featured {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 4rem;
}

.project-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, var(--surface));
}

.project-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    background: rgba(79, 209, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(79, 209, 255, 0.2);
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}

.project-links {
    display: flex;
    gap: 1rem;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card .project-image {
    min-height: 250px;
    background-size: cover;
    background-position: center;
}

.project-card .project-image::after {
    background: linear-gradient(to bottom, transparent, var(--surface));
}

.project-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-content .project-desc {
    flex: 1;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.icon-link:hover {
    background: var(--primary);
    color: var(--bg);
}

/* ==========================================================
   CONTACT SECTION
   ========================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.terminal-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.terminal-header {
    background: var(--card);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 1.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #FF5F56; }
.minimize { background: #FFBD2E; }
.maximize { background: #27C93F; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 2rem;
    font-family: var(--font-mono);
}

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

.contact-form {
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.input-group label {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.input-group input, .input-group textarea {
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    caret-color: var(--primary);
}

.input-group textarea {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 100px;
    resize: none;
}

.input-group input::placeholder, .input-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.terminal-btn {
    font-family: var(--font-mono);
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
}

.terminal-btn:hover {
    background: var(--primary);
    color: var(--bg);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-item:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateX(10px);
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: linear-gradient(to top, var(--surface) 0%, var(--bg) 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tech-stack-note {
    font-family: var(--font-mono);
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .project-featured { grid-template-columns: 1fr; }
    .project-featured .project-image::after {
        background: linear-gradient(to bottom, transparent, var(--surface));
    }
    .project-info { padding: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { width: 95%; padding: 1rem; }
    .nav-links { display: none; } /* Simplified mobile nav for brevity, standard pattern */
    .hero-content { flex-direction: column; text-align: center; justify-content: center; padding-top: 10vh; }
    .hero-right { display: none; } /* Hide complex orbit on mobile for clean look */
    .hero-actions { justify-content: center; }
    .hero-title { font-size: 3rem; }
    .project-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: 4px; }
    .timeline-item { padding-left: 40px; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ==========================================================
   UPDATED ABOUT SECTION
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary);
}

.about-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-stats-container {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ==========================================================
   UPDATED EXPERIENCE (CENTERED TIMELINE)
   ========================================================== */
.centered-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.centered-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    opacity: 0.5;
}

.centered-timeline .timeline-item {
    width: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.centered-timeline .timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.centered-timeline .timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

.centered-timeline .timeline-dot {
    position: absolute;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent);
    z-index: 2;
}

.centered-timeline .timeline-item.left .timeline-dot {
    right: -8px; /* Centers dot on line */
    left: auto;
}

.centered-timeline .timeline-item.right .timeline-dot {
    left: -8px; /* Centers dot on line */
}

/* Align text to right for left items */
.centered-timeline .timeline-item.left .timeline-content {
    text-align: right;
}

.centered-timeline .timeline-item.left .timeline-header {
    flex-direction: row-reverse;
}

.centered-timeline .timeline-item.left .timeline-details li {
    padding-left: 0;
    padding-right: 20px;
}

.centered-timeline .timeline-item.left .timeline-details li::before {
    content: '◃';
    left: auto;
    right: 0;
}

/* ==========================================================
   UPDATED PROJECT GRIDS
   ========================================================== */
.project-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

/* ==========================================================
   UPDATED RESPONSIVE RULES
   ========================================================== */
@media (max-width: 1024px) {
    .project-grid-2, .project-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    .project-grid-2, .project-grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Collapse Timeline for Mobile */
    .centered-timeline::before {
        left: 20px;
        transform: none;
    }
    .centered-timeline .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    .centered-timeline .timeline-item.left .timeline-content {
        text-align: left;
    }
    .centered-timeline .timeline-item.left .timeline-header {
        flex-direction: row;
        justify-content: space-between;
    }
    .centered-timeline .timeline-item.left .timeline-details li {
        padding-left: 20px;
        padding-right: 0;
    }
    .centered-timeline .timeline-item.left .timeline-details li::before {
        content: '▹';
        left: 0;
        right: auto;
    }
    .centered-timeline .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}


@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    
    /* Change About Grid to 1 column */
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    
    /* Force Image to the top, Text to the bottom */
    .about-image {
        grid-row: 1;
        min-height: 350px; /* Slightly shorter on mobile for better UX */
    }
    .about-text {
        grid-row: 2;
    }

    /* Project grid adjustments */
    .project-grid-2, .project-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .project-featured { grid-template-columns: 1fr; }
    .project-featured .project-image::after {
        background: linear-gradient(to bottom, transparent, var(--surface));
    }
    .project-info { padding: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { width: 95%; padding: 1rem; }
    .nav-links { display: none; } 
    .hero-content { flex-direction: column; text-align: center; justify-content: center; padding-top: 10vh; }
    .hero-right { display: none; } 
    .hero-actions { justify-content: center; }
    .hero-title { font-size: 3rem; }
    
    /* Stats grid on mobile */
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    /* ONE PROJECT PER ROW ON MOBILE */
    .project-grid-2, 
    .project-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

    /* Collapse Timeline for Mobile */
    .centered-timeline::before {
        left: 20px;
        transform: none;
    }
    .centered-timeline .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    .centered-timeline .timeline-item.left .timeline-content {
        text-align: left;
    }
    .centered-timeline .timeline-item.left .timeline-header {
        flex-direction: row;
        justify-content: space-between;
    }
    .centered-timeline .timeline-item.left .timeline-details li {
        padding-left: 20px;
        padding-right: 0;
    }
    .centered-timeline .timeline-item.left .timeline-details li::before {
        content: '▹';
        left: 0;
        right: auto;
    }
    .centered-timeline .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}