/* Marquee Section */
.marquee-section {
    background: var(--dark-bg);
}
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    will-change: transform;
}
.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    max-width: 250px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
}
.marquee-item img {
    width: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: var(--gradient-box-d);
    
    
}

/* Fallback for missing images */
.marquee-item img[src=""], 
.marquee-item img:not([src]), 
.marquee-item img[src*="thumb.jpg"] {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.marquee-item img[src=""]::after,
.marquee-item img:not([src])::after,
.marquee-item img[src*="thumb.jpg"]::after {
    content: "🎮";
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.marquee-item span {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Hide the marquee title text since we'll show it in tooltips */
.marquee-item .marquee-title {
    display: none;
}

.marquee-item:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-2px);
    background: var(--gradient-box-d);
    border-color: var(--primary-color)
}

/* Anchor links as marquee items */
a.marquee-item {
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
}

a.marquee-item:hover {
    color: var(--text-primary);
    text-decoration: none;
}

a.marquee-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Game Image Container for Credit Badges */
.game-image-container {
    position: relative;
    display: inline-block;
}

/* Credit Badge Styling - Bottom positioned with tilt */
.credit-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    line-height: 1;
    transform: rotate(-5deg);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid var(--dark-border);
    font-family: 'Montserrat', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* SEO optimization - hide repetitive credit text from search crawlers */
.credit-badge[aria-hidden="true"] {
    visibility: visible; /* Keep visible for users */
}

.credit-badge.credited {
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(241, 137, 0, 0.4);
}

.credit-badge.uncredited {
    background: var(--gradient-box-d);
    box-shadow: var(--shadow-1);
    color: var(--text-secondary);
    border-color: var(--dark-border);
}

.credit-badge.no-credits {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: var(--shadow-1);
    color: #ffffff;
    border-color: #495057;
}

.credit-badge i {
    margin-right: 4px;
}

/* Hover effects to match site styling */
.marquee-item:hover .credit-badge {
    transform: rotate(-5deg) translateY(-2px);
    box-shadow: var(--shadow-3);
}

.marquee-item:hover .credit-badge.credited {
    box-shadow: 0 6px 20px rgba(241, 137, 0, 0.6);
}

.marquee-item:hover .credit-badge.uncredited {
    box-shadow: var(--shadow-3);
}

.marquee-item:hover .credit-badge.no-credits {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}
/* MODERN MOBILE BREAKPOINT: Small Mobile (320px-480px) */
@media (max-width: 480px) {
    /* Marquee items for small screens */
    .marquee-track {
        gap: 1.5rem;
    }

    .marquee-item {
        min-width: 155px;
        max-width: 260px;
    }
    .marquee-item img {
        width: 105px;
        height: 155px;
    }
    
    /* Credit badge adjustments for smaller screens */
    .credit-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        bottom: 4px;
        right: 6px;
        transform: rotate(-3deg);
    }
    
    .credit-badge i {
        font-size: 0.55rem;
        margin-right: 3px;
    }
    
    /* Hero content spacing for small mobile */
    .hero-content {
        padding-top: 4rem; /* Adjusted for mobile navbar height */
    }
    
    /* Timeline experience nodes positioning for small screens */
    .experience-node[data-column="0"],
    .experience-node[data-column="1"],
    .experience-node[data-column="2"] {
        left: 60px;
        width: calc(100% - 120px);
        max-width: 250px;
    }
    .experience-node::before { left: -35px; }
    .experience-node::after { left: -35px; width: 35px; }
    
    /* Typography adjustments for small screens */
    .hero-section h1 {
        font-size: 1.4rem; /* Significantly reduced for 320px */
        line-height: 1.2;
    }

    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    /* Improve typing text layout - prevent wrapping and layout shifts */
    .header-caption {
        font-size: 1.4rem; /* Match h1 size */
        line-height: 1.2;
        min-height: 1.68rem; /* Fixed height: 1.4rem * 1.2 line-height */
    }
    
    /* Fixed container for typing roles to prevent layout shifts */
    #typing-roles {
        display: inline;
        min-height: 1.4rem; /* Match font size for stability */
    }
    
    /* Adjust typing text to fit container */
    .typing-text {
        font-size: inherit;
        line-height: inherit;
    }
    
    /* Scale down lead paragraph on very small screens */
    .lead {
        font-size: 1rem; /* Reduced from Bootstrap's default ~1.25rem */
        line-height: 1.4; /* Improved readability */
    }

    /* Component padding adjustments */
    .skill-item,
    .service-item {
        padding: 1.5rem;
    }

    /* General section spacing for small mobile */
    section {
        padding: 20px 0 !important;
    }
    
    /* === NAVBAR FIXES FOR VERY SMALL SCREENS (320px) === */
    /* Reduce navbar brand font size and spacing */
    .navbar-brand {
        font-size: 1.2rem; /* Reduced from 1.5rem */
        gap: 0.5rem; /* Reduced from 0.75rem */
    }
    
    /* Make MSGD logo smaller on very small screens */
    .navbar-brand .msgd-logo-nav {
        width: 36px; /* Reduced from 48px */
        height: 36px;
        font-size: 0.65rem; /* Reduced from 0.75rem */
    }
    
    /* Ensure navbar stays on one line */
    .navbar .container {
        flex-wrap: nowrap;
    }
    
    /* Reduce navbar toggler size slightly if needed */
    .navbar-toggler {
        padding: 0.2rem 0.5rem;
        font-size: 1rem;
    }
}
/* Custom CSS for Mike.Game Portfolio */

