﻿/* Custom styles for the futuristic dark theme resume website */

/* Carousel caption below image */
.carousel-caption-below {
    position: static;
    background-color: rgba(10, 15, 30, 0.9);
    color: #e0f7ff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #0cf;
    height: 150px; /* Fixed height to prevent size changes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; /* Allow scrolling for longer text */
}

/* Carousel video styling */
.carousel-item video {
    object-fit: cover;
    width: 100%;
    height: 400px;
}

/* Carousel image styling */
.carousel-item img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.3));
}

/* General styles */
body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0f7ff;
    line-height: 1.6;
    padding-top: 56px; /* Account for fixed navbar */
    background-color: #0a0e17;
    background-image: 
        linear-gradient(to bottom, rgba(10, 14, 23, 0.95), rgba(10, 14, 23, 0.98)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMGEwZTE3Ij48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMxMTFhMjkiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
}

/* Hero section styles */
.hero-section {
    height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #0cf;
    overflow: hidden;
    background-color: #050a15;
    background-image: linear-gradient(rgba(5, 10, 21, 0.8), rgba(5, 10, 21, 0.8)), url('../assets/images/hero/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        filter: blur(3px) hue-rotate(0deg);
        transform: scale(1.2) translateX(-5px) translateY(-5px);
    }
    20% {
        opacity: 0.45;
        filter: blur(4px) hue-rotate(15deg);
        transform: scale(1.22) translateX(0px) translateY(-8px);
    }
    40% {
        opacity: 0.48;
        filter: blur(4.5px) hue-rotate(25deg);
        transform: scale(1.25) translateX(5px) translateY(-5px);
    }
    60% {
        opacity: 0.5;
        filter: blur(5px) hue-rotate(30deg);
        transform: scale(1.27) translateX(8px) translateY(0px);
    }
    80% {
        opacity: 0.45;
        filter: blur(4px) hue-rotate(15deg);
        transform: scale(1.25) translateX(5px) translateY(5px);
    }
    100% {
        opacity: 0.4;
        filter: blur(3px) hue-rotate(0deg);
        transform: scale(1.2) translateX(-5px) translateY(-5px);
    }
}

@keyframes float {
    0% {
        background-position: 0% 0%;
        transform: scale(1.05) rotate(-1deg);
    }
    25% {
        background-position: 30% 70%;
        transform: scale(1.08) rotate(0.5deg);
    }
    50% {
        background-position: 100% 100%;
        transform: scale(1.1) rotate(1deg);
    }
    75% {
        background-position: 70% 30%;
        transform: scale(1.08) rotate(0.5deg);
    }
    100% {
        background-position: 0% 0%;
        transform: scale(1.05) rotate(-1deg);
    }
}

/* Grid overlay for futuristic look - optimized */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 204, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    z-index: 2;
    pointer-events: none;
    animation: gridPulse 8s infinite alternate;
    will-change: opacity, background-size;
    transform: translateZ(0);
}

@keyframes gridPulse {
    0% {
        opacity: 0.3;
        background-size: 30px 30px;
    }
    100% {
        opacity: 0.5;
        background-size: 32px 32px;
    }
}

