/* Custom Font Definitions removed - fonts are provided via Google Fonts in index.html */

/* CSS Variables for Dark Theme */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #00d4ff, #4ecdc4);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b, #ffa500);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
            margin: 0;
            padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
    z-index: 2;
}

/* On large screens, nudge the hero content right so its left edge aligns
   more visually with the logo in the nav. This keeps mobile centered but
   prevents the hero content from touching the viewport edge on wide layouts. */
@media (min-width: 992px) {
    .hero {
        padding-left: 0; /* allow manual offset inside hero-content */
    }
    .hero-content {
        /* calculate a comfortable offset: nav left padding (20px) + logo width
           + some breathing room. Keep it maxed so content doesn't overflow. */
        margin-left: calc((100% - 1200px) / 2 + 70px);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.greeting {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.name {
    font-family: 'Orbitron', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    font-weight: 600;
}

.first-name {
    display: inline-block;
    margin-right: 0.5rem;
}

.last-name {
    display: inline-block;
    font-size: 0.7em;
}

/* Typing animation styles */
.typed-name {
    display: inline-block;
    color: transparent; /* will show gradient via background-clip */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Final reveal animation for the remaining name */
.typed-name.final {
    animation: final-pop 420ms cubic-bezier(0.2, 1, 0.3, 1) both;
}

@keyframes final-pop {
    0% { transform: translateY(4px) scale(0.98); opacity: 0.6; }
    60% { transform: translateY(-2px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.typing-caret {
    display: inline-block;
    margin-left: 6px;
    color: var(--text-primary);
    opacity: 1;
    animation: blink-caret 1s steps(1) infinite;
    transform: translateY(-2px);
}

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

.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
            text-align: center;
        }

.btn-primary {
    background: var(--gradient-primary);
            color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    width: 120px;
    height: 120px;
    background: var(--gradient-secondary);
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
        section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

/* Timeline Section */
.timeline {
    background: transparent;
}

.timeline-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-items {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 320px;
}

.timeline-item {
    padding: 1rem;
    border-left: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1rem;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.14s ease;
}

.timeline-item:focus,
.timeline-item[aria-selected="true"],
.timeline-item:hover {
    outline: none;
    background: rgba(255,255,255,0.02);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

/* stronger visible focus for keyboard users */
.timeline-item:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
    border-left-color: var(--primary-color);
}

.timeline-item-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.timeline-item-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.timeline-mobile-details { display:none; }

.timeline-details {
    flex: 1;
    min-height: 180px;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timeline-details .panel {
    display: block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.timeline-details .panel:not([hidden]) {
    opacity: 1;
    transform: none;
}

/* Responsive: on small screens, stack as accordion */
@media (max-width: 991px) {
    .timeline-inner { display:block; }
    .timeline-items { width:100%; }
    .timeline-item { border-left:none; border-radius:10px; background:transparent; padding:0.8rem 0.5rem; }
    .timeline-details { display:block; margin-top:1rem; }
    .timeline-items::before, .timeline-items::after { left:12px; }
    .timeline-item { padding-left:36px; }
}

/* Alternate background colors for top-level sections so they follow an alternating pattern
   (hero, about, timeline, projects, skills, contact...). This improves visual separation. */
body > section:nth-of-type(odd) {
    background: var(--bg-primary);
}

body > section:nth-of-type(even) {
    background: var(--bg-secondary);
}

/* Timeline visual improvements */
.timeline-inner { align-items: flex-start; gap: 2.5rem; }

.timeline-items { list-style:none; padding:0; margin:0; width:360px; position:relative; }

.timeline-items::before{
    /* vertical connector */
    content:''; position:absolute; left:22px; top:8px; bottom:8px; width:2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius:2px;
}

.timeline-items::after{
    /* active connector highlight up to active item */
    content:''; position:absolute; left:22px; top:8px; width:2px; height:var(--timeline-active-height,0);
    background: linear-gradient(180deg, var(--primary-color), rgba(78,205,196,0.22)); border-radius:2px; transition:height 260ms ease;
}

.timeline-item{ position:relative; padding-left:36px; display:flex; align-items:center; gap:12px; }

/* Render a small stacked pill instead of a circle dot */
.timeline-item .timeline-pill{ width:26px; height:8px; border-radius:6px; background:var(--bg-tertiary); border:1px solid rgba(255,255,255,0.03); box-shadow:none; transition:all .18s ease; flex:0 0 auto; }

.timeline-item[aria-selected="true"] .timeline-pill, .timeline-item:focus .timeline-pill, .timeline-item:hover .timeline-pill{
    background:var(--primary-color); box-shadow:0 8px 22px rgba(0,212,255,0.08); transform:translateY(-2px);
}

.timeline-details{ flex:1; min-height:220px; background:var(--bg-secondary); padding:2rem; border-radius:14px; border:1px solid rgba(255,255,255,0.03); box-shadow:0 6px 30px rgba(0,0,0,0.45); }

@media (max-width:991px){ .timeline-items::before{display:none;} .timeline-items::after{display:none;} .timeline-items{padding-left:0;} .timeline-item::before{display:none;} }

@media (min-width:992px){
    .timeline-items{ position:sticky; top:100px; align-self:flex-start; height:calc(100vh - 160px); overflow:auto; padding-right:16px; }
    .timeline-items::-webkit-scrollbar{ width:8px; } .timeline-items::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.03); border-radius:8px; }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

/* Variant B: left categories + right detail panel */
.skills-variant-b {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
}

.skills-left {
    background: transparent;
}

.skills-category-list {
    margin-bottom: 1.25rem;
}

.skills-category-list .category-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.skill-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    background: rgba(255,255,255,0.02);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
}

.skill-link[aria-selected="true"] {
    background: linear-gradient(90deg, rgba(0,212,255,0.06), rgba(78,205,196,0.04));
    box-shadow: 0 8px 20px rgba(0,212,255,0.04);
    transform: translateY(-2px);
}

.skill-link:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,212,255,0.06);
}

.skills-details { background: var(--bg-secondary); padding: 1.5rem; border-radius: 12px; border:1px solid rgba(255,255,255,0.03); }

@media (max-width: 991px) {
    .skills-variant-b { grid-template-columns: 1fr; }
    .skills-details { margin-top: 1rem; }
}

/* Variant A: skills grid */
.skills-grid .skills-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 10px;
}

.skill-head { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.5rem; }
.skill-title { font-weight:700; font-family:'Orbitron', sans-serif; }
.skill-sub { color:var(--text-secondary); margin-bottom:0.6rem; font-size:0.95rem; }

.skill-bar { height:10px; background:rgba(255,255,255,0.03); border-radius:999px; overflow:hidden; }
.skill-bar-fill { height:100%; width:0%; background:linear-gradient(90deg, #00d4ff, #4ecdc4); transition:width 700ms cubic-bezier(.2,.9,.3,1); }

/* focus styles for keyboard users */
.skill-card:focus-within { box-shadow: 0 0 0 6px rgba(0,212,255,0.04); }

@media (max-width: 600px) {
    .skills-grid .skills-grid-inner { gap: 0.8rem; }
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 
        0 0 0 8px rgba(0, 212, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(78, 205, 196, 0.1) 50%, 
        rgba(255, 107, 107, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.profile-image:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 
        0 0 0 12px rgba(0, 212, 255, 0.2),
        0 30px 60px rgba(0, 212, 255, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.profile-image:hover::before {
    opacity: 1;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.image-placeholder:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-image:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skills-category {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 2s ease-in-out;
    width: 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    stroke: currentColor;
    fill: none;
}

.contact-text {
    color: var(--text-secondary);
}

/* Make contact links look like plain text (no underline) but still accessible */
.contact-method a.contact-text {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.contact-method a.contact-text:hover,
.contact-method a.contact-text:focus {
    color: var(--primary-color);
    text-decoration: none;
    outline: none;
}

/* Visible focus ring for keyboard users */
.contact-method a.contact-text:focus-visible,
.social-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
    border-radius: 6px;
}

.contact-method a.contact-text:hover {
    font-weight: 600;
}

.social-link:hover {
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .about-image::after {
        width: 320px;
        height: 320px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .about-image::after {
        width: 280px;
        height: 280px;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
        position: fixed;
    top: 0;
    left: 0;
            width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Ensure the loading overlay does not intercept touches on mobile devices */
.loading { pointer-events: none; }

/* Allow touch interactions on form controls and reduce gesture interference */
.contact-form input,
.contact-form textarea,
.contact-form button { touch-action: manipulation; }
*** End Patch

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Replace spinner with typed 'tai' for loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-typed {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-size: 1.6rem;
    letter-spacing: 0.6px;
}

.loading-caret {
    display: inline-block;
    color: var(--primary-color);
    animation: loading-blink 900ms steps(1) infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
        }

/* Timeline polish (appended) */
.timeline-items::after { transition: height 360ms cubic-bezier(.2,.9,.3,1) !important; }
.timeline-details .panel { transition: opacity 320ms cubic-bezier(.2,.9,.3,1), transform 320ms cubic-bezier(.2,.9,.3,1) !important; }
.timeline-item.focused, .timeline-item[aria-selected="true"] { background: linear-gradient(90deg, rgba(0,212,255,0.03), rgba(78,205,196,0.02)); box-shadow: inset 0 0 0 1px rgba(0,212,255,0.02); }
.timeline-item:focus-visible { outline: 3px solid rgba(0,212,255,0.12); outline-offset: 4px; }
.timeline-details .panel { will-change: transform, opacity; }

/* Minimal neutral two-column timeline layout */
.timeline-split { display:grid; grid-template-columns: 260px 1fr; gap:24px; align-items:start; }
.timeline-list { padding:0; }
.timeline-list-items { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.timeline-tab { appearance:none; border:none; background:transparent; padding:8px 10px; text-align:left; width:100%; cursor:pointer; }
.timeline-tab[aria-selected="true"] { font-weight:600; }
.timeline-panels { padding:8px 0; }
.timeline-panel { padding:6px 0; }
.timeline-dates { margin:0 0 8px 0; font-size:0.95rem; }

/* Vertical divider between columns (neutral) */
.timeline-split { position:relative; }
.timeline-split::after { content:''; position:absolute; left:260px; top:8px; bottom:8px; width:1px; background:rgba(0,0,0,0.06); }

/* Responsive: stack columns on narrow viewports */
@media (max-width: 800px) {
    .timeline-split { grid-template-columns: 1fr; }
    .timeline-split::after { display:none; }
}