/* 
 * Portfolio 2.0 - Ajith Nat
 * Aesthetics: Dark Mode, Glassmorphism, Neon Accents, Minimalist
 */

:root {
    /* Color Palette */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-primary: #42b983;
    /* Keeping the legacy green brand color */
    --accent-glow: rgba(66, 185, 131, 0.4);

    --glass-border: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-gap: 8rem;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--accent-primary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-dark);
}

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

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

.btn-outline::before {
    background: rgba(66, 185, 131, 0.1);
    /* Subtle hover fill */
}

.btn-outline:hover {
    color: var(--accent-primary);
    /* Keep text green on hover */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed nav */
}

#hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* About Section */
#about {
    padding: var(--section-gap) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.profile-img-container {
    position: relative;
    /* Remove fixed dimensions to let the first image dictate size like before */
    z-index: 1;
}

.profile-img-container::after {
    /* Original border accent style */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    z-index: -1;
    transform: translate(10px, 10px);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.profile-img-container:hover::after {
    transform: translate(0, 0);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    transition: opacity 1s ease-in-out, transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    opacity: 0;
    pointer-events: none;
    /* Disable right click / drag */
    user-select: none;
}

/* 
   Key Logic: Making the first image (Profile) relative 
   ensures the container takes its exact size.
   Opacity is controlled by .active class now (removed opacity: 1 force).
*/
.carousel-slide:first-child {
    position: relative;
    /* opacity: 1; <-- REMOVED to allow smooth fade in/out */
}

/* 
   Ensure Active State wins specificity 
*/
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.profile-img-container:hover .carousel-slide {
    transform: translate(-10px, -10px);
    filter: grayscale(0%);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.profile-img-container:hover .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.caption-text {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Experience Section (Timeline) */
#experience {
    padding: var(--section-gap) 0;
}

.timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    margin-left: 1rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.exp-role {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.exp-date {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.exp-company {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.exp-company i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.exp-list {
    margin-top: 1rem;
    padding-left: 1rem;
    list-style-type: disc;
    color: var(--text-secondary);
}

.exp-list li {
    margin-bottom: 0.5rem;
}

/* Education Section */
#education {
    padding: var(--section-gap) 0;
}

/* Projects Section */
#projects {
    padding: var(--section-gap) 0;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2rem;
    color: var(--accent-primary);
}

.project-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.project-links a:hover {
    color: var(--accent-primary);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

/* Skills Section */
#skills {
    padding: var(--section-gap) 0;
}

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

.skill-category h3 {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.skill-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: '▹';
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

/* Contact / Footer */
#contact {
    padding: var(--section-gap) 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

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

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

    .profile-img-container {
        display: none;
        /* Hide image on small mobile for focus on content */
    }

    .nav-links {
        display: none;
        /* To implement mobile menu if needed, for now hidden on small */
    }
}

/* Hobbies Section */
#hobbies {
    padding: var(--section-gap) 0;
}

.hobbies-intro {
    max-width: 800px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.hobbies-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-dark);
}

.hobbies-grid::-webkit-scrollbar {
    height: 8px;
}

.hobbies-grid::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.hobbies-grid::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.hobby-card {
    flex: 0 0 28%;
    /* desktop: ~3.5 items visible */
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

@media (max-width: 768px) {
    .hobby-card {
        flex: 0 0 80%;
        /* mobile: 1.2 items visible */
    }
}

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

.hobby-card:hover .hobby-img {
    transform: scale(1.1);
}

.hobby-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-overlay {
    transform: translateY(0);
}

.hobby-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Bubble Widget */
.contact-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--bg-dark);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(66, 185, 131, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.contact-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 185, 131, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(66, 185, 131, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(66, 185, 131, 0);
    }
}

.contact-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

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

.btn-full {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

/* Certifications Section */
#certifications {
    padding: var(--section-gap) 0;
}

.cert-list {
    list-style: none;
    max-width: 900px;
}

.cert-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.cert-list li i {
    color: var(--accent-primary);
    margin-right: 1rem;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.cert-list li span {
    /* For non-link text */
    color: var(--text-secondary);
}

/* Recommendations Section */
#recommendations {
    padding: var(--section-gap) 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f0f0f);
    overflow: hidden;
    /* Hide overflow for infinite feel */
}