/* Authentic WordPress Theme Colors */
:root {
    /* Primary WordPress Theme Colors */
    --primary-color: #f18900;
    --secondary-color: #ff9101;
    --accent-color: #cc872d;
    
    /* Background Colors */
    --dark-bg: #212428;
    --dark-surface: #18161C;
    --dark-card: #1c1e22;
    --dark-border: #2d3748;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d3d4d6;
    --text-muted: #9da8b8;
    --color-subtitle: #f18900;
    --color-heading: #ffffff;
    
    /* WordPress Shadows */
    --shadow-1: 5px 5px 10px #1c1e22, -5px -5px 10px #262a2e;
    --shadow-3: 5px 5px 15px #323436, -5px -5px 15px #383c41;
    --shadow-white-2: 5px 5px 15px #bbbbbb, -5px -5px 15px #ffffff;
    
    /* WordPress Gradients */
    /* Core Brand Gradients - Consolidated from 3 to 2 variants */
    --gradient-primary: linear-gradient(135deg, #f18900 0%, #ff9101 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9101 0%, #cc872d 100%);
    
    /* UI Component Gradients */
    --gradient-box-w: linear-gradient(145deg, hsl(202, 10%, 22%), rgba(255,255,255,0.5));
    --gradient-box-d: linear-gradient(145deg, #212428, rgba(22,24,28,1));
    
    /* Typography Variables */
    --font-size-b1: 16px;
    --font-size-b2: 20px;
    --font-size-b3: 12px;
    --line-height-b1: 1.6;
    --line-height-b2: 1.5;
    
    /* Additional Variables */
    --color-error: #f4282d;
    --color-border: #E6E6E6;
}

/* WordPress Authentic Styles */

/* Hero Section Enhancements */
.hero-section {
    background: var(--dark-bg);
    min-height: 60vh;
    position: relative;
}

.subtitle {
    color: var(--color-subtitle) !important;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
}

.header-caption {
    font-weight: 600;
}

#typing-roles {
    position: relative;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.8rem;
    max-width: 700px;
    overflow: visible;
    padding: 10px 0 5px 0;
}

/* Base icon class - shared styles for all icon types */
/* ===========================================
   ICON SYSTEM - Base class with variants
   ========================================== */

/* Base icon class - shared foundation for all icon types */
.icon-base {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--gradient-box-d);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-size: 2rem;
    color: var(--primary-color);
    z-index: 10;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

/* Base hover effects for all icons */
.icon-base:hover {
    transform: translateY(-3px);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px 0 rgba(241, 137, 0, 0.4);
}

/* Skill icons - extend base with non-interactive behavior */
.skill-icon {
    cursor: default;
}

/* Ensure FontAwesome icons are perfectly centered */
.icon-base i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

/* Smaller icons for 2x5 grid */
.skills-grid-2x5 .skill-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

/* Prevent hover effects during entrance animations for all icon types */
.icon-base.animate-on-load:hover,
.icon-base.fade-in-up:hover {
    transform: none !important;
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Skills and Social Section Layout */
.skills-social-section {
    margin-top: 0.5rem;
}

.skills-section h5,
.social-section h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Social Icons in horizontal layout for Find Me On */
.social-section .social-icons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.social-section .social-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

/* Social Media Feed */
.social-feed-section {
    margin-top: 2rem;
}

.social-feed-section h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-feed {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    background: var(--dark-card);
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    align-items: start;
    margin-right: 1rem;
}

.social-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.social-post-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.social-post-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

.social-feed::-webkit-scrollbar {
    width: 6px;
}

.social-feed::-webkit-scrollbar-track {
    background: var(--dark-border);
    border-radius: 3px;
}

.social-feed::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.social-feed::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.social-post {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    height: fit-content;
    cursor: pointer;
}

.social-post-link:hover .social-post {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 1, 79, 0.1);
}

.social-post.pinned {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--dark-surface) 0%, rgba(255, 220, 96, 0.05) 100%);
}

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

.platform-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.platform-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.pin-indicator {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-content p {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    white-space: pre-line;
}

.post-image {
    margin-top: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Social feed animations */
.social-post.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* MODERN TABLET BREAKPOINT: Tablets and Mobile (600px-768px) */
@media (max-width: 768px) {
    /* Hide social feed section on smaller devices for better layout */
    .social-feed-section {
        display: none !important;
    }
    
    .skills-grid-2x5 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        max-width: 350px;
    }
    
    .skills-social-section .row {
        flex-direction: column;
    }
    
    .skills-social-section .col-xl-4 {
        margin-top: 1.5rem;
    }
    
    .social-feed {
        max-height: 150px;
        grid-template-columns: 1fr;
    }
    
    /* About section image adjustments */
    .about-image {
        max-width: 350px;
    }
    
    .about-placeholder {
        max-width: 330px;
        height: 220px;
    }
    
    /* Portfolio navigation adjustments */
    .portfolio-carousel-wrapper {
        padding: 0 50px; /* Smaller padding on mobile */
    }
    
    .portfolio-slide {
        width: 100%; /* 1 card on mobile */
    }
    
    .portfolio-nav {
        width: 40px;
        height: 40px;
    }
    
    .portfolio-nav-prev {
        left: 5px;
    }
    
    .portfolio-nav-next {
        right: 5px;
    }
    
    .social-post {
        padding: 0.5rem;
    }

    /* Hero section mobile adjustments */
    .hero-section {
        text-align: center;
        padding: 20px 0 60px 0;
    }

    .hero-placeholder {
        width: 200px;
        height: 200px;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .stats-row {
        justify-content: center;
        text-align: center;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Lightbox mobile adjustments */
    .lightbox-container {
        margin: 1rem;
        max-height: 95vh;
    }

    .lightbox-content {
        padding: 2rem 1.5rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: -20px;
    }

    .lightbox-next {
        right: -20px;
    }

    /* Service detail mobile adjustments */
    .service-detail h3 {
        font-size: 1.5rem;
    }

    .service-detail-visual {
        font-size: 3rem;
        min-height: 100px;
    }

    .service-detail-visual img {
        max-height: 250px;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* Navigation mobile adjustments */
    .section-navigation {
        bottom: 1rem;
        right: 1rem;
    }

    .section-navigation.offset-for-timeline {
        right: 1rem; /* Reset offset on mobile */
    }

    .section-nav-btn {
        width: 52px;
        height: 52px;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .section-nav-btn:hover,
    .section-navigation:hover .section-nav-btn {
        width: 150px;
        padding: 0.8rem 1.2rem;
    }

    .section-nav-btn:hover .section-nav-text,
    .section-navigation:hover .section-nav-btn .section-nav-text {
        max-width: 120px;
    }
    
    /* Mobile auto-collapsed state */
    .section-nav-btn.auto-collapsed {
        width: 52px !important;
        height: 52px !important;
        padding: 0.8rem !important;
        font-size: 0.8rem !important;
    }

    /* Timeline mobile adjustments */
    .experience-timeline-wrapper {
        margin-top: 0.5rem;
    }

    .year-labels {
        display: none;
    }

    .timeline-container.mobile-layout {
        flex-direction: column;
    }
}

/* Hero image positioning */
.hero-image {
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Hero Image Container - styled like marquee items */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-box-d);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    padding: 1rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    max-width: 420px;
    margin-left: auto;
}

/* About Image Container - styled like hero image */
.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-box-d);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    padding: 1rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    max-width: 620px;
    margin-right: auto;
}

.hero-photo {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin: 0;
}

.hero-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--gradient-box-d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: var(--shadow-1);
    margin-left: auto;
    
    /* === PORTFOLIO MOBILE (was 480px) === */
    .portfolio-carousel-wrapper {
        padding: 0 45px;
    }
    
    .portfolio-nav {
        width: 35px;
        height: 35px;
    }
}

/* OVERRIDE: Very Small Mobile Screens (320px-480px) - Must come after 768px query */
@media (max-width: 480px) {
    /* Center skills section since hero image is hidden */
    .skills-social-section .col-xl-8 {
        text-align: center;
        margin: 0 auto;
    }
    
    /* Center social section since hero image is hidden */
    .skills-social-section .col-xl-4 {
        text-align: center;
        margin: 0 auto;
    }
    
    /* Center social icons container */
    .social-section .social-icons {
        justify-content: center !important; /* Override flex-start */
        gap: 0.75rem !important;
    }
    
    /* Override skills grid for very small screens - use 3 columns */
    .skills-grid-2x5 {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 220px !important; /* Slightly larger for 3 columns */
        gap: 0.8rem !important;
        margin: 0 auto; /* Center the grid */
    }
    
    /* Center the 10th skill icon in the 2nd column of 4th row */
    .skills-grid-2x5 .skill-icon:nth-child(10) {
        grid-column: 2; /* Place in middle column */
    }
    
    /* Override skill icon size */
    .skills-grid-2x5 .skill-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.4rem !important;
    }
    
    /* Override social icon size */
    .social-section .social-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.4rem !important;
    }
    
    /* === NAVBAR COLLAPSE POSITIONING FIXES === */
    /* Simple fix: Force dropdown to stay within viewport */
    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        z-index: 9999 !important;
        background: var(--dark-bg) !important;
        border: 1px solid var(--dark-border) !important;
        border-radius: 0.5rem !important;
        margin: 0 !important;
        padding: 0.5rem !important;
    }
}

