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

:root {
    --bg-primary: #0e131f;
    --bg-secondary: #151b2b;
    --text-primary: #f4f7fb;
    --text-secondary: #9aa7bd;
    --accent: #fb8b3c;
    --accent-hover: #fca85f;
    --accent-2: #38bdf8;
    --border: rgba(148, 163, 184, 0.16);
    --transition: transform 160ms ease-out;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0%;
    z-index: 2000;
    transition: width 200ms linear;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 19, 31, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 150ms var(--ease-out);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 150ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .nav-logo:hover {
        transform: scale(1.05);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 150ms ease-out;
    position: relative;
}

.nav-menu a:focus {
    outline: none;
}

.nav-menu a:focus-visible {
    color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
    .nav-menu a:hover {
        color: var(--text-primary);
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(14, 19, 31, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms var(--ease-out), opacity 300ms var(--ease-out);
        opacity: 0;
        will-change: max-height, opacity;
    }

    .nav-menu[aria-expanded="true"] {
        max-height: 300px;
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse at top, rgba(251, 139, 60, 0.14) 0%, var(--bg-primary) 55%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 600px at 20% 30%, 
        rgba(251, 139, 60, 0.08) 0%,
        transparent 60%
    );
    animation: floatAnimation 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 400px at 80% 60%, 
        rgba(56, 189, 248, 0.05) 0%,
        transparent 70%
    );
    animation: floatAnimation 25s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    animation: fadeInTitle 600ms var(--ease-out);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
    animation: fadeInUp 600ms var(--ease-out) 100ms backwards;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 600ms var(--ease-out) 200ms backwards;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 600ms var(--ease-out) 300ms backwards;
}

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

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

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

/* Scroll Hint Arrow */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    color: var(--accent);
    opacity: 0.7;
    z-index: 1;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 160ms var(--ease-out), background 150ms ease-out, border-color 150ms ease-out;
    cursor: pointer;
    border: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-2px);
    }
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus {
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: #14100a;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-2);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(251, 139, 60, 0.08);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--accent);
}

/* Sections */
.section {
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) forwards;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

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

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(251, 139, 60, 0.06) 0%, rgba(56, 189, 248, 0.04) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) 100ms forwards;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 2px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    padding-left: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 500ms var(--ease-out) forwards;
}

/* Stagger animation for timeline items */
.timeline-item:nth-child(1) { animation-delay: 100ms; }
.timeline-item:nth-child(2) { animation-delay: 150ms; }
.timeline-item:nth-child(3) { animation-delay: 200ms; }
.timeline-item:nth-child(4) { animation-delay: 250ms; }
.timeline-item:nth-child(5) { animation-delay: 300ms; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    transition: all 200ms var(--ease-out);
    box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--accent);
}

@media (hover: hover) and (pointer: fine) {
    .timeline-item:hover::before {
        transform: scale(1.3);
        box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 6px var(--accent), 0 0 12px rgba(251, 139, 60, 0.6);
    }
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--accent-2);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style: none;
    margin-top: 0.75rem;
    padding-left: 1rem;
}

.timeline-content li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.impact-highlight {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

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

.timeline-header h3 {
    flex: 1;
    margin: 0;
}

.role-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    white-space: nowrap;
}

.badge-leadership {
    background: rgba(251, 139, 60, 0.15);
    color: var(--accent);
}

.badge-innovation {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-2);
}