/* Glowing line animation - optimized */
.glowing-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 250%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        transparent, 
        rgba(0, 204, 255, 0.3), 
        rgba(0, 204, 255, 0.7), 
        rgba(0, 204, 255, 0.3), 
        transparent, 
        transparent);
    z-index: 4;
    pointer-events: none;
    animation: glowingLineMove 8s infinite;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes glowingLineMove {
    0% {
        top: -10%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes stepsFloat {
    0% {
        transform: scale(1.1) rotate(0deg) translateX(-10px) translateY(-10px);
        opacity: 0.08;
        filter: blur(3.5px);
        background-position: 90% 90%;
    }
    12% {
        transform: scale(1.12) rotate(0.8deg) translateX(-5px) translateY(-18px);
        opacity: 0.085;
        filter: blur(3.8px);
        background-position: 88% 92%;
    }
    25% {
        transform: scale(1.14) rotate(1.5deg) translateX(8px) translateY(-12px);
        opacity: 0.09;
        filter: blur(4px);
        background-position: 85% 95%;
    }
    38% {
        transform: scale(1.16) rotate(2deg) translateX(15px) translateY(-5px);
        opacity: 0.095;
        filter: blur(4.3px);
        background-position: 82% 93%;
    }
    50% {
        transform: scale(1.18) rotate(1.2deg) translateX(18px) translateY(3px);
        opacity: 0.1;
        filter: blur(4.5px);
        background-position: 80% 90%;
    }
    63% {
        transform: scale(1.16) rotate(0.5deg) translateX(15px) translateY(10px);
        opacity: 0.095;
        filter: blur(4.3px);
        background-position: 83% 87%;
    }
    75% {
        transform: scale(1.14) rotate(-0.5deg) translateX(8px) translateY(15px);
        opacity: 0.09;
        filter: blur(4px);
        background-position: 85% 85%;
    }
    88% {
        transform: scale(1.12) rotate(-1deg) translateX(-5px) translateY(10px);
        opacity: 0.085;
        filter: blur(3.8px);
        background-position: 87% 88%;
    }
    100% {
        transform: scale(1.1) rotate(0deg) translateX(-10px) translateY(-10px);
        opacity: 0.08;
        filter: blur(3.5px);
        background-position: 90% 90%;
    }
}

@keyframes searchFloat {
    0% {
        transform: scale(1.05) rotate(-1deg) translateX(10px) translateY(5px);
        opacity: 0.07;
        filter: blur(4px);
        background-position: 30% 30%;
    }
    13% {
        transform: scale(1.07) rotate(-1.5deg) translateX(15px) translateY(12px);
        opacity: 0.073;
        filter: blur(4.1px);
        background-position: 28% 33%;
    }
    25% {
        transform: scale(1.09) rotate(-0.8deg) translateX(8px) translateY(18px);
        opacity: 0.075;
        filter: blur(4.2px);
        background-position: 25% 35%;
    }
    38% {
        transform: scale(1.11) rotate(0deg) translateX(0px) translateY(15px);
        opacity: 0.078;
        filter: blur(4.3px);
        background-position: 22% 32%;
    }
    50% {
        transform: scale(1.13) rotate(0.8deg) translateX(-8px) translateY(8px);
        opacity: 0.08;
        filter: blur(4.5px);
        background-position: 20% 30%;
    }
    63% {
        transform: scale(1.11) rotate(1.5deg) translateX(-15px) translateY(0px);
        opacity: 0.078;
        filter: blur(4.3px);
        background-position: 23% 27%;
    }
    75% {
        transform: scale(1.09) rotate(1deg) translateX(-10px) translateY(-10px);
        opacity: 0.075;
        filter: blur(4.2px);
        background-position: 25% 25%;
    }
    88% {
        transform: scale(1.07) rotate(0.5deg) translateX(0px) translateY(-15px);
        opacity: 0.073;
        filter: blur(4.1px);
        background-position: 28% 28%;
    }
    100% {
        transform: scale(1.05) rotate(-1deg) translateX(10px) translateY(5px);
        opacity: 0.07;
        filter: blur(4px);
        background-position: 30% 30%;
    }
}

@keyframes usageFloat {
    0% {
        transform: scale(1.08) rotate(1deg) translateX(-15px) translateY(-5px);
        opacity: 0.06;
        filter: blur(4.5px);
        background-position: 70% 70%;
    }
    11% {
        transform: scale(1.09) rotate(1.8deg) translateX(-18px) translateY(-12px);
        opacity: 0.063;
        filter: blur(4.6px);
        background-position: 73% 67%;
    }
    22% {
        transform: scale(1.1) rotate(1.2deg) translateX(-12px) translateY(-18px);
        opacity: 0.065;
        filter: blur(4.7px);
        background-position: 75% 65%;
    }
    33% {
        transform: scale(1.11) rotate(0.5deg) translateX(-5px) translateY(-20px);
        opacity: 0.068;
        filter: blur(4.8px);
        background-position: 78% 63%;
    }
    44% {
        transform: scale(1.12) rotate(-0.5deg) translateX(5px) translateY(-18px);
        opacity: 0.07;
        filter: blur(5px);
        background-position: 80% 60%;
    }
    56% {
        transform: scale(1.13) rotate(-1.2deg) translateX(12px) translateY(-12px);
        opacity: 0.073;
        filter: blur(5.2px);
        background-position: 77% 63%;
    }
    67% {
        transform: scale(1.12) rotate(-1.8deg) translateX(18px) translateY(-5px);
        opacity: 0.07;
        filter: blur(5px);
        background-position: 75% 65%;
    }
    78% {
        transform: scale(1.11) rotate(-1.2deg) translateX(12px) translateY(5px);
        opacity: 0.068;
        filter: blur(4.8px);
        background-position: 72% 68%;
    }
    89% {
        transform: scale(1.09) rotate(-0.5deg) translateX(5px) translateY(10px);
        opacity: 0.063;
        filter: blur(4.6px);
        background-position: 70% 70%;
    }
    100% {
        transform: scale(1.08) rotate(1deg) translateX(-15px) translateY(-5px);
        opacity: 0.06;
        filter: blur(4.5px);
        background-position: 70% 70%;
    }
}

@keyframes archiveFloat {
    0% {
        transform: scale(1.05) rotate(-0.5deg) translateX(5px) translateY(10px);
        opacity: 0.05;
        filter: blur(3.8px);
        background-position: 20% 80%;
    }
    10% {
        transform: scale(1.06) rotate(-1deg) translateX(10px) translateY(15px);
        opacity: 0.052;
        filter: blur(3.9px);
        background-position: 10% 82%;
    }
    20% {
        transform: scale(1.07) rotate(-1.5deg) translateX(15px) translateY(18px);
        opacity: 0.054;
        filter: blur(4px);
        background-position: 15% 50%;
    }
    30% {
        transform: scale(1.08) rotate(-1deg) translateX(18px) translateY(15px);
        opacity: 0.056;
        filter: blur(4.1px);
        background-position: 12% 83%;
    }
    40% {
        transform: scale(1.09) rotate(-0.5deg) translateX(15px) translateY(10px);
        opacity: 0.058;
        filter: blur(4.2px);
        background-position: 30% 20%;
    }
    50% {
        transform: scale(1.1) rotate(0deg) translateX(10px) translateY(5px);
        opacity: 0.06;
        filter: blur(4.3px);
        background-position: 50% 77%;
    }
    60% {
        transform: scale(1.09) rotate(0.5deg) translateX(5px) translateY(0px);
        opacity: 0.058;
        filter: blur(4.2px);
        background-position: 42% 65%;
    }
    70% {
        transform: scale(1.08) rotate(1deg) translateX(0px) translateY(-5px);
        opacity: 0.056;
        filter: blur(4.1px);
        background-position: 17% 77%;
    }
    80% {
        transform: scale(1.07) rotate(1.5deg) translateX(-5px) translateY(0px);
        opacity: 0.054;
        filter: blur(4px);
        background-position: 19% 50%;
    }
    90% {
        transform: scale(1.06) rotate(1deg) translateX(0px) translateY(5px);
        opacity: 0.052;
        filter: blur(3.9px);
        background-position: 20% 80%;
    }
    100% {
        transform: scale(1.05) rotate(-0.5deg) translateX(5px) translateY(10px);
        opacity: 0.05;
        filter: blur(3.8px);
        background-position: 20% 80%;
    }
}

@keyframes manualFloat {
    0% {
        transform: scale(1.03) rotate(0.5deg) translateX(-5px) translateY(-5px);
        opacity: 0.04;
        filter: blur(3.5px);
        background-position: 80% 20%;
    }
    12% {
        transform: scale(1.04) rotate(1deg) translateX(-10px) translateY(-10px);
        opacity: 0.042;
        filter: blur(3.6px);
        background-position: 82% 18%;
    }
    25% {
        transform: scale(1.05) rotate(1.5deg) translateX(-15px) translateY(-5px);
        opacity: 0.044;
        filter: blur(3.7px);
        background-position: 85% 15%;
    }
    37% {
        transform: scale(1.06) rotate(1deg) translateX(-10px) translateY(0px);
        opacity: 0.046;
        filter: blur(3.8px);
        background-position: 83% 17%;
    }
    50% {
        transform: scale(1.07) rotate(0.5deg) translateX(-5px) translateY(5px);
        opacity: 0.048;
        filter: blur(3.9px);
        background-position: 80% 20%;
    }
    62% {
        transform: scale(1.06) rotate(0deg) translateX(0px) translateY(10px);
        opacity: 0.046;
        filter: blur(3.8px);
        background-position: 77% 23%;
    }
    75% {
        transform: scale(1.05) rotate(-0.5deg) translateX(5px) translateY(5px);
        opacity: 0.044;
        filter: blur(3.7px);
        background-position: 75% 25%;
    }
    87% {
        transform: scale(1.04) rotate(-1deg) translateX(0px) translateY(0px);
        opacity: 0.042;
        filter: blur(3.6px);
        background-position: 78% 22%;
    }
    100% {
        transform: scale(1.03) rotate(0.5deg) translateX(-5px) translateY(-5px);
        opacity: 0.04;
        filter: blur(3.5px);
        background-position: 80% 20%;
    }
}

.hero-content {
    padding: 2rem;
    animation: fadeIn 1.5s ease-in-out;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: 1;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background-color: rgba(0, 204, 255, 0.8);
    border-color: rgba(0, 204, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.hero-buttons .btn-primary:hover {
    background-color: rgba(0, 204, 255, 1);
    border-color: rgba(0, 204, 255, 1);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.7);
}

.hero-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
    letter-spacing: 1px;
    animation: textGlow 3s infinite alternate;
    will-change: text-shadow;
    transform: translateZ(0);
}

.hero-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.4);
    letter-spacing: 1px;
    animation: textGlow 3s infinite alternate-reverse;
    will-change: text-shadow;
    transform: translateZ(0);
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 15px rgba(0, 204, 255, 0.7);
    }
}