/* Skills section spacing for medium-small screens (770px-991px) */
@media (max-width: 991px) and (min-width: 769px) {
    .skills-section {
        margin-bottom: 2rem; /* Add space after skills section when stacked above social section */
    }
}

/* Center skills and social icons when hero image is hidden and on smaller screens */
@media (max-width: 768px) {
    .skills-section {
        text-align: center;
        margin-bottom: 2rem; /* Add space after skills section to prevent overlap with social section */
    }
    
    .skills-grid-2x5 {
        margin: 0 auto;
        justify-content: center;
    }
    
    .social-section {
        text-align: center;
    }
    
    .social-section .social-icons {
        justify-content: center !important;
    }
}

@media (max-width: 1199px) {
    /* Hide hero image below lg breakpoint to prevent layout issues */
    .hero-image {
        display: none !important;
    }
}

/* MODERN LAPTOP BREAKPOINT: Medium Laptops (992px-1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    /* Keep skills/social side-by-side even without hero image */
    .hero-content {
        padding-top: 5rem; /* Ensure header text is visible above fixed navbar */
    }

    /* Ensure skills and social stay side-by-side using flexbox */
    .skills-social-section .row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .skills-social-section .col-lg-8 {
        flex: 0 0 66.666667%; /* 8/12 columns */
    }
    
    .skills-social-section .col-lg-4 {
        flex: 0 0 33.333333%; /* 4/12 columns */
    }

    /* Add some top padding to social section to align better with skills */
    .social-section {
        padding-top: 1rem;
    }

    .about-image {
        justify-content: center !important;
        margin-bottom: 3rem;
        margin-right: 0;
        max-width: 420px;
    }
    
    .about-placeholder {
        width: 100%;
        max-width: 400px;
        height: 267px;
    }
    
    .hero-placeholder {
        margin-left: 0;
    }

    .social-feed {
        max-height: 200px;
        grid-template-columns: 1fr;
    }

    .skills-social-section .row {
        flex-direction: column;
    }
    
    .skills-social-section .col-xl-4 {
        margin-top: 2rem;
    }
    
    /* === NAVBAR RESPONSIVE (was 991px) === */
    .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.5rem 0;
    }
    
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: none;
    }
}

/* Social icons - extend base icon with interactive behavior */
.social-icon {
    text-decoration: none;
    cursor: pointer;
}

.social-icon:hover {
    text-decoration: none;
}

.social-icon:active {
    transform: scale(1.05);
}

/* Titles within About Section - No longer standalone */
.about-section .subtitle {
    display: block;
    margin-bottom: 0.5rem;
}

.about-section .marquee-wrapper {
    margin-top: 1rem;
}

/* Skills Section */
.skills-grid-2x5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 450px;
    overflow: visible;
}
body {
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    line-height: var(--line-height-b1);
    color: var(--text-primary);
    background-color: var(--dark-bg);
    margin: 0;
    padding: 0;
    font-size: var(--font-size-b1);
}

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

.bg-dark {
    background-color: var(--dark-surface) !important;
}

.bg-light {
    background-color: var(--dark-card) !important;
}

.text-light {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Base button class with shared styling */
.btn-base {
    background: var(--gradient-box-d);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-base:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
    color: white !important;
    text-decoration: none;
    border: 1px solid var(--primary-color);
}


/* btn-outline-primary uses base styles with border - no additional rules needed */

.btn-outline-primary:hover {
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dark-border);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* MSGD Logo in navbar - slightly smaller for better proportions */
.navbar-brand .msgd-logo-nav {
    width: 48px;
    height: 48px;
    font-size: 0.75rem;
    outline: 2px solid #000;
    outline-offset: 0.5px;
    border: 2px solid var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: var(--dark-bg) url('../images/PlayStation.png') no-repeat 30% center;
    background-size: 40%;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding: 10px 0 20px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 36, 40, 0.9), rgba(24, 22, 28, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4rem; /* Add top padding to account for fixed navbar */
}

/* Adjust hero padding for different screen sizes */
@media (max-width: 1399px) {
    .hero-content {
        padding-top: 5rem; /* Increase padding on smaller screens where overlap is worse */
    }
}

@media (max-width: 991px) and (min-height: 968px) {
    .hero-content {
        padding-top: 4rem; /* Slightly less padding on medium screens with good height */
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding-top: 4rem; /* Smaller padding on mobile screens */
        padding-bottom: 2rem;
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-left: 1rem;
}

.typing-text {
    color: var(--primary-color);
    min-height: 2rem;
}

.hero-buttons .btn {
    padding: 12px 24px;
    /* All other styling inherited from .btn-base */
}

.hero-buttons .btn:hover {
    transform: translateY(-2px); /* Slightly less movement than base */
}

.typing-text {
    color: var(--secondary-color);
    min-height: 2rem;
}


.skill-item {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--dark-border);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.progress-bar {
    transition: width 2s ease-in-out;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--dark-bg) url('../images/Xbox.png') no-repeat 70% center;
    background-size: 40%;
    position: relative;
    overflow: hidden;
}

/* Reduce padding on mobile for better visibility - override Bootstrap py-5 */
@media (max-width: 767.98px) {
    .about-section.py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 36, 40, 0.9), rgba(24, 22, 28, 0.85));
    z-index: 1;
}

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

/* Expandable text for mobile */
.about-text-container {
    position: relative;
}

.about-text {
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    overflow: hidden;
}