.recommendations-scroll {
    display: flex;
    overflow-x: hidden;
    /* Hide scrollbar for marquee effect */
    gap: 2rem;
    padding: 1rem 0 2rem 0;
    /* scroll-snap-type: x mandatory;  <-- Disable snap for smooth auto-scroll */
}

/* Hide Scrollbar */
.recommendations-scroll::-webkit-scrollbar {
    display: none;
}

.recommendations-scroll::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.recommendations-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.recommendation-card {
    flex: 0 0 450px;
    /* Wider for text content */
    /* scroll-snap-align: start; */
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;

    /* Ensure height consistency */
    display: flex;
    flex-direction: column;
}

/* Status Highlight */
.status-highlight {
    background: linear-gradient(90deg, rgba(66, 185, 131, 0.1), transparent);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
    display: table;
    /* Fit content but allow breaking */
    color: var(--text-primary);
    font-weight: 500;
}

.status-highlight i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.opentowork-text {
    color: var(--accent-primary);
    font-weight: 700;
    margin-left: 0.5rem;
    text-shadow: 0 0 20px rgba(66, 185, 131, 0.3);
    position: relative;
    display: inline-block;
    /* Ensure animation works */
}

/* Optional Pulse Animation for the Status */
.opentowork-text::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(66, 185, 131, 0.7);
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 6px rgba(66, 185, 131, 0);
    }

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

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Left of the contact button (which is around right: 30px) */
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(66, 185, 131, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: #fff;
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.github-widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    max-width: 800px;
    /* Limit width */
}

.gh-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gh-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.gh-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    border-radius: 4px;
    transition: all 0.2s;
}

.gh-tab.active,
.gh-tab:hover {
    color: var(--accent-primary);
    background: rgba(66, 185, 131, 0.1);
}

.gh-content {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
    /* GitHub Dark BG */
    border: 1px solid var(--glass-border);
}

.gh-graph {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.gh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gh-content:hover .gh-overlay {
    opacity: 1;
}

.gh-overlay span {
    color: #fff;
    font-weight: 600;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .recommendation-card {
        flex: 0 0 85%;
        padding: 1.5rem;
    }
}

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

.rec-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.rec-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.rec-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.linkedin-icon {
    margin-left: auto;
    color: #0077b5;
    font-size: 1.5rem;
}

.rec-body {
    position: relative;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--accent-glow);
    margin-bottom: 1rem;
    display: block;
}

.rec-body p {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* Utilities Refactored from Inline Styles */
.mt-2 {
    margin-top: 2rem;
}

.ml-1 {
    margin-left: 1rem;
}

.mb-2-5 {
    margin-bottom: 2.5rem;
}

.mr-0-5 {
    margin-right: 0.5rem;
}

.hero-subtitle-sub {
    font-size: 3rem;
    opacity: 0.8;
}

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

.project-disclaimer {
    color: var(--text-secondary);
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.rec-attribution {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-desc {
    margin: 0 auto 2rem auto;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icon-link {
    font-size: 2rem;
    color: var(--text-secondary);
}

.last-mod-text {
    margin-top: 0.5rem;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

@media print {

    .navbar,
    .btn,
    .contact-widget,
    #scroll-to-top,
    .social-links-footer,
    .footer p {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section-title,
    .hero-title,
    h1,
    h2,
    h3,
    h4,
    strong,
    b {
        color: #000 !important;
        -webkit-text-fill-color: initial;
        /* Reset gradient text */
    }

    p,
    li,
    span,
    div {
        color: #333 !important;
    }

    a {
        text-decoration: none;
        color: #000 !important;
    }

    section {
        padding: 2rem 0 !important;
        page-break-inside: avoid;
    }

    .project-card,
    .timeline-content {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
}