/*
* MyPortfolio - Main Stylesheet
* Author: Matteo Pasotti
* Version: 2.0 - GenAI Engineer Edition
*/

/* ===== Base Styles ===== */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-text: #f5f5f5;
    --color-text-secondary: #999999;
    --color-accent: #36df7c; /* Main accent color */
    --color-accent-dark: #28c662;
    --color-border: #333333;
    --color-genai: #4a9eff; /* Special color for GenAI elements */
    --color-genai-dark: #3d84cc;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Other */
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improved Scrolling Behavior */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Section styles with improved spacing */
section {
    padding: var(--space-lg) 0;
}

section.snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
}

/* Add more spacing between sections */
section + section {
    margin-top: 2rem;
}

/* Specifically adjust contact section to show footer */
#contact.snap-section {
    min-height: 90vh;
    padding-bottom: 100px;
}

/* Background color alternation */
section:nth-child(even) {
    background-color: var(--color-bg);
}

section:nth-child(odd) {
    background-color: var(--color-bg-secondary);
}

#hero {
    background-color: var(--color-bg);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

.section-title {
    position: relative;
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
}

/* Section titles for navigation */
.section-subtitle {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* Special highlight for GenAI elements */
.highlight-genai {
    color: var(--color-genai);
    font-weight: 600;
}

/* ===== Animation classes ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ===== Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-accent);
    z-index: 999;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(54, 223, 124, 0.5);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header.header-hidden {
    transform: translateY(-100%);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ===== Side Navigation Dots ===== */
.nav-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.nav-dot.active, .nav-dot:hover {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white !important;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    color: white !important;
}

.btn-secondary {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: rgba(54, 223, 124, 0.1);
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-md);
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.intro-text {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: -3rem;
}

.title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.name {
    margin-right: 15px;
    margin-bottom: 0;
}

.tagline {
    color: var(--color-text-secondary);
    margin-bottom: 0;
    font-size: 3rem;
}

.description {
    max-width: 540px;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    z-index: 0;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-content p {
    color: var(--color-text-secondary);
}

.about-image {
    position: relative;
    margin-top: -80px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    z-index: -1;
    margin-top: -10px;
}

.about-image img {
    border-radius: var(--border-radius);
    max-width: 100%;
    box-shadow: var(--box-shadow);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
}

/* ===== Projects Section ===== */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

/* Special styling for GenAI filter button */
.filter-btn[data-filter="genai"] {
    border-color: var(--color-genai);
    color: var(--color-genai);
}

.filter-btn[data-filter="genai"]:hover,
.filter-btn[data-filter="genai"].active {
    background-color: var(--color-genai);
    border-color: var(--color-genai);
    color: var(--color-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.project-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Special styling for GenAI project cards */
.project-card[data-category="genai"] {
    border-left: 4px solid var(--color-genai);
}

.project-card[data-category="genai"]:hover {
    box-shadow: 0 15px 40px -15px rgba(74, 158, 255, 0.3);
}

.project-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    margin-bottom: 0.5rem;
}

.project-category {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    padding: 2px 8px;
    background-color: rgba(54, 223, 124, 0.1);
    display: inline-block;
    border-radius: 4px;
}

/* Special styling for GenAI category */
.project-card[data-category="genai"] .project-category {
    color: var(--color-genai);
    background-color: rgba(74, 158, 255, 0.1);
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    flex-grow: 1;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.project-tech span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background-color: rgba(153, 153, 153, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.project-links {
    display: flex;
    gap: var(--space-sm);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--color-accent);
}

.project-link i {
    margin-right: 0.5rem;
}

/* Project Carousel Styles */
.projects-carousel-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.projects-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.projects-track {
    display: flex;
    transition: transform 0.5s ease;
}

.project-card {
    flex: 0 0 calc(33.333% - 2rem);
    margin: 1rem;
    width: calc(33.333% - 2rem);
    min-width: 300px;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-text);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.carousel-nav:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== Skills Section ===== */
.skills-tabs {
    width: 100%;
    margin-top: var(--space-md);
}

.skills-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.skill-tab-btn {
    background-color: rgba(54, 223, 124, 0.1);
    color: var(--color-text-secondary);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.skill-tab-btn:hover {
    background-color: rgba(54, 223, 124, 0.2);
    color: var(--color-text);
}

.skill-tab-btn.active {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* Special styling for GenAI and Agents tabs */
.skill-tab-btn[data-tab="tab-genai"],
.skill-tab-btn[data-tab="tab-agents"] {
    background-color: rgba(74, 158, 255, 0.1);
    border-color: var(--color-genai);
}

.skill-tab-btn[data-tab="tab-genai"]:hover,
.skill-tab-btn[data-tab="tab-agents"]:hover {
    background-color: rgba(74, 158, 255, 0.2);
}

.skill-tab-btn[data-tab="tab-genai"].active,
.skill-tab-btn[data-tab="tab-agents"].active {
    background-color: var(--color-genai);
    color: white;
}

.skills-tabs-content {
    position: relative;
}

.skill-tab-btn.active,
.filter-btn.active,
.achievement-tab-btn.active {
    color: white !important;
    font-weight: 600;
}

.skill-tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tab-content.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: rgba(153, 153, 153, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(153, 153, 153, 0.1);
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Special icon colors for GenAI and Agents tabs */
#tab-genai .skill-icon,
#tab-agents .skill-icon {
    background-color: var(--color-genai);
}

.skill-info {
    flex-grow: 1;
}

.skill-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Publications, Certifications & Challenges Section ===== */
.achievement-tabs {
    width: 100%;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.achievement-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.achievement-tab-btn {
    background-color: rgba(54, 223, 124, 0.1);
    color: var(--color-text-secondary);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.achievement-tab-btn:hover {
    background-color: rgba(54, 223, 124, 0.2);
    color: var(--color-text);
}

.achievement-tab-btn.active {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.achievement-tabs-content {
    position: relative;
}

.achievement-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-tab-content.active {
    display: block;
    opacity: 1;
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.publication-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.publication-card:hover {
    transform: translateY(-5px);
}

.publication-content {
    padding: var(--space-md);
}

.publication-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.publication-authors {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-style: italic;
    line-height: 1.5;
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.publication-tags span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background-color: rgba(153, 153, 153, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.publication-links {
    display: flex;
    gap: var(--space-sm);
}

.publication-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.publication-link:hover {
    color: var(--color-accent);
}

.publication-link i {
    margin-right: 0.5rem;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.certification-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certification-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.certification-issuer {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.certification-date {
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.certification-id {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
    opacity: 0.8;
}

.certification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.certification-tags span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background-color: rgba(153, 153, 153, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.challenge-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.challenge-card:hover {
    transform: translateY(-5px);
}

.challenge-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.challenge-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.challenge-organizer {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.challenge-date {
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.challenge-id {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
    opacity: 0.8;
}

.challenge-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    line-height: 1.5;
}

.challenge-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.challenge-tags span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background-color: rgba(153, 153, 153, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

/* Timeline styling */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background-color: var(--color-accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 160px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 116px;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    top: 18px;
}

.timeline-date {
    position: absolute;
    left: 0;
    width: 100px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    top: 15px;
}

.timeline-content {
    background-color: rgba(153, 153, 153, 0.05);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.timeline-content p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.achievement-list {
    list-style: none;
    margin-bottom: 15px;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.achievement-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
}

.job-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.job-tech span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    background-color: rgba(153, 153, 153, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

/* Timeline animation styles */
.timeline-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.timeline-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    margin-top: var(--space-lg);
}

.contact-info {
    background-color: rgba(153, 153, 153, 0.05);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    background-color: rgba(153, 153, 153, 0.05);
    transition: var(--transition);
}

.contact-method:hover {
    background-color: rgba(153, 153, 153, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
}

.contact-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-text a, .contact-text p {
    margin: 0;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--color-accent);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    background-color: rgba(153, 153, 153, 0.05);
    transition: var(--transition);
}

.social-item:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.social-item:hover .social-icon,
.social-item:hover .social-name {
    color: var(--color-bg);
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(153, 153, 153, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon i {
    font-size: 1.1rem;
}

.social-name {
    font-weight: 500;
    transition: var(--transition);
}

.contact-form {
    background-color: rgba(153, 153, 153, 0.05);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-5px);
}

.form-title {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(153, 153, 153, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(54, 223, 124, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: var(--space-sm);
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.contact-form .btn:hover::before {
    left: 0;
}

.form-success, .form-error {
    padding: 12px;
    margin-top: var(--space-sm);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
}

.form-success {
    background-color: rgba(54, 223, 124, 0.1);
    color: var(--color-accent);
}

.form-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    padding: 5px 0;
    text-align: left;
}

.input-error {
    border-color: #ff4d4d;
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-lg) 0 var(--space-md);
    background-color: var(--color-bg-secondary);
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding-top: 40px;
    padding-bottom: 20px;
    scroll-snap-align: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(153, 153, 153, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        width: 80%;
    }
    
    .project-card {
        flex: 0 0 calc(33.333% - 2rem);
        width: calc(33.333% - 2rem);
    }
}

/* Medium Screens (992px to 1199px) */
@media (max-width: 1199px) {
    h1 {
        font-size: 4rem;
    }
    
    .tagline {
        font-size: 2.5rem;
    }
    
    .project-card {
        flex: 0 0 calc(50% - 2rem);
        width: calc(50% - 2rem);
    }
}

/* Small Screens (768px to 991px) */
@media (max-width: 991px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto var(--space-lg) auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
        order: -1;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact-info, .contact-form {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-card {
        flex: 0 0 calc(100% - 2rem);
        width: calc(100% - 2rem);
    }
}

/* Mobile Screens (576px to 767px) */
@media (max-width: 767px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 100;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--color-bg-secondary);
        padding: var(--space-xl) var(--space-md);
        transition: var(--transition);
        z-index: 90;
        justify-content: center;
        align-items: center;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--space-sm) 0;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.1rem;
    }
    
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background-color: var(--color-accent);
    }
    
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .skill-tab-btn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-indicator {
        right: 10px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    html {
        scroll-snap-type: none;
    }
    
    section.snap-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    #contact.snap-section {
        padding-bottom: 60px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
    }

    .intro-text {
        margin-bottom: -2rem !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 16px;
    }
    
    .timeline-date {
        position: relative;
        left: -55px;
        top: -10px;
        width: auto;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
    
    .achievement-tabs-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .achievement-tab-btn {
        white-space: nowrap;
    }
    
    .certifications-grid,
    .challenges-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Screens (up to 575px) */
@media (max-width: 575px) {
    h1 {
        font-size: 2.25rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .section-title {
        position: relative;
        display: inline-block;
        padding-bottom: 5px;
        transition: all 0.3s ease;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
    }
    
    .hero {
        padding-top: calc(var(--space-lg) + 60px);
    }
    
    .hero-image {
        max-width: 250px;
    }

    .intro-text {
        margin-bottom: -2rem !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0a0a0a;
        --color-bg-secondary: #111111;
        --color-text: #f5f5f5;
        --color-text-secondary: #999999;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-indicator,
    .scroll-progress,
    .menu-toggle {
        display: none !important;
    }
    
    html {
        scroll-snap-type: none;
    }
    
    section.snap-section {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .project-card,
    .contact-form,
    .contact-info,
    .skill-item {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .project-description,
    p,
    .contact-text p,
    .contact-text a {
        color: #333 !important;
    }
}

/* Ensure sections are visible */
section.snap-section {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.skill-tab-content.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.project-card {
    visibility: visible !important;
}

.footer {
    visibility: visible !important;
    display: block !important;
}

#contact {
    min-height: 90vh !important;
    padding-bottom: 120px !important;
}