﻿/* ============================================
   PORTFOLIO WEBSITE - FIRMWARE ENGINEER
   Professional Premium Design
   ============================================ */

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

/* Root Variables */
:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #1e293b;
    --accent: #f97316;
    --accent-light: #fb923c;
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-lighter: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: 0 10px 30px rgba(15, 118, 110, 0.15);
    --shadow-lg: 0 20px 60px rgba(15, 118, 110, 0.2);
    --shadow-xl: 0 25px 100px rgba(0, 0, 0, 0.12);
    --gradient-1: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --gradient-2: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

/* Typography */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    line-height: 1.7;
    letter-spacing: 0.4px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

h1 { font-size: 3.75rem; font-weight: 800; }
h2 { font-size: 2.75rem; font-weight: 800; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 700; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a:hover {
    color: var(--accent);
}

/* Navigation Bar - Premium Glassmorphism */
nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

@media (max-width: 900px) {
    .status-pill {
        display: none;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

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

.nav-link.active {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.1);
}

.nav-link.active::after {
    width: 70%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section - Premium */
.hero {
    background: var(--gradient-1);
    color: white;
    padding: 10rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,80 L40,60 M60,80 L80,60 M20,40 L40,20 M60,40 L80,20' stroke='white' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    animation: drift 20s infinite linear;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGradient 15s infinite ease-in-out;
    top: -100px;
    right: -100px;
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    animation: slideInDown 1s ease-out 0.2s both;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.4s both;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.6s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.8s both;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Container & Spacing */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 2rem;
}

.page-hero {
    background: var(--gradient-1);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,80 L40,60 M60,80 L80,60 M20,40 L40,20 M60,40 L80,20' stroke='white' stroke-width='0.5' fill='none' opacity='0.08'/%3E%3C/svg%3E");
    animation: drift 25s infinite linear;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: white;
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 760px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

/* Cards - Premium */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 118, 110, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 118, 110, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* Project Cards */
.project-card {
    border-left: 5px solid var(--accent);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.project-card .project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.82rem;
    color: var(--text-lighter);
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(15, 118, 110, 0.04);
    border: 1px solid rgba(15, 118, 110, 0.08);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
}

.tech-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    margin-top: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(15, 118, 110, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.2) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-color: rgba(15, 118, 110, 0.4);
    transform: translateY(-2px);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

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

.timeline-item {
    margin-bottom: 3rem;
    width: 45%;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 5%;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
    padding-left: 5%;
    animation-name: fadeInRight;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-white);
    border: 4px solid var(--accent);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 12px rgba(249, 115, 22, 0.15);
}

.timeline-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.timeline-period {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Skills Section */
.skill-bar {
    margin-bottom: 2.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.skill-percentage {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Skill Category */
.skill-category {
    margin-bottom: 3.5rem;
}

.skill-category-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-category-title::before {
    content: '';
    width: 5px;
    height: 30px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

/* Skills Page - Category Header & Grid */
.category-header h2 {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.9rem;
    margin-bottom: 0;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid var(--border);
}

.category-header h2 i {
    color: var(--accent);
    font-size: 1.6rem;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(15, 118, 110, 0.08) 100%);
}

.skill-category {
    margin-bottom: 4rem;
}

.skills-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2.5rem;
}

.skill-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-left-color: var(--accent);
}

.skill-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.skill-card .proficiency {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(15, 118, 110, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
    margin: 0;
}

.skill-card li {
    color: var(--text-light);
    font-size: 0.92rem;
    padding: 0.4rem 0 0.4rem 1.3rem;
    position: relative;
    line-height: 1.5;
}

.skill-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Experience Chart */
.experience-chart {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border);
}

.experience-chart > h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.skill-bars {
    max-width: 800px;
    margin: 0 auto;
}

.skill-bar label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    display: inline-block;
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.skill-bar label {
    flex: 0 0 230px;
}

.bar-container {
    flex: 1;
    height: 12px;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 20px;
    position: relative;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(15, 118, 110, 0.5);
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.2s infinite;
}

.skill-bar span {
    flex: 0 0 45px;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

@media (max-width: 600px) {
    .skill-bar {
        flex-wrap: wrap;
    }
    .skill-bar label {
        flex: 1 1 100%;
    }
}

/* Contact Form - Premium */
.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

input, textarea, select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    color: var(--text-dark);
}

input::placeholder, textarea::placeholder {
    color: var(--text-lighter);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 180px;
    font-family: inherit;
}

.form-error {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error::before {
    content: '⚠';
    font-weight: bold;
}

.form-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    animation: slideInDown 0.5s ease-out;
}

.form-message {
    margin-top: 1.5rem;
}

.form-note {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.btn-small {
    padding: 0.65rem 1.4rem;
    font-size: 0.92rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    color: var(--primary);
    border: 1px solid rgba(15, 118, 110, 0.25);
    font-weight: 600;
}

.btn-small:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
}

/* Generic CTA Section */
.cta {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,80 L40,60 M60,80 L80,60 M20,40 L40,20 M60,40 L80,20' stroke='white' stroke-width='0.5' fill='none' opacity='0.08'/%3E%3C/svg%3E");
    animation: drift 25s infinite linear;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: var(--accent-light);
    color: white;
}

/* Projects Page */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-detail-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-detail-card:hover::before {
    transform: scaleY(1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.project-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: var(--gradient-1);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
}

.project-title-section h3 {
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
}

.project-detail-card .project-meta {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.project-body h5 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.05rem;
}

.project-body ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.project-details-grid h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-lighter);
    margin: 0 0 0.4rem;
}

.project-details-grid p {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Contact Page Layout */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 12px 25px rgba(15, 118, 110, 0.2);
}

.contact-meta h4 {
    margin-bottom: 0.5rem;
}

.contact-meta p {
    margin-bottom: 0.3rem;
}

.contact-link {
    color: var(--primary);
    font-weight: 700;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.contact-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(20, 184, 166, 0.08));
    color: var(--primary);
    font-size: 1.4rem;
    border: 1px solid rgba(15, 118, 110, 0.16);
    transition: all 0.3s ease;
}

.contact-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(15, 118, 110, 0.15);
}

.contact-form-card {
    box-shadow: var(--shadow-lg);
}

/* Contact Page - Services & FAQ */
.services-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border);
    text-align: center;
}