.badge-strategic {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.impact-metric {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
}

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

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 200ms var(--ease-out), border-color 150ms ease-out, box-shadow 150ms ease-out;
    opacity: 0;
    animation: fadeInUp 500ms var(--ease-out) forwards;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card:nth-child(1) { animation-delay: 100ms; }
.project-card:nth-child(2) { animation-delay: 150ms; }
.project-card:nth-child(3) { animation-delay: 200ms; }

@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        transform: translateY(-6px);
        border-color: var(--accent);
        box-shadow: 0 12px 40px rgba(251, 139, 60, 0.2), 0 0 0 1px var(--accent);
    }
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.project-role {
    font-size: 0.9rem;
    color: var(--accent-2);
    font-weight: 500;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(251, 139, 60, 0.05);
    border-radius: 8px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-2);
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: transform 200ms var(--ease-out), border-color 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out;
    opacity: 0;
    animation: fadeInUp 500ms var(--ease-out) forwards;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
    opacity: 0;
    transition: opacity 200ms var(--ease-out);
}

/* Stagger animation for skill cards */
.skill-card:nth-child(1) { animation-delay: 100ms; }
.skill-card:nth-child(2) { animation-delay: 150ms; }
.skill-card:nth-child(3) { animation-delay: 200ms; }
.skill-card:nth-child(4) { animation-delay: 250ms; }

@media (hover: hover) and (pointer: fine) {
    .skill-card:hover {
        transform: translateY(-6px);
        border-color: var(--accent);
        box-shadow: 0 12px 40px rgba(251, 139, 60, 0.2), 0 0 0 1px var(--accent);
        background: rgba(251, 139, 60, 0.03);
    }

    .skill-card:hover::before {
        opacity: 1;
    }
}

.skill-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.skill-expertise {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-2);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.skill-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.5;
}

.skill-card li:last-child {
    border-bottom: none;
}

/* Skill Reveal - Hidden until hover/focus */
.skill-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms var(--ease-out), opacity 300ms var(--ease-out);
    margin-top: 0;
}

.skill-card:hover .skill-reveal,
.skill-card:focus-within .skill-reveal {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.skill-impact {
    font-size: 0.95rem;
    color: var(--accent-2);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Certifications Section */
.certifications-container {
    max-width: 900px;
    margin: 0 auto;
}

.cert-section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) forwards;
}

.cert-section:nth-child(1) { animation-delay: 100ms; }
.cert-section:nth-child(2) { animation-delay: 200ms; }
.cert-section:nth-child(3) { animation-delay: 300ms; }

.cert-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

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

.cert-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 200ms var(--ease-out), box-shadow 150ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .cert-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

.cert-badge {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.cert-content {
    flex: 1;
}

.cert-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.cert-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Section */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) 100ms forwards;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) 150ms forwards;
}

.contact-method {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(251, 139, 60, 0.04) 100%);
    border-radius: 12px;
    border: 2px solid var(--accent-2);
    position: relative;
}

.contact-method h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.contact-link {
    display: block;
    font-size: 1rem;
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .contact-link:hover {
        color: var(--accent);
    }
}

.method-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Form */
.contact-form-section {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(251, 139, 60, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) 200ms forwards;
}

.contact-form-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 700;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(251, 139, 60, 0.1);
}

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

.contact-form option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-submit {
    margin-top: 0.5rem;
}

.form-feedback {
    font-size: 0.95rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    min-height: 1.5rem;
}

.form-feedback.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 600ms var(--ease-out) 300ms forwards;
    margin-top: 2rem;
}

/* Back to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease-out);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #14100a;
    box-shadow: 0 4px 12px rgba(251, 139, 60, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .scroll-to-top:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
    }
}

.scroll-to-top:active {
    transform: scale(0.95);
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .nav-toggle span,
    .btn,
    .nav-menu a,
    .timeline-item::before,
    .skill-card {
        transition: none !important;
    }
}

/* Mobile: Skill card expanded state */
@media (max-width: 768px) {
    .skill-card.expanded .skill-reveal {
        max-height: 200px;
        opacity: 1;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(56, 189, 248, 0.2);
    }

    .skill-card.expanded {
        background: rgba(251, 139, 60, 0.03);
        border-color: var(--accent);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .cert-list {
        grid-template-columns: 1fr;
    }

    .project-metrics {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: -10px;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -16px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-links .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .about-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 1.5rem;
    }
}