/* Section styling */
section {
    position: relative;
}

section h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: 1px;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #0cf, #80f, #0cf);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

/* Card styling */
.card {
    border: none;
    background-color: rgba(15, 25, 40, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 204, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    color: #e0f7ff;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 204, 255, 0.2), 0 0 20px rgba(0, 204, 255, 0.1);
}

/* Timeline styling for experience section */
.timeline .row {
    position: relative;
}

.timeline .row:not(:last-child):after {
    content: '';
    position: absolute;
    left: calc(33.33% - 1px);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #0cf, rgba(0, 204, 255, 0.1));
    box-shadow: 0 0 8px rgba(0, 204, 255, 0.3);
}

.timeline h4 {
    color: #0cf;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

.timeline h5 {
    color: #b0e0ff;
}

.timeline .text-muted {
    color: #80f !important;
    font-weight: 500;
}

/* Skills section */
.list-group-item {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0, 204, 255, 0.1);
    border-bottom: 1px solid rgba(0, 204, 255, 0.1);
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    background-color: rgba(15, 25, 40, 0.4);
    color: #e0f7ff;
}

.list-group-item:hover {
    background-color: rgba(0, 204, 255, 0.1);
    transform: translateX(5px);
    box-shadow: -3px 0 0 #0cf;
}

/* Contact section */
.contact-info i {
    color: #0cf;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

.social-links a {
    color: #b0e0ff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #0cf;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

/* Form styling */
.form-control {
    border-radius: 4px;
    border: 1px solid rgba(0, 204, 255, 0.2);
    padding: 0.75rem;
    background-color: rgba(10, 20, 35, 0.7);
    color: #e0f7ff;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.2);
    border-color: #0cf;
    background-color: rgba(15, 25, 40, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, #0cf, #08a);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #08a, #0cf);
    transition: all 0.4s ease;
    z-index: -1;
}

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

.btn-primary:hover::before {
    left: 0;
}

.btn-outline-light {
    border-color: rgba(0, 204, 255, 0.5);
    color: #0cf;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(0, 204, 255, 0.1);
    border-color: #0cf;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
}

.btn-outline-primary {
    border-color: rgba(0, 204, 255, 0.5);
    color: #0cf;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(0, 204, 255, 0.1);
    border-color: #0cf;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
}

/* Project section styling */
#projects .carousel {
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 204, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
}

#projects .carousel-item img {
    height: 400px;
    object-fit: contain;
    background-color: #050a15;
    transition: all 0.5s ease;
}

#projects .carousel.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: auto;
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 204, 255, 0.3);
}