.services-section h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    text-align: left;
}

.service-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 118, 110, 0.3);
}

.service-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.service-card h4 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.faq-section {
    background: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.faq-item {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.faq-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.faq-item p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

.site-footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1f2e 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    position: relative;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer-column {
    min-width: 0;
}

.site-footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.site-footer-copy {
    color: #cbd5e1;
    margin-bottom: 0.7rem;
}

.site-footer-link-list,
.site-footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-link-item,
.site-footer-contact-item {
    margin-bottom: 0.8rem;
}

.site-footer-link,
.site-footer-contact-link {
    color: #cbd5e1;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer-link:hover,
.site-footer-contact-link:hover {
    color: var(--accent);
}

.site-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

.site-footer-socials {
    display: flex;
    gap: 1rem;
}

.site-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.site-footer-socials a:hover {
    background: var(--accent);
    transform: translateY(-5px) rotate(5deg);
    border-color: var(--accent);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1f2e 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e1;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px) rotate(5deg);
    border-color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

@keyframes moveGradient {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(15, 118, 110, 0.5); }
    50% { box-shadow: 0 0 40px rgba(15, 118, 110, 0.8); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: 6rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        width: 100%;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
    }
    
    .hero {
        padding: 4rem 1.5rem;
        min-height: 85vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 50px !important;
        text-align: left !important;
        padding-right: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -42px;
        right: auto;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 2rem 1rem;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ============================================
   LinkedIn Experience Section Updates
   ============================================ */
.experience-section {
    margin-top: 5rem;
}

.experience-section > h2,
.education-section > h2,
.achievements-section > h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.experience-section .timeline-card {
    text-align: left;
}

.experience-section .timeline-card h4 {
    margin: 0.6rem 0 0.4rem;
    color: var(--text-dark);
}

.experience-section .timeline-card h5 {
    margin: 1.5rem 0 0.7rem;
    color: var(--primary);
    font-size: 1rem;
}

.experience-section .company,
.experience-section .location {
    margin-bottom: 0.65rem;
    color: var(--text-lighter);
    font-weight: 600;
    font-size: 0.95rem;
}

.experience-section .company i,
.experience-section .location i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.experience-section .timeline-card ul {
    margin: 0.8rem 0 1rem 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.experience-tags {
    margin-top: 1rem;
}

/* Role progression (promotion within same company) */
.role-progression {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 2px dashed rgba(15, 118, 110, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.role-entry {
    position: relative;
}

.role-entry::before {
    content: '';
    position: absolute;
    left: -1.95rem;
    top: 0.3rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 4px rgba(249, 115, 22, 0.3);
}

.role-entry:first-child::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 4px rgba(15, 118, 110, 0.35);
}

.role-period {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.role-entry:first-child .role-period {
    color: var(--primary);
}

.role-title {
    margin: 0 0 0.6rem !important;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.role-entry p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 0.7rem;
}

.role-entry ul {
    margin: 0.5rem 0 0 1.25rem;
    color: var(--text-light);
    line-height: 1.75;
}

@media (max-width: 600px) {
    .role-progression {
        padding-left: 1.1rem;
    }

    .role-entry::before {
        left: -1.5rem;
    }
}

@media (max-width: 768px) {
    .experience-section .timeline-card {
        padding: 1.5rem;
    }
}

/* Experience timeline alignment override - single column layout */
.about-section {
    padding-top: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 5rem;
}

.about-image {
    position: relative;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.3);
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.about-content h3 {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Education Section */
.education-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border);
}

.education-section > h2 {
    margin-bottom: 2.5rem;
}

.education-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.education-item {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.education-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.education-item .institution {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.education-item .year {
    color: var(--text-lighter);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.9rem;
}

.education-item p:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Featured single-entry education layout */
.education-grid-single {
    grid-template-columns: 1fr;
}

.education-featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2.5rem;
    border-top: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.education-featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: var(--gradient-1);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(60px, -90px);
}

.education-featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--gradient-1);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
    position: relative;
    z-index: 1;
}

.education-content {
    position: relative;
    z-index: 1;
}

.education-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.education-content .institution {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.education-content .year {
    color: var(--text-lighter);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.1rem;
    display: inline-block;
}

.education-content > p:not(.institution):not(.year) {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.education-content h5 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.education-majors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 600px) {
    .education-featured {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }

    .education-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

/* Achievements Section */
.achievements-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border);
}

.achievements-section > h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.achievements-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.achievement-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.achievement-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.achievement-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.achievement-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 260px;
        margin: 0 auto;
    }
}
.experience-section .timeline::before {
    left: 12px;
}

.experience-section .timeline-item {
    width: 100%;
    margin-left: 0;
    margin-bottom: 2.5rem;
    padding: 0 0 0 50px;
    text-align: left;
    position: relative;
}

.experience-section .timeline-item:last-child {
    margin-bottom: 0;
}

.experience-section .timeline-item:nth-child(even),
.experience-section .timeline-item:nth-child(odd) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 0 50px;
    text-align: left;
}

.experience-section .timeline-dot {
    left: 2px;
    right: auto;
    top: 1.5rem;
    transform: none;
}

.experience-section .timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.experience-section .timeline-card,
.experience-section .timeline-item:nth-child(even) .timeline-card,
.experience-section .timeline-item:nth-child(odd) .timeline-card {
    width: 100%;
    margin-left: 0;
}

@media (max-width: 768px) {
    .experience-section .timeline-item,
    .experience-section .timeline-item:nth-child(even),
    .experience-section .timeline-item:nth-child(odd) {
        padding-left: 45px;
    }
}

/* ============================================
   CIRCUIT & SIGNAL ANIMATION SYSTEM
   Firmware-themed motion: traces, pulses, boot-up
   ============================================ */

/* --- Scroll reveal (used site-wide via JS observer) --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger helper - JS sets --d (delay in ms) per child */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    transition-delay: calc(var(--d, 0) * 1ms);
}

/* --- Circuit trace background layer --- */
.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.circuit-bg svg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.18;
}

