/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark-primary: #0F172A;
    /* Dark grey background */
    --bg-dark-secondary: #1E293B;
    /* Cards, header background */
    --accent-electric-blue: #38BDF8;
    --accent-soft-cyan: #22D3EE;
    --text-subtle-white: #F8FAFC;
    --text-light-grey: #CBD5E1;
    --glass-border-color: rgba(34, 211, 238, 0.1);
    --neon-glow-blue: rgba(56, 189, 248, 0.6);
    --neon-glow-cyan: rgba(34, 211, 238, 0.4);
    --subtle-text-shadow: 0 0 5px rgba(56, 189, 248, 0.3);
    --text-on-accent-blue: #0F172A; /* Dark text for contrast on light blue buttons */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark-primary);
    color: var(--text-subtle-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    color: var(--accent-electric-blue);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: var(--subtle-text-shadow);
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

a {
    color: var(--accent-soft-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-electric-blue); }

.glass-card {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 var(--neon-glow-blue);
    background-color: rgba(30, 41, 59, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn:focus-visible { /* Enhanced focus for accessibility */
    outline: none;
    box-shadow: 0 0 0 3px var(--bg-dark-primary), 0 0 0 5px var(--accent-electric-blue);
}

.btn-primary {
    background-color: var(--accent-electric-blue);
    color: var(--text-on-accent-blue); /* Ensure contrast */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
    background-color: var(--accent-soft-cyan);
    color: var(--text-subtle-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--neon-glow-cyan);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-soft-cyan);
    border: 1px solid var(--accent-soft-cyan);
}
.btn-secondary:hover {
    background-color: var(--accent-soft-cyan);
    color: var(--text-on-accent-blue); /* Ensure contrast */
    box-shadow: 0 8px 20px var(--neon-glow-cyan);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: background 0.3s ease;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-electric-blue);
    text-shadow: var(--subtle-text-shadow);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center; /* Align items for CV button */
}
.nav-links a {
    color: var(--text-subtle-white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-soft-cyan);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background-color: var(--accent-electric-blue);
}
.nav-links a.btn-cv::after { /* Prevent underline for CV button */
    display: none;
}


/* CV - button */
.btn-cv { /* Applied .btn styles earlier, this is for specific overrides */
    align-items: center; /* Use flex properties if needed, but .btn gives inline-block */
    gap: 10px; /* Works if display is flex or grid */
    font-size: 0.9rem; /* Slightly smaller to fit nav */
    font-weight: 600; /* Adjusted from 700 to match general button feel */
    color: var(--text-on-accent-blue); /* For contrast */
    background-color: var(--accent-soft-cyan); /* Corrected background */
    border: none;
    border-radius: 12px; /* More rectangular than other buttons */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2); /* Adjusted glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin: 0 10px;
    padding: 8px 18px !important; /* Override generic .btn padding if needed */
    text-transform: none; /* Override generic .btn text-transform */
    letter-spacing: normal; /* Override generic .btn letter-spacing */
}
.btn-cv i {
    font-size: 1.1em; /* Adjusted icon size */
    margin-right: 8px; /* Space between icon and text */
    transition: transform 0.3s ease;
}
.btn-cv:hover {
    transform: translateY(-3px);
    background-color: var(--accent-electric-blue);
    box-shadow: 0 6px 20px var(--neon-glow-blue);
}
.btn-cv:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--accent-electric-blue);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}
.menu-toggle:hover {
    color: var(--accent-soft-cyan);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark-primary) 0%, #1e293b 100%);
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content vertically */
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header height */
}
.hero-section::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
    width: 100%;
}
.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-electric-blue);
    box-shadow: 0 0 30px var(--neon-glow-blue);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px var(--neon-glow-blue);
}
.hero-section h1 {
    font-size: 4.5em;
    margin-bottom: 0.5rem;
    color: var(--text-subtle-white);
    text-shadow: 0 0 15px var(--neon-glow-blue);
}
.hero-section .subtitle {
    font-size: 1.8em;
    color: var(--accent-soft-cyan);
    margin-bottom: 1.5rem;
}
.hero-section p {
    font-size: 1.2em;
    color: var(--text-light-grey);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styling */
section {
    padding: 80px 0;
    position: relative;
}
.section-title {
    margin-bottom: 4rem;
    position: relative;
    color: var(--accent-electric-blue);
    text-shadow: var(--subtle-text-shadow);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-electric-blue), var(--accent-soft-cyan));
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-section { background-color: var(--bg-dark-primary); }
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light-grey);
}
.about-content strong { color: var(--accent-soft-cyan); }

/* Skills Section - Swiper specific */
/* REMOVED .skills-grid CSS block */