#projects .carousel.expanded .carousel-item img {
    height: 80vh;
    max-height: 800px;
}

.gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.9);
    z-index: 1040;
    backdrop-filter: blur(5px);
}

.gallery-overlay.show {
    display: block;
}

.gallery-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 204, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel.expanded .gallery-close-btn {
    opacity: 1;
}

.gallery-close-btn:hover {
    background-color: rgba(0, 204, 255, 0.4);
}

#projects .carousel-caption {
    background-color: rgba(10, 15, 30, 0.8);
    border-radius: 4px;
    padding: 1rem;
    bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 204, 255, 0.2);
}

#projects h3 {
    color: #0cf;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

#projects h5 {
    color: #b0e0ff;
}

#projects hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.5), transparent);
    margin: 2rem 0;
}

/* Background modifications */
.bg-light {
    background-color: rgba(15, 25, 40, 0.5) !important;
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(0, 204, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(128, 0, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.bg-dark {
    background-color: #050a15 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 6rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    /* Optimize animations for mobile */
    .grid-overlay {
        background-size: 40px 40px; /* Larger grid = fewer lines */
        animation: none; /* Disable animation */
        opacity: 0.3; /* Fixed opacity */
    }
    

    
    .glowing-line {
        /* Simplified shadow */
        box-shadow: none;
        animation-duration: 12s; /* Slower animation */
    }
    
    .hero-section h1, 
    .hero-section h2 {
        /* Simpler text shadow */
        animation: none;
        text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
    }

    .steps-animation {
        background-size: contain;
        background-position: 95% 95%;
        filter: blur(3.5px);
        opacity: 0.1;
    }

    .search-animation {
        background-size: contain;
        background-position: 30% 30%;
        filter: blur(4px);
        opacity: 0.08;
    }

    .usage-animation {
        background-size: contain;
        background-position: 70% 70%;
        filter: blur(4.5px);
        opacity: 0.07;
    }

    .archive-animation {
        background-size: contain;
        background-position: 20% 80%;
        filter: blur(4px);
        opacity: 0.06;
    }

    .manual-animation {
        background-size: contain;
        background-position: 80% 20%;
        filter: blur(3.8px);
        opacity: 0.05;
    }

    .timeline .row:after {
        display: none;
    }

    #projects .carousel-item img {
        height: 250px;
        background-color: #050a15;
    }

    #projects .carousel-caption {
        position: static;
        background-color: rgba(10, 15, 30, 0.9);
        padding: 1rem;
        margin-top: -5px;
        border-top: none;
    }
}

/* Additional futuristic elements */
.card-title i {
    color: #0cf;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

/* Futuristic section styling */
.futuristic-section {
    position: relative;
    overflow: hidden;
}

/* Education section styling */
#education .text-muted {
    color: #0cf !important;
    font-weight: 500;
}

.futuristic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.5), transparent);
    z-index: 1;
}