/* On mobile, truncate text initially */
@media (max-width: 767.98px) {
    .about-text:not(.expanded) {
        max-height: 4.5em; /* Approximately 3 lines */
        position: relative;
    }
    
    .about-text:not(.expanded)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1.5em;
        background: linear-gradient(transparent, var(--card-bg));
        pointer-events: none;
    }
    
    .about-text.expanded {
        max-height: none;
    }
    
    .about-text.expanded::after {
        display: none;
    }
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.expand-btn:hover {
    transform: translateY(-2px);
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

.stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem !important;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

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

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--dark-surface);
}

.portfolio-item {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    background: var(--gradient-box-d);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--dark-border);
}

.portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

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

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

/* Portfolio Carousel */
.portfolio-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0; /* Add vertical padding to prevent clipping on hover */
}

.portfolio-carousel-wrapper {
    overflow: hidden;
    padding: 10px 60px; /* Space for navigation arrows and hover transform */
    margin: -10px 0; /* Compensate for the padding to maintain visual spacing */
}

.portfolio-carousel {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 2rem;
}

.portfolio-slide {
    flex: 0 0 auto;
    width: calc(50% - 1rem); /* 2 cards on large screens */
    padding: 5px 0; /* Add vertical padding to prevent clipping of hover effects */
}

.portfolio-slide .portfolio-item {
    height: 100%;
    min-height: 400px; /* Set minimum height to make cards taller */
    margin: 0;
    /* Apply service item styling to match the design */
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.portfolio-slide .portfolio-item:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: var(--gradient-box-d);
}

.portfolio-slide .portfolio-item .card-body {
    padding: 2.5rem; /* Increased from 2rem for more spacious feel */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 100%;
}

.portfolio-slide .portfolio-item .card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.portfolio-slide .portfolio-item .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio-slide .portfolio-item .badge {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    align-self: center;
}

/* Override Bootstrap badge colors to match website theme */
.portfolio-slide .portfolio-item .badge.bg-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none;
}

/* Portfolio Icon (replacing placeholder) */
.portfolio-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    align-self: center;
}

.portfolio-slide .portfolio-item:hover .portfolio-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Portfolio Click Hint */
.portfolio-click-hint {
    color: var(--primary-color);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.portfolio-slide .portfolio-item:hover .portfolio-click-hint {
    opacity: 1;
    transform: translateY(-2px);
}

.portfolio-click-hint i {
    font-size: 0.8rem;
}

.portfolio-slide .portfolio-item .btn {
    margin-top: auto;
    transition: all 0.3s ease;
    display: none; /* Hide the learn more button to match service cards */
}

/* Override Bootstrap button colors to match website theme */
.portfolio-slide .portfolio-item .btn.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.portfolio-slide .portfolio-item .btn.btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Navigation Arrows */
.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-2);
}

.portfolio-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-3);
}

.portfolio-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.portfolio-nav-prev {
    left: 10px;
}

.portfolio-nav-next {
    right: 10px;
}

/* Pagination Dots */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active,
.portfolio-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Capabilities Section */
.services-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.service-item {
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
    background: var(--gradient-box-d) !important;
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
    background-color: var(--dark-surface);
    min-height: auto;
    overflow: visible;
}

/* Dynamic height when timeline is active */
.experience-section:has(.experience-timeline-wrapper.active) {
    padding-bottom: 120px; /* Extra padding when timeline is open */
}

/* Alternative approach using class-based detection */
.experience-section.timeline-active {
    padding-bottom: 120px; /* Extra padding when timeline is open */
}

.experience-toggle {
    padding: 12px 24px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    /* All other styling inherited from .btn-base */
    animation: pulse-glow 3s ease-in-out infinite;
}

.experience-toggle.active {
    border: 1px solid var(--primary-color);
    /* All other styling inherited from .btn-base */
}

/* Pulsing glow animation to draw attention */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 140, 66, 1), 0 0 0 0 rgba(255, 140, 66, 0.5);
    }
}

/* experience-toggle uses base hover styles and active state styling */

.experience-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.experience-timeline-wrapper {
    margin-top: 2rem; /* Reduced from 3rem by 1/3rd */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.experience-timeline-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.experience-timeline {
    position: relative;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0; /* Removed top and bottom padding to reduce space */
    min-height: 400px;
    height: auto !important; /* Allow height to grow with content, will be overridden by JavaScript */
}

.timeline-container {
    position: relative;
    width: 100%; /* Use full width instead of fixed width */
    min-width: 100%; /* Minimum width should be 100% of parent */
    height: 600px !important; /* Default height, will be overridden by JavaScript */
    min-height: 600px; /* Minimum height for when timeline is empty */
    padding: 0 2rem 2rem 0; /* Add bottom padding and left padding for year labels */
    overflow-x: visible; /* Changed from auto to visible since we want it to fit */
    overflow-y: visible; /* Ensure vertical overflow is visible */
    display: flex;
    z-index: 1; /* Ensure timeline container has a base stacking context */
}

/* Year Labels */
.year-labels {
    position: absolute;
    left: 10px; /* Position within the timeline container, visible */
    top: 0;
    width: 70px;
    height: 100%;
    z-index: 5; /* Lower than experience nodes (z-index: 10) */
}

.year-label {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
    white-space: nowrap;
    text-align: center;
    width: 60px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.3);
    visibility: visible;
    opacity: 1;
}

/* Horizontal dotted lines for year alignment */
.year-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 66vw;
    height: 1px;
    border-top: 1px dotted rgba(255, 107, 53, 0.3);
    z-index: 1;
    pointer-events: none;
}

.timeline-grid {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: 0;
}

/* Dynamic vertical timeline branches - created via JavaScript */
/* All column lines are now created dynamically by JavaScript */

/* Experience Timeline Nodes - Simplified */
.experience-node {
    position: absolute;
    width: 340px;
    min-height: 60px;
    background: var(--gradient-box-d);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--dark-border);
    transition: all 0.4s ease;
    z-index: 10;
    opacity: 0;
    transform: translateX(-20px);
    overflow: visible;
    cursor: pointer;
}

/* Column positioning - responsive percentage-based positioning */
.experience-node[data-column="0"] { left: 16.1%; }
.experience-node[data-column="1"] { left: 47.4%; }
.experience-node[data-column="2"] { left: 78.65%; }

/* Connection dots */
.experience-node::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -37px;
    width: 14px;
    height: 14px;
    background: #666; /* Default gray background */
    border-radius: 50% !important; /* Force circular shape */
    border: 3px solid var(--dark-surface);
    box-shadow: var(--shadow-1);
    z-index: 15;
    transition: all 0.3s ease;
}