.skill-card { /* This style is for the content INSIDE swiper-slide */
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%; /* Makes card fill the swiper-slide height */
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 var(--neon-glow-blue);
    background-color: rgba(30, 41, 59, 0.9);
}
.skill-card .skill-icon {
    font-size: 2.5rem;
    color: var(--accent-electric-blue);
    margin-bottom: 0.75rem;
}
.skill-card .skill-name {
    font-weight: 500;
    color: var(--text-subtle-white);
    font-size: 0.95rem;
}

/* Styles for Swiper itself in the Skills section */
.skills-swiper {
    padding-bottom: 40px; /* Add padding for scrollbar if it's outside */
}
.skills-swiper .swiper-wrapper {
    align-items: stretch; /* Ensures all slides in a view adopt the height of the tallest slide */
}
.skills-swiper .swiper-slide {
    width: auto; /* Let slides size based on their content or swiper's slidesPerView */
    height: auto; /* Required for align-items: stretch on wrapper to work */
    text-align: center;
}
.skills-swiper .swiper-scrollbar {
    background: rgba(255, 255, 255, 0.1);
    bottom: 0; /* Position at the bottom of .skills-swiper */
    height: 6px;
}
.skills-swiper .swiper-scrollbar-drag {
    background: var(--accent-soft-cyan);
    border-radius: 3px;
}


/* Projects Section */
.projects-section { background-color: var(--bg-dark-primary); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}
.project-card {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 var(--neon-glow-blue);
    background-color: rgba(30, 41, 59, 0.9);
}
.project-image-placeholder {
    height: 200px;
    background: linear-gradient(45deg, #1A3050, #3B82F6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    overflow: hidden;
}
.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover to fill, could be contain */
}
.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-electric-blue);
    margin-bottom: 0.75rem;
    text-align: left;
    text-shadow: none;
}
.project-description {
    color: var(--text-light-grey);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95em;
}
.project-links {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1.5rem; /* auto if content above varies, or fixed for alignment */
}
.project-links .btn { /* More specific styling for project buttons */
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* Experience & Education & Certificates */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
    padding-top: 20px;
}
.timeline-item {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    border-left: 4px solid var(--accent-soft-cyan);
}
.timeline-item:hover {
    transform: translateX(10px); /* Subtle shift right */
    box-shadow: 0 10px 25px var(--neon-glow-cyan);
    background-color: rgba(30, 41, 59, 0.9);
}
.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-electric-blue);
    margin-bottom: 0.5rem;
    text-align: left;
    text-shadow: none;
}
.timeline-subtitle {
    color: var(--text-light-grey);
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 0.95em;
    text-align: left;
}
.timeline-item p {
    color: var(--text-light-grey);
    font-size: 0.9em;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0.5em; /* Add some spacing between paragraphs */
}
.timeline-item p:last-child {
    margin-bottom: 0;
}
.timeline-item strong { /* Make strong tags stand out more in timeline */
    color: var(--accent-soft-cyan);
    font-weight: 600;
}


/* Certificates specific styles */
.certificate-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.05); /* Slight background for logo if transparent */
    padding: 10px;
    border-radius: 8px;
}

/* Testimonials Section */
.testimonials-section { background-color: var(--bg-dark-primary); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.testimonial-card {
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    padding: 2rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Better alignment if content varies */
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 var(--neon-glow-blue);
    background-color: rgba(30, 41, 59, 0.9);
}
.testimonial-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block for margin auto */
    margin-left: auto;
    margin-right: auto;
}
.testimonial-caption {
    font-style: italic;
    color: var(--text-light-grey);
    font-size: 0.95em;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--bg-dark-primary), #1e293b);
    padding-bottom: 100px; /* More padding if form is active */
}
.contact-section .section-title { color: var(--text-subtle-white); }
.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.contact-item {
    text-align: center;
    padding: 1.5rem;
    flex: 1 1 220px; /* Slightly larger base for 4 items */
    max-width: 280px; /* Max width for each item */
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.contact-item:hover {
    box-shadow: 0 8px 25px var(--neon-glow-blue);
    transform: translateY(-5px);
    background-color: rgba(30, 41, 59, 0.9);
}
.contact-item .contact-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--accent-soft-cyan);
    transition: color 0.3s ease, transform 0.3s ease;
}
.contact-item:hover .contact-icon {
    color: var(--accent-electric-blue);
    transform: scale(1.1);
}
.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-subtle-white);
    text-shadow: none;
}
.contact-item a {
    color: var(--text-light-grey);
    font-size: 1.05em;
    display: block;
    margin-top: 0.5rem;
    word-break: break-all; /* For long email or link */
}
.contact-item a:hover { color: var(--accent-soft-cyan); }