.futuristic-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.5), transparent);
    z-index: 1;
}

/* Add futuristic grid lines to the background */
.futuristic-section {
    background-image: 
        linear-gradient(rgba(0, 204, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

/* Animated border effect */
@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 204, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 204, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 204, 255, 0); }
}

.navbar {
    border-bottom: 1px solid rgba(0, 204, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(5, 10, 20, 0.9) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: #0cf !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    color: #b0e0ff !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0cf;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #0cf !important;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

.nav-link:hover::after {
    width: 80%;
}

/* Futuristic footer styling */
.futuristic-footer {
    background: linear-gradient(to bottom, #050a15, #0a1525) !important;
    border-top: 1px solid rgba(0, 204, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.futuristic-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 204, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.futuristic-footer p {
    color: rgba(224, 247, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.futuristic-footer p::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.5), transparent);
}

/* Project details expand/collapse functionality */
.collapse-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapse-content.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Make expanded content use available space */
@media (min-width: 992px) {
    .project-details.collapse-content.show {
        margin-top: 2rem;
        padding: 1.5rem;
        background-color: rgba(15, 25, 40, 0.7);
        border-radius: 8px;
        border: 1px solid rgba(0, 204, 255, 0.2);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        width: 80%;
        max-width: 1000px;
        z-index: 10;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        min-height: 200px;
    }

    /* Add space below rows with expanded content */
    .row.expanded-row {
        margin-bottom: 2rem;
    }
}

/* Mobile view adjustments */
@media (max-width: 991px) {
    .project-details.collapse-content.show {
        margin-top: 1.5rem;
        padding: 1rem;
        background-color: rgba(15, 25, 40, 0.7);
        border-radius: 8px;
        border: 1px solid rgba(0, 204, 255, 0.2);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    /* Add less space on mobile */
    .row.expanded-row {
        margin-bottom: 1.5rem;
    }
}

.expand-details-btn {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-bottom: none;
    position: relative;
    padding-bottom: 1px;
    background: transparent;
    cursor: pointer;
    color: #0cf;
    opacity: 0.8;
    padding-top: 10px;
    padding-bottom: 10px;
}

.expand-details-btn::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.5), transparent);
}

.expand-details-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    animation: arrowPulse 2s infinite ease-in-out;
}

.expand-details-btn:hover {
    opacity: 1;
}

.expand-details-btn:hover::after {
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.8), transparent);
}