/* Ensure background colors are applied with higher specificity */
.experience-node[data-column="0"]::before { 
    background: #ff6b35 !important; 
    border-radius: 50% !important;
}
.experience-node[data-column="1"]::before { 
    background: #ff8c42 !important; 
    border-radius: 50% !important;
}
.experience-node[data-column="2"]::before { 
    background: #ffab63 !important; 
    border-radius: 50% !important;
}

/* Connection lines */
.experience-node::after {
    content: '';
    position: absolute;
    top: 26px;
    left: -22px;
    width: 20px;
    height: 2px;
    background: #666; /* Default gray background */
    z-index: 8;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Ensure line colors are applied with higher specificity */
.experience-node[data-column="0"]::after { 
    background: #ff6b35 !important; 
}
.experience-node[data-column="1"]::after { 
    background: #ff8c42 !important; 
}
.experience-node[data-column="2"]::after { 
    background: #ffab63 !important; 
}

/* Multi-row spanning styles - each row represents approximately 1 year (1/4 size for finer control) */
.experience-node[data-height="2"] { min-height: 90px; }  /* was 200px, now ~45px per height unit */
.experience-node[data-height="3"] { min-height: 135px; } /* was 300px */
.experience-node[data-height="4"] { min-height: 180px; } /* was 400px */
.experience-node[data-height="5"] { min-height: 225px; } /* was 500px */
.experience-node[data-height="6"] { min-height: 270px; } /* was 600px */
.experience-node[data-height="7"] { min-height: 315px; } /* was 700px */
.experience-node[data-height="8"] { min-height: 360px; } /* was 800px */
.experience-node[data-height="9"] { min-height: 405px; } /* was 900px */
.experience-node[data-height="10"] { min-height: 450px; } /* was 1000px */
.experience-node[data-height="11"] { min-height: 495px; } /* was 1100px */
.experience-node[data-height="12"] { min-height: 540px; } /* was 1200px */
.experience-node[data-height="13"] { min-height: 585px; } /* 45px * 13 */
.experience-node[data-height="14"] { min-height: 630px; } /* 45px * 14 */
.experience-node[data-height="15"] { min-height: 675px; } /* 45px * 15 */
.experience-node[data-height="16"] { min-height: 720px; } /* 45px * 16 */
.experience-node[data-height="17"] { min-height: 765px; } /* 45px * 17 */
.experience-node[data-height="18"] { min-height: 810px; } /* 45px * 18 */
.experience-node[data-height="19"] { min-height: 855px; } /* 45px * 19 */
.experience-node[data-height="20"] { min-height: 900px; } /* 45px * 20 */
.experience-node[data-height="21"] { min-height: 945px; } /* 45px * 21 */
.experience-node[data-height="22"] { min-height: 990px; } /* 45px * 22 */
.experience-node[data-height="23"] { min-height: 1035px; } /* 45px * 23 */
.experience-node[data-height="24"] { min-height: 1080px; } /* 45px * 24 */
.experience-node[data-height="25"] { min-height: 1125px; } /* 45px * 25 */
.experience-node[data-height="26"] { min-height: 1170px; } /* 45px * 26 */
.experience-node[data-height="27"] { min-height: 1215px; } /* 45px * 27 */
.experience-node[data-height="28"] { min-height: 1260px; } /* 45px * 28 */
.experience-node[data-height="29"] { min-height: 1305px; } /* 45px * 29 */
.experience-node[data-height="30"] { min-height: 1350px; } /* 45px * 30 */
.experience-node[data-height="31"] { min-height: 1395px; } /* 45px * 31 */
.experience-node[data-height="32"] { min-height: 1440px; } /* 45px * 32 */
.experience-node[data-height="33"] { min-height: 1485px; } /* 45px * 33 */
.experience-node[data-height="34"] { min-height: 1530px; } /* 45px * 34 */
.experience-node[data-height="35"] { min-height: 1575px; } /* 45px * 35 */
.experience-node[data-height="36"] { min-height: 1620px; } /* 45px * 36 */
.experience-node[data-height="37"] { min-height: 1665px; } /* 45px * 37 */
.experience-node[data-height="38"] { min-height: 1710px; } /* 45px * 38 */
.experience-node[data-height="39"] { min-height: 1755px; } /* 45px * 39 */
.experience-node[data-height="40"] { min-height: 1800px; } /* 45px * 40 */

/* Hover expansion effects - expand nodes to use more horizontal space */
.experience-node:hover:not(.hover-disabled),
.experience-node.expanded-node {
    z-index: 100 !important; /* Bring to front when hovered - much higher than connection elements */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    /* Preserve original height during hover to prevent flickering on tall nodes */
}

/* Prevent hover expansion when hover is disabled (e.g., when top of large node is not visible) */
.experience-node.hover-disabled:hover {
    cursor: default;
}

/* Special styling for expanded nodes via hyperlink */
.experience-node.expanded-node {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 20px 40px rgba(255, 145, 1, 0.3) !important;
    animation: expandedNodePulse 2s ease-in-out;
}

@keyframes expandedNodePulse {
    0% { 
        box-shadow: 0 20px 40px rgba(255, 145, 1, 0.3);
        border-color: var(--secondary-color);
    }
    50% { 
        box-shadow: 0 25px 50px rgba(255, 145, 1, 0.5);
        border-color: var(--primary-color);
    }
    100% { 
        box-shadow: 0 20px 40px rgba(255, 145, 1, 0.3);
        border-color: var(--secondary-color);
    }
}

/* Hide connection dots and lines on hover for all columns */
.experience-node:hover:not(.hover-disabled)::before,
.experience-node.expanded-node::before {
    opacity: 0 !important; /* Hide the dot completely on hover */
    background: var(--secondary-color) !important;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 220, 96, 0.6);
}

.experience-node:hover:not(.hover-disabled)::after,
.experience-node.expanded-node::after {
    opacity: 0 !important; /* Hide the line completely on hover */
    background: var(--secondary-color) !important;
    height: 3px;
    box-shadow: 0 0 10px rgba(255, 220, 96, 0.4);
}

/* Keep pseudo-elements normal when hover is disabled */
.experience-node.hover-disabled:hover::before,
.experience-node.hover-disabled:hover::after {
    opacity: initial !important;
    background: initial !important;
    transform: initial !important;
    box-shadow: initial !important;
    height: initial !important;
}

