/* Custom CSS for Portfolio */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #343a40;
}

p,
li {
    color: #495057;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #0056b3;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Increased for better mobile spacing */
}

/* Better scroll snap behavior */
body {
    scroll-snap-type: y proximity;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Better stopping behavior */
}

/* Mobile-specific scroll improvements */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px; /* Extra padding for mobile */
    }
    
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Section spacing */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Fix section overlapping issues */
#about, #skills, #projects, #contact {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Ensure proper spacing for non-hero sections */
section:not(.hero-section) {
    margin-top: 0;
}

/* Better section spacing and layout fixes */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* About section specific fixes */
#about {
    background-color: #ffffff;
    position: relative;
    padding-top: 100px;
}

#about .container {
    position: relative;
    z-index: 1;
}

/* Skills section background */
#skills {
    background-color: #f8f9fa !important;
}

/* Projects section */
#projects {
    background-color: #ffffff;
}

/* Experience section */
#experience {
    background-color: #ffffff;
}

/* Contact Section */
#contact {
    background-color: #343a40;
}

#contact p,
#contact li,
#contact span,
#contact .lead {
    color: rgba(255, 255, 255, 0.9);
}

#contact .section-title {
    color: #ffffff !important;
}

#contact .section-title::after {
    background: #ffffff !important;
}

.contact-item {
    font-size: 1.1rem;
}
.navbar {
    background: rgba(52, 58, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1050;
    min-height: 70px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Mobile-specific navbar brand sizing */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar .btn-outline-primary {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    /* Improve navbar collapse behavior with better animations */
    .navbar-collapse {
        margin-top: 10px;
        background: rgba(52, 58, 64, 0.98);
        border-radius: 8px;
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 10px;
        transition: all 0.35s ease-in-out;
        overflow: hidden;
    }
    
    /* Smooth collapse animation */
    .navbar-collapse.collapsing {
        transition: height 0.35s ease-in-out;
        overflow: hidden;
    }
    
    /* Better navbar toggle button animation */
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus,
    .navbar-toggler:active {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        transition: all 0.3s ease;
        width: 20px;
        height: 20px;
    }
    
    /* Navbar toggler animation when active */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }
    
    /* Additional navbar toggler styling */
    .navbar-toggler.active .navbar-toggler-icon {
        transform: rotate(90deg);
    }
    
    /* Better focus states for accessibility */
    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 16px;
        margin: 3px 0;
        border-radius: 6px;
        transition: all 0.3s ease;
        transform: translateX(-10px);
        opacity: 0;
        animation: slideInNav 0.4s ease forwards;
    }
    
    /* Staggered animation for nav links */
    .navbar-nav .nav-item:nth-child(1) .nav-link { animation-delay: 0.05s; }
    .navbar-nav .nav-item:nth-child(2) .nav-link { animation-delay: 0.1s; }
    .navbar-nav .nav-item:nth-child(3) .nav-link { animation-delay: 0.15s; }
    .navbar-nav .nav-item:nth-child(4) .nav-link { animation-delay: 0.2s; }
    .navbar-nav .nav-item:nth-child(5) .nav-link { animation-delay: 0.25s; }
    .navbar-nav .nav-item:nth-child(6) .nav-link { animation-delay: 0.3s; }
    .navbar-nav .nav-item:nth-child(7) .nav-link { animation-delay: 0.35s; }
    .navbar-nav .nav-item:nth-child(8) .nav-link { animation-delay: 0.4s; }
    .navbar-nav .nav-item:nth-child(9) .nav-link { animation-delay: 0.45s; }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(0, 123, 255, 0.15);
        transform: translateX(0);
    }
    
    .navbar-nav .nav-link:active {
        background-color: rgba(0, 123, 255, 0.25);
    }
}

