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

:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --bg-card: rgba(255, 255, 255, 0.9);
    --border-color: #d1d5db;
    --border-hover: #9ca3af;

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Accent Colors */
    --accent-green: #16a34a;
    --accent-green-hover: #15803d;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-orange: #ea580c;
    --accent-cyan: #0891b2;

    /* Gradients */
    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 14px;
    overflow-x: hidden;
}

/* Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(209, 213, 219, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 213, 219, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

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

/* Section Styling - Full page snap sections */
section {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.name::before {
    content: '◆';
    color: var(--accent-green);
    display: inline-block;
    animation: spinDiamond 4s linear infinite;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav a.contact-btn {
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.nav a.contact-btn:hover {
    background: var(--accent-green-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0.06) 30%, rgba(22, 163, 74, 0.02) 50%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--accent-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight-green {
    color: var(--accent-green);
    text-decoration: underline;
    text-decoration-color: rgba(22, 163, 74, 0.3);
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Hero Contact Buttons */
.hero-contact-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-contact-me {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 0.7rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-contact-me:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

.btn-copy-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.7rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-copy-email:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
}

.btn-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-social-icon:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
}

/* Keep old hero-stats for compatibility */
.hero-stats {
    display: none;
}

.stat-value {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
}

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

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hero-tag:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.headshot {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(22, 163, 74, 0.4);
    box-shadow: 0 0 40px rgba(22, 163, 74, 0.2), 0 0 80px rgba(22, 163, 74, 0.1), 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* About Section */
.about-section {
    min-height: auto;
    padding: 0;
}

.about-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

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



/* Contact Links Section */
.contact-section {
    min-height: auto;
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.contact-section::after {
    display: none;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.15);
}

.contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0.8);
}

.contact-item:hover .contact-icon {
    filter: brightness(1);
}

.contact-item.location {
    cursor: default;
}

.contact-item.location:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.resume-btn {
    background: var(--accent-green);
    color: var(--bg-primary) !important;
    border-color: var(--accent-green);
}

.resume-btn:hover {
    background: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
}

/* What I Work On Section */
.capabilities-section {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--bg-primary);
}

.capabilities-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.capabilities-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

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

.capability-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capability-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.capability-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.capability-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Skills Section */
.skills-section {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--bg-secondary);
}

.skills-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.skills-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skills-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* Tech Logos */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(30%) brightness(1);
}

.tech-logo:hover {
    transform: scale(1.15);
    filter: grayscale(0%) brightness(1);
}

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

.skill-category {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.skill-category h3 {
    min-width: 180px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.skill-tag .icon {
    font-size: 0.9rem;
}

.skill-tag-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(1);
}

.skill-tag:hover .skill-tag-icon {
    filter: brightness(1);
}

/* Certification Badge */
.cert-highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(88, 166, 255, 0.1));
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Experience Section */
.experience-section {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--bg-primary);
}

.experience-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.experience-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.experience-timeline {
    position: relative;
    padding-left: 30px;
}

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

.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.experience-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 2.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.experience-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-right {
    display: flex;
    flex-direction: column;
}

.experience-period {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.experience-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.experience-company,
.experience-location-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company-icon,
.location-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.experience-summary {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.experience-details {
    list-style: none;
    padding-left: 0;
}

.experience-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.experience-details li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.experience-details strong {
    color: var(--accent-green);
    font-weight: 600;
}

/* Projects Section */
.projects-section {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--bg-secondary);
}

.projects-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Project Filters */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
}

.project-card.hidden {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.project-summary-btn {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-summary-btn:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
}

/* Education Section */
.education-section {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--bg-primary);
}

.education-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.education-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

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

.education-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.education-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.1);
}

.education-header {
    margin-bottom: 1rem;
}

.education-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-period {
    display: inline-block;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.institution {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.location {
    color: var(--text-muted);
}

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

.certifications h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.cert-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cert-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.15);
}