/* Desktop-only hover transformations */
@media (min-width: 769px) {
    /* Column 0 (Left) - Expand rightward on hover */
    .experience-node[data-column="0"]:hover:not(.hover-disabled),
    .experience-node[data-column="0"].expanded-node {
        width: 950px !important;
        transform: translateX(-20px) !important;
    }

    /* Column 1 (Center) - Expand in both directions on hover */
    .experience-node[data-column="1"]:hover:not(.hover-disabled),
    .experience-node[data-column="1"].expanded-node {
        width: 950px !important;
        transform: translateX(-241px) !important;
    }

    /* Column 2 (Right) - Expand leftward on hover */
    .experience-node[data-column="2"]:hover:not(.hover-disabled),
    .experience-node[data-column="2"].expanded-node {
        width: 950px !important;
        transform: translateX(-482px) !important; 
    }

    /* Keep connection dots and lines in place during hover */
    /* Column 0 - No compensation needed since it expands rightward */
    .experience-node[data-column="0"]:hover:not(.hover-disabled)::before,
    .experience-node[data-column="0"].expanded-node::before {
        z-index: 1 !important; /* Keep dots behind the hovered node */
    }
    .experience-node[data-column="0"]:hover:not(.hover-disabled)::after,
    .experience-node[data-column="0"].expanded-node::after {
        z-index: 1 !important; /* Keep lines behind the hovered node */
    }

    /* Column 1 - Compensate for bi-directional expansion */
    .experience-node[data-column="1"]:hover:not(.hover-disabled)::before,
    .experience-node[data-column="1"].expanded-node::before {
        left: 184px !important; /* Original -37px + 221px compensation */
        z-index: 1 !important; /* Keep dots behind the hovered node */
    }
    .experience-node[data-column="1"]:hover:not(.hover-disabled)::after,
    .experience-node[data-column="1"].expanded-node::after {
        left: 199px !important; /* Original -22px + 221px compensation */
        z-index: 1 !important; /* Keep lines behind the hovered node */
    }

    /* Column 2 - Compensate for leftward expansion */
    .experience-node[data-column="2"]:hover:not(.hover-disabled)::before,
    .experience-node[data-column="2"].expanded-node::before {
        left: 385px !important; /* Original -37px + 422px compensation */
        z-index: 1 !important; /* Keep dots behind the hovered node */
    }
    .experience-node[data-column="2"]:hover:not(.hover-disabled)::after,
    .experience-node[data-column="2"].expanded-node::after {
        left: 400px !important; /* Original -22px + 422px compensation */
        z-index: 1 !important; /* Keep lines behind the hovered node */
    }
}

/* Hover scroll fix for very tall nodes or nodes that extend off-screen */
.experience-node.hover-scroll-fix:hover,
.experience-node.hover-scroll-fix.expanded-node {
    overflow-y: auto !important; /* Add scroll if content exceeds node height */
    /* Keep the original height but allow content to scroll within it */
}

/* Content styling */
.experience-node .node-header .job-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: font-size 0.4s ease;
}

.experience-node .node-header .company-name {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-node .project-name {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.25rem;
    color: #6c757d !important;
}

.experience-node .project-name i {
    color: #ff6b35;
}

.experience-node .client-name {
    font-size: 0.7rem;
    font-style: italic;
    margin-bottom: 0.25rem;
    color: #6c757d !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.experience-node .client-name i {
    color: #17a2b8;
}

.experience-node .date-range {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    opacity: 0.8;
}

.experience-node .node-description,
.experience-node .node-technologies,
.experience-node .node-actions {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0;
}

.experience-node .node-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Ensure list elements within descriptions are properly hidden when not hovered */
.experience-node .node-description ul,
.experience-node .node-description ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.experience-node .node-description li {
    margin: 0.5rem 0;
    padding-left: 0;
}

/* LinkedIn Button Styles */
.experience-node .node-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.experience-node .linkedin-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 2px 4px rgba(0, 119, 181, 0.2);
}

.experience-node .linkedin-btn:hover {
    background: linear-gradient(135deg, #005885, #004666);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 119, 181, 0.3);
}

.experience-node .linkedin-btn i {
    margin-right: 6px;
}

.experience-node .node-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--dark-border);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--gradient-primary);
    color: white;
}

/* Hover effects */

.experience-node:hover:not(.hover-disabled) .client-name,
.experience-node.expanded-node .client-name {
    opacity: 1;
    transform: translateY(0);
    max-height: 2rem;
}

.experience-node:hover:not(.hover-disabled) .node-description,
.experience-node:hover:not(.hover-disabled) .node-technologies,
.experience-node:hover:not(.hover-disabled) .node-actions,
.experience-node.expanded-node .node-description,
.experience-node.expanded-node .node-technologies,
.experience-node.expanded-node .node-actions {
    opacity: 1;
    max-height: none;
    margin-top: 1rem;
}

.experience-node:hover:not(.hover-disabled) .node-header,
.experience-node.expanded-node .node-header {
    margin-bottom: 0.75rem;
}

.experience-node:hover:not(.hover-disabled) .node-header .job-title,
.experience-node.expanded-node .node-header .job-title {
    font-size: 1.2rem;
}

/* Desktop Timeline Ranges - Modern Breakpoints */
/* Large Desktops: 1366px+ */
@media (min-width: 1366px) {
    .experience-node { width: 320px; } /* Optimal size for large screens */
    .experience-node:hover:not(.hover-disabled) { width: 480px; } 
    .timeline-container { min-width: 100%; }
}

/* Standard Desktops: 1281px-1365px */
@media (max-width: 1365px) and (min-width: 1281px) {
    .experience-node { width: 280px; } 
    .experience-node:hover:not(.hover-disabled) { width: 414px; } 
    .timeline-container { min-width: 100%; }
}

/* Small Desktops/Large Laptops: 1025px-1280px */
@media (max-width: 1280px) and (min-width: 1025px) {
    .experience-node { width: 240px; } 
    .experience-node:hover:not(.hover-disabled) { width: 368px; } 
    .experience-node[data-column="0"] { left: 10.1%; } 
    .experience-node[data-column="1"] { left: 41.3%; } 
    .experience-node[data-column="2"] { left: 72.2%; } 
    .timeline-container { min-width: 100%; }
    .year-labels { left: -15px;}
}