.circuit-trace {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.5;
    stroke-dasharray: 6 10;
    animation: traceFlow 6s linear infinite;
}

.circuit-trace:nth-of-type(2n) {
    animation-duration: 8s;
    animation-direction: reverse;
    stroke: rgba(255, 255, 255, 0.35);
}

.circuit-trace:nth-of-type(3n) {
    animation-duration: 10s;
    stroke-dasharray: 3 8;
}

.circuit-node {
    fill: var(--accent-light);
    animation: nodePulse 2.4s ease-in-out infinite;
}

.circuit-node:nth-of-type(2n) {
    animation-delay: 0.6s;
    fill: white;
}

.circuit-node:nth-of-type(3n) {
    animation-delay: 1.2s;
}

/* --- Hero boot-up sequence --- */
.boot-text {
    display: inline-block;
    position: relative;
}

.boot-text.glitch-in {
    animation: bootFlicker 1.1s steps(1, end) both;
}

.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    margin-left: 4px;
    vertical-align: middle;
    background: var(--accent-light);
    animation: blink 1s steps(1, end) infinite;
}

/* --- Glow / LED accents --- */
.led-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success), 0 0 16px rgba(16, 185, 129, 0.6);
    animation: ledPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.card-icon, .service-card i, .project-icon, .category-header h2 i {
    position: relative;
}

