/* Custom Project Card Styles */
.project-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px;
    height: 100%;
    min-height: 480px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    overflow: hidden;
    box-sizing: border-box;
}

.project-card:hover {
    border-color: #ffbd39;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: #1a1a1a;
}

.project-card .rank-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 189, 57, 0.15);
    color: #ffbd39;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 15px; 
    color: #fff;
    line-height: 1.4;
}

.project-card h3 a {
    color: inherit;
}

.project-card h3 a:hover {
    color: #ffbd39;
}

.project-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.project-card .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tag Specific Colors (Refined) */
.tag-ts   { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.tag-py   { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.tag-dart { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.2); }
.tag-html { background: rgba(249, 115, 22, 0.1); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }
.tag-saas { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }
.tag-auto { background: rgba(234, 179, 8, 0.1); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.2); }
.tag-ai   { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.2); }
.tag-n8n  { background: rgba(156, 163, 175, 0.1); color: #d1d5db; border: 1px solid rgba(156, 163, 175, 0.2); }

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffbd39;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border: 2px solid rgba(255, 189, 57, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.github-btn:hover {
    background: #ffbd39;
    color: #111;
    border-color: #ffbd39;
    box-shadow: 0 5px 15px rgba(255, 189, 57, 0.3);
}

.github-btn svg {
    margin-top: 0px;
}

/* Enhanced mobile responsive for project cards */
@media (max-width: 575.98px) {
    .project-card {
        padding: 20px !important;
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .project-card .rank-badge {
        top: 10px;
        right: 10px;
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .project-card h3 {
        font-size: 15px !important;
        margin-bottom: 12px;
        margin-top: 8px;
        line-height: 1.3;
    }

    .project-card p {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px;
    }

    .project-card .tech-tags {
        margin-bottom: 15px;
        gap: 6px;
    }
    
    .tech-tag {
        font-size: 8px !important;
        padding: 2px 6px !important;
    }

    .github-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
        margin-top: auto;
    }
}

/* Small devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    .project-card {
        padding: 25px !important;
        min-height: 380px !important;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 15px !important;
        min-height: 60px !important;
    }
    
    .navbar-brand {
        padding: 5px 0 !important;
        font-size: 18px !important;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95) !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin-top: 0 !important;
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        padding: 15px 25px !important;
        margin: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 8px;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .navbar-nav .nav-link {
        color: #fff !important;
        font-weight: 500 !important;
        transition: color 0.3s ease !important;
        padding: 8px 0 !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: #ffbd39 !important;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        padding: 6px 10px !important;
        border-radius: 5px !important;
        margin: 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-toggler:hover {
        border-color: #ffbd39 !important;
        background: rgba(255, 189, 57, 0.1) !important;
    }
    
    .navbar-toggler:focus {
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(255, 189, 57, 0.3) !important;
    }
    
    .navbar-toggler .oi {
        color: #fff !important;
        font-size: 18px !important;
        transition: color 0.3s ease !important;
    }
    
    .navbar-toggler:hover .oi {
        color: #ffbd39 !important;
    }
    
    .navbar-toggler.active {
        border-color: #ffbd39 !important;
        background: rgba(255, 189, 57, 0.2) !important;
    }
    
    .navbar-toggler.active .oi {
        color: #ffbd39 !important;
    }
}

/* Extra small devices (320px-375px) specific fixes */
@media (max-width: 375px) {
    .navbar {
        padding: 8px 10px !important;
        min-height: 50px !important;
    }
    
    .navbar-brand {
        font-size: 16px !important;
        padding: 3px 0 !important;
    }
    
    .navbar-toggler {
        padding: 5px 8px !important;
    }
    
    .navbar-toggler .oi {
        font-size: 16px !important;
    }
}

/* Full Responsive Hero Section for Mobile */
@media (max-width: 991.98px) {
    /* Allow slider wrappers to expand beyond 100vh on mobile so nothing gets clipped */
    #home-section, 
    #home-section .home-slider, 
    #home-section .slider-item, 
    #home-section .owl-stage-outer, 
    #home-section .owl-stage,
    #home-section .owl-item {
        height: auto !important;
        min-height: 100vh !important;
    }

    #home-section {
        height: auto !important;
        min-height: 100vh !important;
    }

    #home-section .slider-text {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 100px !important; 
        padding-bottom: 0 !important;
    }
    
    #home-section .one-forth {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        order: 1 !important;
        z-index: 10 !important;
        transform: none !important; /* Disable Scrollax movement on mobile */
    }
    
    #home-section .one-third.hero-img-wrap {
        position: relative !important;
        width: 100% !important;
        height: 350px !important;
        min-height: 350px !important;
        order: 2 !important;
        z-index: 5 !important;
        background-position: bottom center !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        margin-top: 20px !important;
        transform: none !important; /* Disable Scrollax movement on mobile */
    }
    
    #home-section .text {
        text-align: center;
        width: 100%;
        padding: 0 15px;
    }
    
    #home-section .text h1 {
        font-size: 28px !important;
    }
    
    #home-section .text h2 {
        font-size: 18px !important;
    }
    
    #home-section .text p {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hero-img-wrap .hover-greeting {
        display: none !important; 
    }
}