@media (max-width: 768px) {
    .timeline-container { 
        display: block !important; /* Show timeline container on mobile */
        position: relative;
        width: 100%;
        min-height: 400px; /* Minimum height, will be set dynamically by JavaScript */
        padding: 1rem 1rem 2rem 1rem; /* Reduced bottom padding since JS will handle height */
        overflow: visible;
    }
    
    /* Mobile timeline: single column stack */
    .experience-node {
        position: relative !important; /* Change from absolute to relative */
        left: auto !important; /* Remove left positioning */
        top: auto !important; /* Remove top positioning */
        width: 100% !important; /* Full width */
        max-width: 350px !important; /* Maximum width for readability */
        margin: 0 auto 1.5rem auto !important; /* Center and add bottom margin */
        padding: 1rem !important;
        font-size: 0.9rem;
        min-height: auto !important; /* Override all height rules */
        height: auto !important; /* Force auto height */
        display: block !important; /* Ensure block display */
        opacity: 1 !important; /* Always visible on mobile */
        transform: none !important; /* Remove transform effects */
        cursor: pointer !important; /* Keep cursor pointer for tap interaction */
        z-index: auto !important; /* Reset z-index */
    }
    
    /* Override all specific height rules on mobile */
    .experience-node[data-height="1"],
    .experience-node[data-height="2"],
    .experience-node[data-height="3"],
    .experience-node[data-height="4"],
    .experience-node[data-height="5"],
    .experience-node[data-height="6"],
    .experience-node[data-height="7"],
    .experience-node[data-height="8"],
    .experience-node[data-height="9"],
    .experience-node[data-height="10"],
    .experience-node[data-height="11"],
    .experience-node[data-height="12"],
    .experience-node[data-height="13"],
    .experience-node[data-height="14"],
    .experience-node[data-height="15"],
    .experience-node[data-height="16"],
    .experience-node[data-height="17"],
    .experience-node[data-height="18"],
    .experience-node[data-height="19"],
    .experience-node[data-height="20"],
    .experience-node[data-height="21"],
    .experience-node[data-height="22"],
    .experience-node[data-height="23"],
    .experience-node[data-height="24"],
    .experience-node[data-height="25"],
    .experience-node[data-height="26"],
    .experience-node[data-height="27"],
    .experience-node[data-height="28"],
    .experience-node[data-height="29"],
    .experience-node[data-height="30"],
    .experience-node[data-height="31"],
    .experience-node[data-height="32"],
    .experience-node[data-height="33"],
    .experience-node[data-height="34"],
    .experience-node[data-height="35"],
    .experience-node[data-height="36"],
    .experience-node[data-height="37"],
    .experience-node[data-height="38"],
    .experience-node[data-height="39"],
    .experience-node[data-height="40"] {
        min-height: auto !important; /* Force all nodes to auto height on mobile */
        height: auto !important; /* Force auto height for all */
        position: relative !important; /* Ensure relative positioning */
        left: auto !important; /* Remove left positioning */
        top: auto !important; /* Remove top positioning */
        width: 100% !important; /* Force uniform width */
        max-width: 350px !important; /* Maximum width for readability */
    }
    
    /* Hide content by default on mobile - show only on modal */
    .experience-node .client-name,
    .experience-node .node-description,
    .experience-node .node-technologies,
    .experience-node .node-actions {
        opacity: 0 !important; /* Hidden by default */
        max-height: 0 !important; /* Collapsed */
        margin-top: 0 !important; /* No spacing */
        overflow: hidden !important; /* Hide overflow */
        transition: none !important; /* No animation on mobile */
    }
    
    /* Disable hover effects on mobile - use tap for modal instead */
    .experience-node:hover { 
        width: 100% !important; /* Keep original width - no expansion */
        max-width: 350px !important;
        transform: none !important; /* No transform on hover */
        z-index: auto !important; /* Reset z-index */
        box-shadow: var(--shadow-1) !important; /* Keep original shadow */
        border-color: var(--dark-border) !important; /* Keep original border */
        left: auto !important; /* Prevent leftward movement */
        top: auto !important; /* Prevent vertical movement */
        position: relative !important; /* Keep relative positioning */
        height: auto !important; /* Keep auto height */
        min-height: auto !important; /* Keep auto min-height */
    }
    
    /* Disable all hover content expansion on mobile */
    .experience-node:hover .client-name,
    .experience-node:hover .node-description,
    .experience-node:hover .node-technologies,
    .experience-node:hover .node-actions {
        opacity: 0 !important; /* Keep content hidden on hover */
        max-height: 0 !important; /* Keep collapsed */
        margin-top: 0 !important; /* No spacing */
        transform: none !important; /* No transform */
        overflow: hidden !important; /* Hide overflow */
    }
    
    /* Override hover effects for node header */
    .experience-node:hover .node-header {
        transform: none !important; /* No transform */
    }
    
    .experience-node:hover .node-header .job-title {
        color: var(--text-primary) !important; /* Keep original color */
    }
    
    /* Disable pseudo-element effects on mobile */
    .experience-node:hover::before,
    .experience-node:hover::after {
        display: none !important; /* Hide connection dots/lines */
    }
    
    /* Mobile modal overlay for expanded experience nodes */
    .mobile-experience-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-experience-modal.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-experience-modal .modal-content {
        background: var(--gradient-box-d);
        border-radius: 12px;
        padding: 2rem;
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        border: 2px solid var(--primary-color);
        box-shadow: var(--shadow-3);
    }
    
    .mobile-experience-modal .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-experience-modal .modal-close:hover {
        background: var(--secondary-color);
        transform: scale(1.1);
    }
    
    /* Show all content in modal */
    .mobile-experience-modal .experience-node .client-name,
    .mobile-experience-modal .experience-node .node-description,
    .mobile-experience-modal .experience-node .node-technologies,
    .mobile-experience-modal .experience-node .node-actions {
        opacity: 1 !important;
        max-height: none !important;
        margin-top: 1rem !important;
        transform: none !important;
    }
    
    /* Hide connection dots and lines on mobile */
    .experience-node::before,
    .experience-node::after {
        display: none !important;
    }
    
    /* Ensure compact appearance - only show header by default */
    .experience-node {
        min-height: 60px !important; /* Compact height for mobile */
        height: auto !important;
        padding: 1rem !important;
    }
    
    /* Show only job title and company name initially on mobile */
    .experience-node .node-header {
        display: block !important;
        opacity: 1 !important;
    }
    
    .experience-node .node-header .job-title,
    .experience-node .node-header .company-name {
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Add visual separator between items on mobile */
    .experience-node:not(:last-child)::after {
        content: '';
        display: block !important;
        width: 50px;
        height: 2px;
        background: var(--primary-color);
        margin: 1rem auto 0 auto;
        border-radius: 1px;
        opacity: 0.3;
        position: static !important;
        left: auto !important;
        top: auto !important;
    }
}
    
    .experience-timeline { 
        min-height: auto;
        padding: 1rem 0;
    }
    
    /* Mobile LinkedIn button styling */
    .experience-node .node-actions {
        margin-top: 12px;
        padding-top: 8px;
    }
    
    .experience-node .linkedin-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        width: 100%;
        justify-content: center;
    }

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
}

.pricing-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gradient-box-d);
    box-shadow: var(--shadow-1);
    border: 1px solid var(--dark-border);
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.pricing-card.border-primary {
    border-width: 2px;
    position: relative;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: var(--font-size-b1);
    color: var(--text-secondary);
    background: var(--dark-bg);
    line-height: var(--line-height-b1);
}

h1, .h1 {
    color: var(--color-heading);
    line-height: 1.19;
    font-family: 'Montserrat', Arial, sans-serif;
}

p {
    font-size: var(--font-size-b2);
    line-height: 1.8;
    margin: 0 0 40px;
    margin-bottom: 1rem;
}