.contact-form { /* Styles for if the form is uncommented */
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
    gap: 20px;
    padding: 2rem;
    background-color: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.contact-form input,
.contact-form textarea {
    background-color: var(--bg-dark-primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-subtle-white);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light-grey);
    opacity: 0.7;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-electric-blue);
    box-shadow: 0 0 15px var(--neon-glow-blue);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn {
    align-self: center;
    width: fit-content;
}

/* Footer */
footer {
    background-color: var(--bg-dark-secondary);
    color: var(--text-light-grey);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9em;
    border-top: 1px solid rgba(34, 211, 238, 0.1);
}

/* Scroll-to-top button */
#scrollToTopBtn {
    display: none; /* Hidden by default, JS will show it */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--accent-electric-blue);
    color: var(--text-on-accent-blue);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--neon-glow-blue);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    align-items: center; /* JS sets display:flex, so these work */
    justify-content: center;
}
#scrollToTopBtn:hover {
    background-color: var(--accent-soft-cyan);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--neon-glow-cyan);
}

/* HireMe Floating Button */
#hireMe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background-color: var(--accent-electric-blue);
    color: var(--text-on-accent-blue);
    font-family: 'Inter', sans-serif; /* Consistent font */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    height: 55px;
    padding: 0 24px;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--neon-glow-blue);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}
#hireMe i { font-size: 1.2em; }
#hireMe:hover, #hireMe:focus-visible {
    background-color: var(--accent-soft-cyan);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px var(--neon-glow-blue);
    outline: none;
}
#hireMe:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 4px 12px var(--neon-glow-blue);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
/* @keyframes slideInRight { ... } */ /* Not currently used, can be added if needed */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    main { padding-top: 70px; /* Adjust to actual header height on mobile */ }
    header nav { padding: 0.8rem 0; } /* Slightly less padding for nav */

    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem; /* Adjusted gap */
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        padding-top: 70px; /* Space for header */
    }
    .nav-links.nav-open { transform: translateX(0); }
    .nav-links li a {
        font-size: 1.5rem; /* Adjusted size */
        padding: 10px 0; /* Adjusted padding */
    }
    .nav-links .btn-cv {
        font-size: 1.2rem; /* Make CV button a bit larger in mobile menu */
        padding: 12px 25px !important;
    }
    .menu-toggle { display: block; }

    .hero-section { min-height: calc(100vh - 70px); padding-top: 0; } /* Adjust hero height */
    .hero-section h1 { font-size: 3em; }
    .hero-section .subtitle { font-size: 1.3em; }
    .hero-avatar { width: 150px; height: 150px; }
    h2 { font-size: 2em; }

    /* Grids to single column */
    .projects-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-details {
        grid-template-columns: 1fr; /* This was flex, adjust if needed */
        gap: 1.5rem; /* Keep gap consistent */
    }
    .contact-item { flex: 1 1 100%; } /* Full width for contact items */
    .section-title { margin-bottom: 3rem; }

    #hireMe {
        font-size: 0.95rem;
        height: 50px;
        padding: 0 20px; /* Adjusted padding */
        bottom: 20px;
        left: 20px;
    }
    #hireMe .email-text { display: none; } /* Hide text on smaller screens, show only icon */
    #hireMe i { margin-right: 0; } /* Remove margin if text is hidden */
}

@media (max-width: 480px) {
    main { padding-top: 60px; }
    header nav { padding: 0.6rem 0; }
    .nav-links { gap: 2rem; padding-top: 60px; }
    .nav-links li a { font-size: 1.3rem; }
    .nav-links .btn-cv { font-size: 1.1rem; padding: 10px 20px !important; }


    .hero-section { min-height: calc(100vh - 60px); }
    .hero-section h1 { font-size: 2.5em; }
    .hero-section .subtitle { font-size: 1.1em; }
    .hero-avatar { width: 120px; height: 120px; }
    .btn { padding: 10px 20px; font-size: 0.9em; }
    .project-links .btn { padding: 8px 15px; font-size: 0.85rem; }


    .contact-form { padding: 1.5rem; }
    #scrollToTopBtn {
        width: 45px; height: 45px;
        font-size: 1.4em;
        bottom: 20px; right: 20px;
    }
    #hireMe {
        height: 46px;
        width: 46px; /* Make it circular if only icon */
        padding: 0; /* Remove padding if only icon */
        font-size: 1.3em; /* Icon size */
        bottom: 15px;
        left: 15px;
    }
    #hireMe .email-text { display: none; }
    #hireMe i { margin-right: 0; }
}