.expand-details-btn .collapse-icon {
    transform: rotate(180deg);
}

/* Arrow indicators for expand buttons */
.expand-details-btn .expand-arrow-container {
    position: absolute;
    width: 100%;
    height: 40px;
    left: 0;
    bottom: -25px;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.expand-details-btn .expand-arrow {
    position: relative;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    border: none;
    animation: arrowPulse 2s infinite ease-in-out;
}

.expand-details-btn .expand-arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-right: 3px solid rgba(0, 204, 255, 0.8);
    border-bottom: 3px solid rgba(0, 204, 255, 0.8);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    display: block;
    box-shadow: 3px 3px 5px rgba(0, 204, 255, 0.5);
}

/* Hide arrows when content is expanded */
.expand-details-btn .expand-arrow-container.d-none {
    display: none !important;
}

/* Challenges and Solutions styling */
.challenges-solutions {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.challenges-solutions dt {
    background-color: rgba(0, 204, 255, 0.1);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-left: 3px solid #0cf;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
    color: #e0f7ff;
}

.challenges-solutions dd {
    background-color: rgba(15, 25, 40, 0.5);
    padding: 0.75rem 1rem 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid rgba(0, 204, 255, 0.3);
    border-radius: 0 0 4px 4px;
    position: relative;
}

.challenges-solutions dd::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, #0cf, rgba(0, 204, 255, 0.1));
}

.challenges-solutions dt strong, 
.challenges-solutions dd strong {
    color: #0cf;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

@keyframes arrowPulse {
    0% {
        opacity: 0.7;
        transform: translateY(0) scale(0.9);
        filter: drop-shadow(0 0 2px rgba(0, 204, 255, 0.5));
    }
    50% {
        opacity: 1;
        transform: translateY(5px) scale(1);
        filter: drop-shadow(0 0 8px rgba(0, 204, 255, 0.8));
    }
    100% {
        opacity: 0.7;
        transform: translateY(0) scale(0.9);
        filter: drop-shadow(0 0 2px rgba(0, 204, 255, 0.5));
    }
}

.expand-details-btn .expand-arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.expand-details-btn .expand-arrow:nth-child(3) {
    animation-delay: 0.4s;
}

#projects .carousel-item {
    transition: transform .3s ease-in-out;
}

/* Specific styling for KeyColor carousel with iframes */
#keyColorCarousel .carousel-item {
    transition: transform .3s ease-in-out;
}

#keyColorCarousel .carousel-item iframe {
    opacity: 1;
}

#keyColorCarousel .carousel-item.active iframe {
    opacity: 1;
}

#projects .carousel-caption {
    background-color: rgba(10, 15, 30, 0.8);
    border-radius: 4px;
    padding: 1rem;
    bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 204, 255, 0.2);
}

/* Hide scrollbars in iframes for all browsers */
#keyColorCarousel iframe {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#keyColorCarousel iframe::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