/* Keyframe animation for nav links */
@keyframes slideInNav {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar-nav .nav-link {
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Resume button styling in navbar */
.navbar .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-size: 0.875rem;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    position: relative;
    display: flex;
    align-items: center;
}

/* Mobile hero section improvements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn {
        margin: 5px 0;
        width: 100%;
        font-size: 0.9rem;
    }
    
    .hero-section .btn-lg {
        padding: 12px 20px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Typing cursor effect */
.cursor {
    color: var(--primary-color);
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Titles */
.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
    color: #343a40;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Profile Image Styling */
.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 4px solid #007bff;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
}

/* Skills Section */
.skills-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
}

.skills-category-title {
    color: #343a40;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.skills-grid {
    display: grid;
    gap: 1rem;
}

.skill-tag {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.05), rgba(40, 167, 69, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-tag i {
    font-size: 1.5rem;
    min-width: 24px;
    color: #007bff;
}

.skill-tag span {
    font-weight: 500;
    color: #343a40;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Old skill styles for compatibility */
.skill-item {
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    border-radius: 5px;
    animation: fillBar 2s ease-in-out;
}

@keyframes fillBar {
    0% {
        width: 0%;
    }
}

/* Project Cards */
.project-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card:active {
    transform: scale(0.98);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-tech .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Purple badge styling */
.badge.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

/* Thumbnail Container for YouTube videos */
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-item {
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #495057;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Button Animations */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Achievements Section */
.achievement-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.achievement-card:hover::before {
    top: -25%;
    right: -25%;
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
    display: block;
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.achievement-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.achievement-description {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.rank-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Experience Section */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), #0056b3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.timeline-org {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Blog Section Styles */
.blog-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-icon {
    text-align: center;
    margin-bottom: 20px;
}

.blog-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, #007bff, #0056b3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-card .card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Blog section background */
#blog {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }
    
    .btn-social {
        width: 40px;
        height: 40px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0 !important;
        text-align: left !important;
    }
    
    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    /* About section mobile improvements */
    .profile-img {
        max-width: 200px !important;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* Skills section mobile improvements */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .skill-tag {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .skill-tag i {
        font-size: 1.25rem;
    }
    
    .skill-tag span {
        font-size: 0.9rem;
    }
    
    /* Projects section mobile improvements */
    .project-card {
        margin-bottom: 20px;
    }
    
    .project-card .card-body {
        padding: 1rem;
    }
    
    .project-card .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        margin: 2px;
    }
    
    /* Contact section mobile improvements */
    .contact-item {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .social-links a {
        font-size: 1.25rem;
        margin: 0 8px;
    }
    
    /* Form improvements for mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        margin-bottom: 15px;
    }
    
    /* Button improvements for mobile */
    .btn {
        min-height: 44px; /* Better touch target */
        font-size: 0.9rem;
    }
    
    /* Text adjustments for mobile */
    .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Spacing adjustments */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Additional mobile performance and readability improvements */
@media (max-width: 768px) {
    /* Improve text readability on mobile */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Better heading hierarchy on mobile */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
    h5 { font-size: 1.1rem !important; }
    
    /* Improve timeline on mobile */
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: 10px;
        width: 12px;
        height: 12px;
    }
    
    .timeline::before {
        left: 16px;
        width: 2px;
    }
    
    /* Better achievement cards on mobile */
    .achievement-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .achievement-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* Improve contact section on mobile */
    .contact-info h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    /* Better project tech badges on mobile */
    .project-tech .badge {
        font-size: 0.75rem;
        margin: 2px;
        padding: 0.25rem 0.5rem;
    }
    
    /* Improve card spacing on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Better button spacing in project cards */
    .card-footer .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
        margin: 0.125rem;
    }
}

/* High resolution mobile devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .navbar {
        min-height: 60px;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    #experience .col-md-5 {
        margin-bottom: 20px; /* space between video and title */
    }

    #experience .col-md-7 h4 {
        margin-top: 5px; /* subtle breathing room */
    }

    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

        /* Reduce heading gap */
    .section-title {
        margin-bottom: 1.5rem !important;
        padding-bottom: 0.75rem;
    }

        /* Remove extra gap after experience content */
    #experience .row.align-items-center.mb-5:last-child {
        margin-bottom: 0 !important;
    }

}

/* Touch interactions for mobile */
.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}