.contact-form .form-control {
    background: var(--gradient-box-d);
    border: 1px solid var(--dark-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: var(--gradient-box-d);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-3);
    transform: translateY(-1px);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--dark-bg) !important;
    border-top: 1px solid var(--dark-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

/* Enhanced Social Links & Icon Styling - Now handled above */

/* Contact Icon Hover Effects - Same as skill icons */
.contact-icon i:hover {
    transform: translateY(-3px);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px 0 rgba(241, 137, 0, 0.4);
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease;
}

.contact-icon i {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Service Icons Enhancement */
/* Service icons - special purple theme with shine effect */
/* Service icons - special variant with shimmer effect */
.service-icon {
    border-radius: 20px;
    background: var(--dark-card);
    color: var(--secondary-color);
    margin: 0 auto 1.5rem;
    cursor: default;
    font-size: 3rem; /* Combined with redundant definition at line 2568 */
    transition: all 0.3s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    transition: all 0.6s;
}

.service-item:hover .service-icon::before {
    left: 100%;
}

.service-item:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 10px 30px 0 rgba(124, 58, 237, 0.4);
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Ensure tooltips work with icon bases */
.icon-base.tooltip-container {
    overflow: visible;
}

.tooltip-text {
    /* Hidden element used only for JavaScript to read tooltip content */
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Dynamic tooltips created by JavaScript */
.dynamic-tooltip {
    position: fixed;
    background: #1c1e22;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    z-index: 999999;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    cursor: default;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Clickable social tooltips */
.dynamic-tooltip.clickable {
    pointer-events: auto;
    cursor: pointer;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Animations */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure smooth transitions for all interactive elements */
.btn, .icon-base, .marquee-item, .portfolio-item {
    animation-fill-mode: forwards;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Animation States - Disable hover only during specific entrance animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hide elements that will be animated until their animation starts */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none; /* Disable hover for invisible elements waiting to animate */
}

/* Enable pointer events when animation starts */
.fade-in-up {
    pointer-events: auto;
}

/* Loading animation for progress bars */
@keyframes progressLoad {
    from {
        width: 0%;
    }
}

.progress-bar {
    animation: progressLoad 2s ease-out;
}

/* Icon animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: translateY(-5px) scale(1.1); }
    50% { transform: translateY(-8px) scale(1.15); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Portfolio item enhanced animations */
.portfolio-item {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 1, 79, 0.1), rgba(255, 220, 96, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.375rem;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Contact form enhancements */
.contact-form .form-control {
    transition: all 0.3s ease;
}

.contact-form .form-control:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

/* Skill item enhancements */
.skill-item {
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 1, 79, 0.05), transparent);
    transition: left 0.8s;
}

.skill-item:hover::before {
    left: 100%;
}

/* Image Placeholders */
.img-placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.portfolio-placeholder {
    height: 170px;
    border-radius: 12px 12px 0 0;
    background: var(--gradient-box-d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    position: relative; /* Added for coming soon overlay positioning */
}

.portfolio-slide .portfolio-item:hover .portfolio-placeholder {
    background: var(--gradient-primary);
    color: white;
}

/* Capabilities Section */
.what-i-do-section {
    background: var(--dark-bg) url('../images/Keyboard.png') no-repeat 70% center;
    background-size: 60%;
    position: relative;
    overflow: hidden;
}

.what-i-do-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 36, 40, 0.9), rgba(24, 22, 28, 0.85));
    z-index: 1;
}

.what-i-do-section .container {
    position: relative;
    z-index: 2;
}

.service-item-clickable {
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--dark-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.service-item-clickable:hover {
    box-shadow: var(--shadow-3);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: var(--gradient-box-d);
}

.service-content {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item-clickable:hover .service-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.service-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-click-hint {
    color: var(--primary-color);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-item-clickable:hover .service-click-hint {
    opacity: 1;
    transform: translateY(-2px);
}

.service-click-hint i {
    font-size: 0.8rem;
}

/* Service Lightbox */
.service-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.lightbox-container {
    position: relative;
    background: var(--gradient-box-d);
    border-radius: 12px;
    box-shadow: var(--shadow-3);
    border: 1px solid var(--dark-border);
    max-width: 800px;
    max-height: 90vh;
    margin: 2rem;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--secondary-color);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-box-d);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: -25px;
}

.lightbox-next {
    right: -25px;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    padding: 3rem;
    overflow-y: auto;
    max-height: 90vh;
}

.service-detail {
    text-align: center;
}

.service-detail-visual {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.service-detail-visual img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-detail-visual i {
    font-size: inherit;
    color: inherit;
}

.service-detail h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.service-detail-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.service-detail-description p {
    margin-bottom: 1.5rem;
    font-size: var(--font-size-b1);
}

/* Section Navigation */
.section-navigation {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: right 0.3s ease;
}

.section-navigation.offset-for-timeline {
    right: 6rem; /* Offset when timeline button is visible */
}

.section-nav-btn {
    background: none;
    border: none;
    border-radius: 50px;
    padding: 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 57px;
    height: 57px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.section-nav-btn:hover,
.section-navigation:hover .section-nav-btn {
    background: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--secondary-color);
    width: 180px;
    padding: 1rem 1.5rem;
}

.section-nav-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 6px;
}

.section-nav-btn:hover i,
.section-navigation:hover .section-nav-btn i {
    transform: scale(1.1);
}

.section-nav-text {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    max-width: 0;
    overflow: hidden;
}

.section-nav-btn:hover .section-nav-text,
.section-navigation:hover .section-nav-btn .section-nav-text {
    opacity: 1;
    transform: translateX(0);
    max-width: 150px;
}

/* Auto-collapsed state - override hover effects when auto-collapsed */
.section-nav-btn.auto-collapsed {
    width: 57px !important;
    padding: 1rem !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--dark-border) !important;
}

.section-nav-btn.auto-collapsed .section-nav-text {
    opacity: 0 !important;
    transform: translateX(-10px) !important;
    max-width: 0 !important;
}

.section-nav-btn.auto-collapsed i {
    transform: scale(1) !important;
}

/* Bootstrap Color Overrides - Ensure website theme colors are used throughout */
.bg-primary {
    background: var(--gradient-primary) !important;
}

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

.btn-primary {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* Active section highlighting in navigation */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Language Dropdown Styles */
.navbar .dropdown-menu {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    box-shadow: var(--shadow-2);
    min-width: 200px;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px;
}

.navbar .dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.navbar .dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Language dropdown flag emojis */
.navbar .dropdown-item,
.navbar .dropdown-toggle {
    font-size: 0.95rem;
}

/* Scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px; /* Adjust based on navbar height */
}

/* Alternative method for older browsers */
section[id] {
    scroll-margin-top: 80px;
}

/* Additional styles for heading replacements */
.contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-title-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}