/* Specific Progress Bar Colors for AI */
.progress-bar.color-llm { background-color: #ffbd39 !important; }
.progress-bar.color-rag { background-color: #ffbd39 !important; }
.progress-bar.color-python { background-color: #ffbd39 !important; }
.progress-bar.color-react { background-color: #ffbd39 !important; }
.progress-bar.color-n8n { background-color: #ffbd39 !important; }
.progress-bar.color-vibe { background-color: #ffbd39 !important; }

/* Vibrant Progress Bar Colors */
.progress-bar.color-web    { background-color: #60a5fa !important; }
.progress-bar.color-design { background-color: #fb923c !important; }
.progress-bar.color-ux     { background-color: #a78bfa !important; }
.progress-bar.color-app    { background-color: #22d3ee !important; }
.progress-bar.color-ai     { background-color: #f472b6 !important; }

/* Hero Image Hover Greeting */
.hero-img-wrap {
    position: relative;
    cursor: pointer;
    z-index: 50;
    pointer-events: auto;
}

.hero-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
    pointer-events: none;
}

.hero-img-wrap:hover::after {
    opacity: 1;
}

.hover-greeting {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.hero-img-wrap:hover .hover-greeting {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* AI Tech Stack Marquee */
.ai-tech-stack {
    padding: 60px 0;
    background: #0d0d12;
    background-image: 
        linear-gradient(rgba(255, 189, 57, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 189, 57, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
    position: relative;
}

.ai-tech-stack::before,
.ai-tech-stack::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.ai-tech-stack::before {
    left: 0;
    background: linear-gradient(to right, #0d0d12 0%, transparent 100%);
}

.ai-tech-stack::after {
    right: 0;
    background: linear-gradient(to left, #0d0d12 0%, transparent 100%);
}

.marquee-section {
    margin-bottom: 30px;
}

.marquee-category {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.marquee-container {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-container.reverse {
    animation-direction: reverse;
}

.marquee-container:hover {
    animation-play-state: paused;
}

.marquee-container:hover .marquee-item:not(:hover) {
    opacity: 0.2;
    transform: scale(0.95);
    filter: blur(2px);
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 30px;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

.marquee-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 189, 57, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    letter-spacing: 0.5px;
    text-transform: none;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.marquee-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.marquee-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.marquee-text {
    background: linear-gradient(90deg, #ffbd39, #ff7e5f, #ffbd39);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 18px;
    white-space: nowrap;
    text-transform: uppercase;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.marquee-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.marquee-item img.invert-dark {
    filter: invert(1) brightness(1.5);
}

.marquee-item img:hover {
    transform: scale(1.1);
}

/* Make Resume & Certification Cards uniform in size */
#resume-section .row > .col-md-6,
#certifications-section .row > .col-md-6 {
    display: flex;
    flex-direction: column;
}

.resume-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px !important;
}

.resume-wrap .mt-4 {
    margin-top: auto !important;
    padding-top: 1.5rem;
}

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

/* Services Marquee Styling */
.services-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.services-marquee-wrapper::before,
.services-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.services-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #000 0%, transparent 100%);
}

.services-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #000 0%, transparent 100%);
}

.services-marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}

.services-marquee-track.reverse {
    animation-direction: reverse;
}

.services-marquee-track:hover {
    animation-play-state: paused;
}

.service-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: default;
}

.service-mini-card:hover {
    border-color: #ffbd39;
    transform: translateY(-5px);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.service-mini-card .icon {
    font-size: 30px;
    color: #ffbd39;
    line-height: 1;
    display: flex;
    align-items: center;
}

.service-mini-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* Vanta.js 3D Background Overrides */
#home-section {
    position: relative !important;
    background-color: transparent !important;
}

#home-section .vanta-canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

#home-section .home-slider {
    z-index: 1;
    position: relative;
    background-color: transparent !important;
}

#home-section .slider-item,
#home-section .slider-item .overlay {
    background-color: transparent !important;
}

/* About Section Glass Card */
.about-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    margin: 0 auto;
}

.about-glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 189, 57, 0.3);
}

.glass-icon {
    font-size: 40px;
    color: #ffbd39;
    margin-bottom: 10px;
}

.glass-title {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0px;
    line-height: 1;
}

.glass-title span {
    color: #ffbd39;
}

.glass-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    margin-top: 10px;
    font-weight: 600;
}

.glass-divider {
    height: 1px;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 0 auto 25px;
}

.glass-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 189, 57, 0.1);
    border-color: rgba(255, 189, 57, 0.2);
}

.stat-icon {
    font-size: 22px;
}

.stat-text {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

/* Fix for mobile header visibility and scrolling */
@media (max-width: 991.98px) {
    .ftco-navbar-light {
        position: fixed !important;
        background: rgba(0, 0, 0, 0.95) !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    body {
        padding-top: 70px !important;
    }
}

.owl-carousel .owl-stage,
.owl-carousel.owl-drag .owl-item {
    touch-action: auto !important;
}

/* Floating Glass Navbar & Hire Me Button */
#ftco-navbar.ftco-navbar-light {
    background: transparent !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#ftco-navbar.ftco-navbar-light.scrolled {
    background: rgba(13, 13, 18, 0.4) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item.cta-btn .nav-link {
    background: linear-gradient(90deg, #ffbd39, #ff7e5f);
    color: #fff !important;
    border-radius: 30px;
    padding: 8px 24px !important;
    margin-left: 15px;
    margin-top: auto;
    margin-bottom: auto;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-item.cta-btn .nav-link:hover {
    transform: translateY(-2px);
    background: #000 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    color: #ffbd39 !important;
}

@media (max-width: 991.98px) {
    .nav-item.cta-btn .nav-link {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
}

/* Fix Hero Image Head Cutoff on Desktop */
@media (min-width: 992px) {
    #home-section .hero-img-wrap {
        background-position: top center !important;
    }
}


/* Terminal Window Styles */
.terminal-window {
    background: #111111;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 0 auto;
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: left;
    animation: float-terminal 6s ease-in-out infinite;
}

.terminal-header {
    background: #1e1e1e;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.close-btn { background: #ff5f56; }
.min-btn { background: #ffbd2e; }
.max-btn { background: #27c93f; }

.terminal-title {
    color: #888;
    font-size: 14px;
    margin-left: 20px;
    font-family: 'Poppins', sans-serif;
}

.terminal-body {
    padding: 30px;
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: auto;
}

.terminal-body pre {
    margin: 0;
    color: inherit;
    font-family: inherit;
    background: transparent;
    padding: 0;
}

/* Syntax Highlighting */
.token.punctuation { color: #888; }
.token.key { color: #ffbd39; }
.token.string { color: #a3be8c; }

/* Centered Background Heading Text */
.heading-section h1.big {
    left: 50% !important;
    transform: translateX(-50%);
    width: 100%;
}

/* Floating Terminal Animation */
@keyframes float-terminal {
    0% { transform: translateY(0px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); }
    50% { transform: translateY(-15px); box-shadow: 0 35px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 189, 57, 0.3); }
    100% { transform: translateY(0px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); }
}