.cert-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.cert-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Contact Form Section */
.contact-form-section {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-form-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.contact-form-section h2::before {
    content: '✦';
    color: var(--accent-green);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

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

.submit-btn {
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

/* Contact Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-icon {
    flex-shrink: 0;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

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

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-modal-cancel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    border-color: var(--text-secondary);
}

.btn-modal-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-green);
    border: none;
    color: var(--bg-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-send:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

.modal-footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    font-size: 0.85rem;
    margin: 0;
}

.visitor-counter img {
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.visitor-counter img:hover {
    opacity: 1;
}

/* Rotating Diamond Icon */
.rotating-diamond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    animation: spinDiamond 4s linear infinite;
}

.rotating-diamond svg {
    display: block;
}

@keyframes spinDiamond {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

/* Responsive Design */

/* Prevent horizontal scroll globally */
html,
body {
    overflow-x: hidden;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

    .skill-category {
        flex-direction: column;
        gap: 1rem;
    }

    .skill-category h3 {
        min-width: auto;
    }
}

@media (max-width: 768px) {

    /* Header & Navigation - Mobile Menu */
    .header .container {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--border-color);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        padding: 1rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

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

    .nav a.contact-btn {
        margin-top: 1rem;
        text-align: center;
    }

    /* Mobile overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Section general fixes */
    section {
        min-height: auto;
        padding: 60px 0;
        scroll-snap-align: none;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-contact-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .headshot {
        width: 180px;
        height: 180px;
    }

    .availability-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Capabilities Section */
    .capabilities-title {
        font-size: 1.8rem;
    }

    .capability-card {
        padding: 1.5rem;
    }

    /* About Section */
    .about-section p {
        font-size: 0.95rem;
    }

    /* Skills Section */
    .skills-subtitle {
        font-size: 0.9rem;
    }

    .skill-category {
        padding: 1rem 0;
    }

    .skill-tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .skill-tag-icon {
        width: 16px;
        height: 16px;
    }

    /* Experience Section - Stack to single column */
    .experience-timeline {
        padding-left: 15px;
    }

    .experience-timeline::before {
        left: 0;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .experience-item::before {
        left: -22px;
        width: 8px;
        height: 8px;
    }

    .experience-role {
        font-size: 1.1rem;
    }

    .experience-details li {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1rem;
    }

    .project-content p {
        font-size: 0.85rem;
    }

    /* Education Section */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-item {
        padding: 1.5rem;
    }

    .education-header h3 {
        font-size: 1.1rem;
    }

    .certifications h3 {
        font-size: 1.2rem;
    }

    .cert-list {
        gap: 0.75rem;
    }

    .cert-item {
        padding: 1rem;
    }

    .cert-item h4 {
        font-size: 0.85rem;
    }

    /* Contact Grid */
    .contact-grid {
        flex-direction: column;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Section titles uniform sizing */
    .capabilities-title,
    .skills-title,
    .experience-title,
    .projects-title,
    .education-title,
    .contact-title {
        font-size: 1.8rem;
    }

    /* Modal fixes */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .headshot {
        width: 150px;
        height: 150px;
    }

    .hero {
        padding-top: 100px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .btn-contact-me,
    .btn-copy-email {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .btn-social-icon {
        width: 36px;
        height: 36px;
    }

    .stat-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }

    /* Experience card improvements */
    .experience-left {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
    }

    .experience-role {
        font-size: 1rem;
    }

    .experience-period {
        font-size: 0.8rem;
    }

    /* Capabilities */
    .capabilities-title {
        font-size: 1.5rem;
    }

    .capability-card h3 {
        font-size: 1rem;
    }

    .capability-card p {
        font-size: 0.85rem;
    }

    /* Skills tags even smaller */
    .skill-tag {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .skill-tag-icon {
        width: 14px;
        height: 14px;
    }

    /* Projects */
    .project-image {
        height: 160px;
    }

    .project-summary-btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Section titles */
    .capabilities-title,
    .skills-title,
    .experience-title,
    .projects-title,
    .education-title,
    .contact-title {
        font-size: 1.5rem;
    }

    /* Modal form */
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.25rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }
}