/*  GLOBAL STYLES  */

:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

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

/*  NAVIGATION   */

.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

.pommes span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/*  HERO SECTION  */

.hero {
    background: linear-gradient(135deg, #4c51bf 0%, #553399 100%);
    color: white;
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"></path></svg>');
    background-repeat: repeat-x;
    animation: wave 15s linear infinite;
    opacity: 0.1;
}

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

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content .highlight {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .highlight-gradient {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-block {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(99, 102, 241, 0.8);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), inset 0 0 20px rgba(99, 102, 241, 0.15);
    min-height: 200px;
    width: 650px;
    max-width: 100%;
}

.matrix-text {
    font-family: 'Courier New', monospace;
    color: #a5f3fc;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8), 0 0 20px rgba(99, 102, 241, 0.4);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    font-weight: 500;
}

.matrix-text.blink {
    animation: matrixBlink 0.1s;
}

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


@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), inset 0 0 20px rgba(99, 102, 241, 0.15);
        border-color: rgba(99, 102, 241, 0.8);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.7), inset 0 0 25px rgba(99, 102, 241, 0.25);
        border-color: rgba(236, 72, 153, 1);
    }
}

@keyframes matrixBlink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/*  EXPERIENCE SECTION (TIMELINE)  */

.experience {
    padding: 5rem 0;
    background-color: white;
}

.experience h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: 48%;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 48%;
    text-align: left;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.timeline-date {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-company {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/*  ABOUT SECTION  */

.about {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

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

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

.stat {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/*  LEARNING SECTION  */

.learning {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.learning h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.learning-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.learning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.learning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

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

.learning-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learning-progress {
    text-align: left;
}

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

.progress-small {
    background: #e0e7ff;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
}

/*  HOMELAB SECTION  */

.homelab {
    padding: 5rem 0;
    background-color: white;
}

.homelab h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.homelab-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f7 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.homelab-intro p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

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

.homelab-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.homelab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-top-color: var(--secondary-color);
}

.homelab-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e7ff;
}

.homelab-card h4 {
    font-size: 1.0rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-top: 2px solid #e0e7ff;
    border-bottom: 2px solid #e0e7ff;
}

.homelab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.homelab-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.homelab-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.homelab-list li:hover {
    color: var(--primary-color);
    padding-left: 2rem;
}

/*  PROJECTS SECTION  */

.projects {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.project-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-5 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-6 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.project-tags {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: #f0f4ff;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

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

/*  SKILLS SECTION  */

.skills {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

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

.progress {
    background: #e0e7ff;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
}

/*  CONTACT SECTION  */

.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 100%);
    color: white;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-details {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-details p {
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/*  FOOTER  */

.footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/*  RESPONSIVE DESIGN  */

/* Tablet / Medium Devices (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--dark-bg);
        padding: 2rem;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .nav-link {
        display: block;
        padding: 1rem 0;
    }

    .pommes {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .code-block {
        width: 100%;
        min-height: 250px;
        padding: 1.5rem;
        font-size: 0.7rem;
    }

    .hero-animation {
        margin-top: 1rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .stat {
        padding: 1.5rem;
    }
    .stat h3 {
        font-size: 2rem;
    }

    /* Experience Section */
    .timeline::before {
        left: 0;
        transform: none;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 30px;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        text-align: left;
    }

    .timeline-marker {
        left: 0;
        transform: none;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .timeline-date {
        font-size: 0.8rem;
        width: fit-content;
    }

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

    .project-card {
        min-height: auto;
    }

    .project-image {
        height: 150px;
        font-size: 2rem;
    }

    /* Learning Grid */
    .learning-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .learning-card {
        padding: 1.5rem;
    }

    /* HomeLab Grid */
    .homelab-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .homelab-card {
        padding: 1.5rem;
    }

    .homelab-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .homelab-intro p {
        font-size: 1rem;
    }
    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.2rem;
    }

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

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    /* Sections Padding */
    .hero,
    .about,
    .experience,
    .projects,
    .learning,
    .homelab,
    .skills,
    .contact {
        padding: 3rem 0;
    }

    .experience h2,
    .about h2,
    .projects h2,
    .learning h2,
    .homelab h2,
    .skills h2,
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Small Devices / Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero .container {
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .code-block {
        min-height: 200px;
        padding: 1rem;
        font-size: 0.65rem;
        width: 100%;
        margin-top: 1rem;
    }

    /* Section Headings */
    .experience h2,
    .about h2,
    .projects h2,
    .learning h2,
    .homelab h2,
    .skills h2,
    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* About Section */
    .about-content {
        gap: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat {
        padding: 1.2rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .stat p {
        font-size: 0.85rem;
    }

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

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 25px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    .timeline-company {
        font-size: 0.9rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
    .timeline-marker {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    /* Project Cards */
    .projects-grid {
        gap: 1rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
        padding: 1rem 1rem 0.3rem;
    }

    .project-card p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .project-image {
        height: 120px;
        font-size: 1.5rem;
    }

    .project-tags {
        padding: 0.8rem 1rem;
        gap: 0.3rem;
    }

    .project-tags span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .project-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Learning Cards */
    .learning-grid {
        gap: 1rem;
    }

    .learning-card {
        padding: 1.2rem;
        text-align: center;
    }

    .learning-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .learning-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .learning-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* HomeLab Section */
    .homelab-intro {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .homelab-intro p {
        font-size: 0.95rem;
    }
    .homelab-grid {
        gap: 1rem;
    }

    .homelab-card {
        padding: 1.2rem;
    }
    .homelab-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .homelab-card h4 {
        font-size: 1.0rem;
        margin-bottom: 1rem;
    }

    .homelab-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        padding-left: 1rem;
    }

    /* Skills Section */
    .skills-grid {
        gap: 1rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-bar {
        margin-bottom: 1rem;
    }

    .skill-bar span {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact {
        padding: 2rem 0;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-details {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .submit-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }

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

/* Extra Small Devices (320px and below) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
    .code-block {
        min-height: 150px;
        font-size: 0.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }
}