.card:hover .card-icon,
.service-card:hover i {
    animation: iconGlowPulse 1.4s ease-in-out infinite;
}

.project-detail-card:hover .project-icon {
    animation: iconGlowPulse 1.4s ease-in-out infinite;
}

/* Tech tags get a subtle scan-line shimmer on hover */
.tech-tag {
    position: relative;
    overflow: hidden;
}

.tech-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.tech-tag:hover::after {
    left: 120%;
}

/* Buttons: circuit pulse ring on hover */
.btn-primary, .btn-secondary {
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    animation: pulseRing 1.2s ease-out infinite;
}

/* Logo chip pulses gently to feel "powered on" */
.logo i {
    position: relative;
    animation: chipBreathe 4s ease-in-out infinite;
}

/* Nav link active indicator gets a tiny glow */
.nav-link.active::after {
    box-shadow: 0 0 8px rgba(15, 118, 110, 0.6);
}

/* Skill bar fill: traveling glow when filled (in addition to shimmer) */
.bar-fill.is-charged {
    animation: barGlow 2.4s ease-in-out infinite;
}

/* Timeline dot: signal ping on reveal */
.timeline-dot.is-visible {
    animation: dotPing 0.9s ease-out;
}

/* --- New keyframes --- */
@keyframes traceFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -160; }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.4; r: 2.5; }
    50% { opacity: 1; r: 4; }
}

@keyframes bootFlicker {
    0% { opacity: 0; filter: blur(4px); }
    10% { opacity: 0.8; filter: blur(0); }
    12% { opacity: 0.2; }
    14% { opacity: 0.9; }
    20% { opacity: 0.3; }
    24% { opacity: 1; }
    100% { opacity: 1; filter: blur(0); }
}

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

@keyframes ledPulse {
    0%, 100% { box-shadow: 0 0 6px var(--success), 0 0 12px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 12px var(--success), 0 0 22px rgba(16, 185, 129, 0.8); }
}

@keyframes iconGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(15, 118, 110, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.7)); }
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    100% { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0); }
}

@keyframes chipBreathe {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(20, 184, 166, 0)); }
    50% { filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.7)); }
}

@keyframes barGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(15, 118, 110, 0.5); }
    50% { box-shadow: 0 0 22px rgba(20, 184, 166, 0.8); }
}

@keyframes dotPing {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    100% { box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); }
}

/* --- Respect reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Featured projects on the home page */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.featured-projects-grid .project-card {
    height: 100%;
}
