/* Portfolio CSS */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 25, 0.95) 0%,
        rgba(5, 5, 20, 0.98) 100%
    ) !important;
    border-bottom: 2px solid;
    border-image: linear-gradient(
            90deg,
            transparent,
            rgba(0, 248, 255, 0.5),
            rgba(255, 0, 255, 0.3),
            transparent
        )
        1;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    will-change: auto;
    contain: layout style;
    box-shadow:
        0 8px 32px rgba(0, 248, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #00f8ff !important;
    text-shadow:
        0 0 20px rgba(0, 248, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.3);
    letter-spacing: 0.08em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover {
    text-shadow:
        0 0 30px rgba(0, 248, 255, 0.8),
        0 0 60px rgba(0, 255, 255, 0.5),
        0 0 80px rgba(255, 0, 255, 0.3);
    transform: scale(1.08);
}

.nav-link {
    color: #d1d1ff !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f8ff, transparent);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: #00f8ff !important;
    text-shadow: 0 0 15px rgba(0, 248, 255, 0.5);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0a0a0a;
    position: relative;
    overflow-y: hidden;
    overflow-x: visible;
    contain: layout style paint;
    backface-visibility: hidden;
}

.hero-section::before {
    display: none;
}

.hero-section::after {
    display: none;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    will-change: transform;
    contain: paint;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    position: relative;
    letter-spacing: 0.1em;
    animation:
        electricPulse 3s ease-in-out infinite,
        glitchShift 4s ease-in-out infinite;
    text-shadow:
        0 0 8px rgba(0, 183, 255, 0.95),
        0 0 12px rgba(0, 183, 255, 0.85),
        0 0 16px rgba(255, 0, 255, 0.65);
    filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.9));
    will-change: transform;
    backface-visibility: hidden;
}

.hero-title::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent 50%,
        rgba(255, 0, 255, 0.1),
        transparent
    );
    border-radius: 5px;
    animation: electricBorder 2s linear infinite;
    z-index: -1;
    pointer-events: none;
}

.hero-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    animation: none;
    pointer-events: none;
    border-radius: 2px;
}

@keyframes electricPulse {
    0%,
    100% {
        text-shadow:
            0 0 8px rgba(0, 183, 255, 0.95),
            0 0 12px rgba(0, 183, 255, 0.85),
            0 0 16px rgba(255, 0, 255, 0.65);
        filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.9));
    }
    50% {
        text-shadow:
            0 0 12px rgba(0, 183, 255, 1),
            0 0 18px rgba(0, 183, 255, 0.9),
            0 0 25px rgba(255, 0, 255, 0.85);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 1));
    }
}

@keyframes glitchShift {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(1px) rotate(0.2deg);
    }
}

@keyframes electricBorder {
    0% {
        box-shadow:
            0 0 10px rgba(0, 255, 255, 0.7),
            inset 0 0 8px rgba(0, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 0, 255, 0.8),
            inset 0 0 10px rgba(255, 0, 255, 0.4),
            0 0 30px rgba(0, 255, 255, 0.6);
    }
    100% {
        box-shadow:
            0 0 10px rgba(0, 255, 255, 0.7),
            inset 0 0 8px rgba(0, 255, 255, 0.4);
    }
}

@keyframes electricScan {
    0%,
    100% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
}

.electric-title-wrapper {
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    text-align: center;
    overflow: visible;
}

.electric-title-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    border: none;
    border-radius: 0;
    pointer-events: none;
    z-index: 0;
}

.electric-title-wrapper .hero-title {
    position: relative;
    z-index: 1;
}

/* Interactive Rocket */
.interactive-rocket {
    position: absolute;
    width: 30px;
    height: 40px;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    cursor: pointer;
    animation: rocketFly 20s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.rocket-body {
    font-size: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket-body svg {
    filter: drop-shadow(0 0 8px #00ffff)
        drop-shadow(0 0 15px rgba(0, 255, 255, 0.6))
        drop-shadow(0 0 4px #ff00ff)
        drop-shadow(0 0 10px rgba(255, 0, 255, 0.4))
        drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    animation: rocketNeonPulse 2s ease-in-out infinite;
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
}

.rocket-body img {
    width: 30px;
    height: auto;
    background: transparent;
    filter: drop-shadow(0 0 6px #00ffff)
        drop-shadow(0 0 10px rgba(0, 255, 255, 0.5))
        drop-shadow(0 0 3px #ff00ff);
    animation: rocketNeonPulse 2s ease-in-out infinite;
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
    image-rendering: crisp-edges;
    will-change: filter, transform;
    backface-visibility: hidden;
}

.smoke-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.smoke-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: smokeRise 3s ease-out forwards;
    background: radial-gradient(
        ellipse 60% 50% at 30% 40%,
        rgba(180, 180, 180, 1),
        rgba(150, 150, 150, 0.8),
        rgba(120, 120, 120, 0.5),
        rgba(150, 150, 150, 0.2)
    );
    filter: blur(3px);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.smoke-particle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        rgba(160, 160, 160, 0.95),
        rgba(130, 130, 130, 0.65),
        rgba(150, 150, 150, 0.3),
        transparent
    );
    border-radius: 50%;
    animation: smokePulse 3s ease-out forwards;
}

@keyframes rocketFly {
    0% {
        left: 0%;
        top: 50%;
        transform: rotate(45deg);
    }
    8% {
        left: 12%;
        top: 45%;
        transform: rotate(48deg);
    }
    16% {
        left: 25%;
        top: 30%;
        transform: rotate(52deg);
    }
    24% {
        left: 38%;
        top: 15%;
        transform: rotate(55deg);
    }
    32% {
        left: 50%;
        top: 8%;
        transform: rotate(58deg);
    }
    40% {
        left: 62%;
        top: 12%;
        transform: rotate(48deg);
    }
    48% {
        left: 75%;
        top: 25%;
        transform: rotate(35deg);
    }
    56% {
        left: 85%;
        top: 40%;
        transform: rotate(15deg);
    }
    64% {
        left: 92%;
        top: 55%;
        transform: rotate(-5deg);
    }
    72% {
        left: 80%;
        top: 75%;
        transform: rotate(-35deg);
    }
    80% {
        left: 55%;
        top: 85%;
        transform: rotate(-60deg);
    }
    88% {
        left: 25%;
        top: 82%;
        transform: rotate(-70deg);
    }
    96% {
        left: 8%;
        top: 65%;
        transform: rotate(-50deg);
    }
    100% {
        left: 0%;
        top: 50%;
        transform: rotate(45deg);
    }
}

@keyframes rocketNeonPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 6px #00ffff)
            drop-shadow(0 0 10px rgba(0, 255, 255, 0.5))
            drop-shadow(0 0 3px #ff00ff);
        transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    }
    50% {
        filter: drop-shadow(0 0 10px #00ffff)
            drop-shadow(0 0 15px rgba(0, 255, 255, 0.7))
            drop-shadow(0 0 5px #ff00ff);
        transform: perspective(800px) rotateY(5deg) rotateX(-2deg) scale(1.05);
    }
}

@keyframes fireFlicker {
    0%,
    100% {
        transform: translateX(-50%) scaleY(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50% + 2px) scaleY(0.8);
        opacity: 0.7;
    }
}

@keyframes smokeRise {
    0% {
        opacity: 0.8;
        transform: translateY(0) translateX(0) scale(0.3);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-35px) translateX(12px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translateY(-70px) translateX(15px) scale(1.3);
    }
}

@keyframes smokePulse {
    0% {
        filter: blur(6px);
        transform: scale(1);
    }
    50% {
        filter: blur(8px);
        transform: scale(1.1);
    }
    100% {
        filter: blur(10px);
        transform: scale(1.2);
    }
}

.electric-spark {
    position: absolute;
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, #00ffff, transparent);
    border-radius: 50%;
    filter: drop-shadow(0 0 6px #00ffff);
    animation: electricSparkFloat 2s ease-out infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.electric-spark:nth-child(2) {
    right: 10%;
    top: 20%;
    background: linear-gradient(to bottom, #ff00ff, transparent);
    filter: drop-shadow(0 0 8px #ff00ff)
        drop-shadow(0 0 12px rgba(255, 0, 255, 0.8));
    animation-delay: 0.3s;
}

.electric-spark:nth-child(3) {
    right: 5%;
    top: 60%;
    background: linear-gradient(to bottom, #00ffff, transparent);
    filter: drop-shadow(0 0 8px #00ffff)
        drop-shadow(0 0 12px rgba(0, 255, 255, 0.8));
    animation-delay: 0.6s;
}

@keyframes electricFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes electricSparkFloat {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(20px) translateX(10px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00b7ff;
    margin-bottom: 20px;
    font-weight: 500;
    min-height: 2rem;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    color: #d1d1ff;
    line-height: 1.8;
    width: 100%;
    margin: 0 auto;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    text-align: justify;
    word-spacing: 0.05em;
    letter-spacing: 0.5px;
}

.btn-primary-custom {
    background: linear-gradient(90deg, #00b7ff, #ff30ff);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    color: #fff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 183, 255, 0.4);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid #00b7ff;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    color: #00b7ff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #00b7ff;
    color: #fff;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #f5f5ff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00b7ff, #ff30ff);
    border-radius: 2px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 183, 255, 0.5);
    }
    100% {
        box-shadow:
            0 0 20px rgba(0, 183, 255, 0.8),
            0 0 30px rgba(255, 48, 255, 0.4);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #0f0f0f;
    contain: layout style paint;
}

.about-card {
    background: rgba(7, 8, 25, 0.9);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.03);
    position: relative;
    transform: translateZ(0);
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.about-card:hover::before {
    left: 100%;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.experience-item {
    background: rgba(7, 8, 25, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.05);
}

.experience-item h4 {
    color: #00f8ff;
    margin-bottom: 0.5rem;
}

.experience-year {
    color: #76d7ff;
    font-size: 0.95rem;
}

.experience-item p {
    color: #d1d1ff;
    line-height: 1.75;
}

/* Experience Description with Bullet Points */
.experience-description {
    color: #d1d1ff;
    line-height: 1.2;
    white-space: pre-wrap;
    text-align: left;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    display: block;
}

.experience-description br {
    line-height: 0.5;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.education-item {
    background: rgba(7, 8, 25, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.05);
}

.education-item h4 {
    color: #00f8ff;
    margin-bottom: 0.5rem;
}

.education-level {
    color: #76d7ff;
    font-size: 0.95rem;
}

.education-item p {
    color: #d1d1ff;
    line-height: 1.75;
}

.skill-badge {
    background: linear-gradient(
        135deg,
        rgba(7, 24, 46, 0.8),
        rgba(26, 26, 46, 0.8)
    );
    border: 1px solid rgba(0, 183, 255, 0.5);
    color: #00b7ff;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 5px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 183, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.skill-badge:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 183, 255, 0.9),
        rgba(255, 48, 255, 0.8)
    );
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 183, 255, 0.4);
}

.skill-badge:hover::before {
    transform: translateX(100%);
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: #0a0a0a;
    contain: layout style paint;
}

/* Glow Card Animation */
.glow-card {
    width: 100%;
    height: 280px;
    background: #07182e;
    display: flex;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.glow-card::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200%;
    background: linear-gradient(180deg, #00b7ff, #ff30ff);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.glow-card::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: #07182e;
    border-radius: 15px;
}

.glow-card-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 15px;
    overflow: hidden;
}

.glow-card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glow-card:hover .glow-card-content img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 8, 25, 0.95),
        rgba(0, 255, 255, 0.08)
    );
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glow-card:hover .project-overlay {
    transform: translateY(0);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f5ff;
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    text-align: center;
}

.project-desc {
    font-size: 0.9rem;
    color: #d1d1ff;
}

.project-card-link {
    text-decoration: none;
    display: block;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #07182e 0%, #1a1a2e 100%);
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00b7ff, #ff30ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #d1d1ff;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.stats-carousel-container {
    overflow: hidden;
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
}

.stats-carousel {
    display: flex;
    animation: slideStats 35s linear infinite;
    will-change: transform;
}

.stats-carousel .col-md-4 {
    flex: 0 0 calc(100vw / 5);
    min-width: calc(100vw / 5);
    width: calc(100vw / 5);
}

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

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #0f0f0f;
}

.contact-card {
    background: rgba(7, 8, 25, 0.9);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 255, 255, 0.12);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 183, 255, 0.8), 
                0 0 40px rgba(0, 183, 255, 0.6),
                0 0 60px rgba(0, 248, 255, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.contact-card-link {
    text-decoration: none;
    display: block;
}

.contact-icon {
    font-size: 2.5rem;
    color: #00b7ff;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 183, 255, 0.5));
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    color: #00f8ff;
    filter: drop-shadow(0 0 20px rgba(0, 248, 255, 0.8));
    transform: scale(1.1);
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f5f5ff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.contact-info {
    color: #d1d1ff;
}

/* Footer */
.footer {
    background: linear-gradient(
        135deg,
        rgba(7, 8, 25, 0.95),
        rgba(2, 2, 12, 0.9)
    );
    padding: 40px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f8ff, transparent);
    animation: footerGlow 3s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

.footer-text {
    color: #d1d1ff;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.social-links a {
    color: #d1d1ff;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.social-links a:hover {
    color: #00f8ff;
    transform: scale(1.1);
}

.social-links a:hover::before {
    border-color: rgba(0, 248, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 248, 255, 0.3);
}

/* Profile Image */
.profile-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-glow {
    width: 100%;
    height: 100%;
    background: #07182e;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-glow::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 150%;
    background: linear-gradient(180deg, #00b7ff, #ff30ff);
    animation: rotate 3s linear infinite;
}

.profile-glow::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: #07182e;
    border-radius: 50%;
}

.profile-image {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background: #07182e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: #fff;
    overflow: hidden;
}

.profile-image .profile-logo {
    width: 90%;
    height: 90%;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

/* ============================================
   RESPONSIVE – TABLET & MOBILE
   ============================================ */

/* --- Tablet: 768px – 991px (side-by-side hero, compact sections) --- */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding-top: 110px;
        padding-bottom: 70px;
        min-height: auto;
    }

    .hero-content {
        padding: 0 10px;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        min-height: 1.6rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .profile-image-wrapper {
        width: 210px;
        height: 210px;
        margin: 0 auto;
    }

    .about-section,
    .projects-section,
    .contact-section {
        padding: 80px 0;
    }

    .stats-section {
        padding: 60px 0;
    }

    .about-card {
        padding: 30px 24px;
    }

    .experience-item,
    .education-item {
        padding: 18px 20px;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 40px;
    }

    .glow-card {
        height: 240px;
    }

    .stats-carousel .col-md-4 {
        flex: 0 0 calc(100vw / 3);
        min-width: calc(100vw / 3);
        width: calc(100vw / 3);
    }

    .stats-carousel {
        animation-duration: 28s;
    }

    .stats-carousel-container {
        height: 180px;
    }

    .navbar-brand img {
        height: 60px !important;
    }
}

/* --- Mobile: max 767px (stacked, centred, compact) --- */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 105px;
        padding-bottom: 55px;
        min-height: auto;
    }

    .hero-content {
        padding: 0 8px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        min-height: 1.75rem;
        white-space: normal;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-image-wrapper {
        width: 190px;
        height: 190px;
        margin: 28px auto 0;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 11px 30px;
        font-size: 0.92rem;
        display: inline-block;
        width: auto;
        margin-bottom: 10px;
    }

    .hero-content .mt-4 {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-content .mt-4 .me-3 {
        margin-right: 0 !important;
    }

    .about-section,
    .projects-section,
    .contact-section {
        padding: 65px 0;
    }

    .stats-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 35px;
    }

    .about-card {
        padding: 24px 18px;
    }

    .experience-item,
    .education-item {
        padding: 16px 14px;
    }

    .experience-item .d-flex,
    .education-item .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .experience-year,
    .education-level {
        font-size: 0.85rem;
    }

    .glow-card {
        height: 220px;
    }

    .stats-carousel .col-md-4 {
        flex: 0 0 calc(100vw / 2.2);
        min-width: calc(100vw / 2.2);
        width: calc(100vw / 2.2);
    }

    .stats-carousel {
        animation-duration: 22s;
    }

    .stats-carousel-container {
        height: 160px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.82rem;
        margin-top: 6px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .contact-icon {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .skill-badge {
        padding: 7px 16px;
        font-size: 0.88rem;
        margin: 4px;
    }

    .navbar-brand img {
        height: 55px !important;
    }

    .footer {
        padding: 30px 0;
    }
}

/* --- Small mobile: max 575px --- */
@media (max-width: 575px) {
    .hero-section {
        padding-top: 95px;
        padding-bottom: 45px;
    }

    .hero-title {
        font-size: clamp(1.55rem, 7.5vw, 2rem);
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
        min-height: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .profile-image-wrapper {
        width: 155px;
        height: 155px;
        margin-top: 22px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 24px;
        font-size: 0.88rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .about-card {
        padding: 18px 14px;
    }

    .experience-item,
    .education-item {
        padding: 14px 12px;
    }

    .experience-description {
        font-size: 0.9rem;
    }

    .glow-card {
        height: 200px;
    }

    .stats-carousel .col-md-4 {
        flex: 0 0 calc(100vw / 1.8);
        min-width: calc(100vw / 1.8);
        width: calc(100vw / 1.8);
    }

    .stats-carousel {
        animation-duration: 18s;
    }

    .skill-badge {
        padding: 6px 13px;
        font-size: 0.82rem;
        margin: 3px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .footer {
        padding: 24px 0;
    }

    .social-links a {
        margin: 0 10px;
        font-size: 1.3rem;
    }

    .contact-card {
        padding: 22px 16px;
    }

    .contact-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .contact-title {
        font-size: 1rem;
    }
}

.navbar-toggler {
    border-color: rgba(0, 183, 255, 0.5) !important;
    background: rgba(7, 8, 25, 0.8);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(0, 183, 255, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 183, 255, 0.3);
}

.navbar-toggler-icon {
    filter: drop-shadow(0 0 5px rgba(0, 183, 255, 0.5));
}
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 183, 255, 0.1);
}

.animate-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button hover effects */
.btn {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Profile image hover */
.profile-image {
    transition: transform 0.3s ease;
}

/* Cyberpunk theme overrides */
body {
    background:
        radial-gradient(
            circle at top,
            rgba(0, 255, 255, 0.08),
            transparent 20%
        ),
        radial-gradient(
            circle at 20% 10%,
            rgba(255, 0, 255, 0.08),
            transparent 15%
        ),
        #05030d;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.04) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.35;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        rgba(255, 255, 255, 0.045) 1px,
        transparent 1px
    );
    background-size: 100% 4px;
    opacity: 0.18;
    z-index: -1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.navbar {
    background: rgba(7, 8, 25, 0.85) !important;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.05);
}

.navbar-brand {
    color: #00f8ff !important;
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease;
}

.navbar-brand.nav-brand-loaded {
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    color: #d1d1ff !important;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.nav-link:hover {
    color: #00f8ff !important;
    transform: translateY(-2px);
}

.hero-section {
    background: rgba(2, 2, 12, 0.86);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section .hero-content {
    transform: translate3d(var(--move-x, 0), var(--move-y, 0), 0);
    transition: transform 0.15s ease-out;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(40px);
    z-index: 0;
}

.hero-section::before {
    width: 380px;
    height: 380px;
    background: rgba(0, 255, 255, 0.15);
    top: -120px;
    right: -100px;
}

.hero-section::after {
    width: 260px;
    height: 260px;
    background: rgba(255, 0, 255, 0.12);
    bottom: -100px;
    left: -80px;
}

.hero-title {
    font-size: 3.75rem;
    letter-spacing: 0.08em;
    color: #f5f5ff;
    text-shadow:
        0 0 22px rgba(0, 255, 255, 0.25),
        0 0 35px rgba(255, 0, 255, 0.14);
    position: relative;
}

.hero-title.glitch::before,
.hero-title.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0.8;
    color: #f5f5ff;
}

.hero-title.glitch::before {
    text-shadow: -2px 0 cyan;
    transform: translate(-2px, -1px);
    animation: glitchTop 2.5s infinite linear;
}

.hero-title.glitch::after {
    text-shadow: 2px 0 magenta;
    transform: translate(2px, 1px);
    animation: glitchBottom 2.7s infinite linear;
}

@keyframes glitchTop {
    0% {
        clip-path: inset(0 0 80% 0);
        transform: translate(-2px, -1px);
    }
    20% {
        clip-path: inset(10% 0 55% 0);
        transform: translate(2px, -2px);
    }
    40% {
        clip-path: inset(45% 0 30% 0);
        transform: translate(-2px, 0);
    }
    60% {
        clip-path: inset(10% 0 55% 0);
        transform: translate(1px, -1px);
    }
    80% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, -1px);
    }
    100% {
        clip-path: inset(0 0 80% 0);
        transform: translate(-1px, 0);
    }
}

@keyframes glitchBottom {
    0% {
        clip-path: inset(70% 0 0 0);
        transform: translate(2px, 1px);
    }
    20% {
        clip-path: inset(45% 0 10% 0);
        transform: translate(-1px, 2px);
    }
    40% {
        clip-path: inset(25% 0 20% 0);
        transform: translate(2px, -1px);
    }
    60% {
        clip-path: inset(55% 0 10% 0);
        transform: translate(-1px, 1px);
    }
    80% {
        clip-path: inset(65% 0 5% 0);
        transform: translate(1px, 2px);
    }
    100% {
        clip-path: inset(70% 0 0 0);
        transform: translate(2px, 1px);
    }
}

.hero-subtitle {
    display: inline-block;
    position: relative;
    font-size: 1.5rem;
    color: #00e3ff;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: left;
    white-space: nowrap;
    min-height: 2rem;
}

.hero-subtitle::after {
    content: "|";
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 6px;
    opacity: 0.8;
    animation: blink 0.8s infinite;
}

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

.btn-primary-custom {
    background: linear-gradient(
        90deg,
        rgba(0, 255, 255, 0.95),
        rgba(255, 0, 255, 0.9)
    );
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.18),
        inset 0 0 12px rgba(255, 0, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary-custom:hover::before {
    transform: translateX(100%);
}

.btn-outline-custom {
    border-color: rgba(0, 255, 255, 0.75);
    color: #00e3ff;
}

.btn-outline-custom:hover {
    background: rgba(0, 255, 255, 0.08);
    color: #fff;
}

.glow-card {
    background: rgba(7, 8, 25, 0.9);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.25);
}

.glow-card:hover::before {
    left: 100%;
}

.about-card,
.contact-card {
    border-color: rgba(0, 255, 255, 0.12);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

@keyframes soundWave {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

.about-card::after,
.contact-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f8ff, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover::after,
.contact-card:hover::after {
    opacity: 1;
}

/* Cyberpunk Background Animations */
.cyberpunk-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Animated Grid Background */
.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(0deg, rgba(0, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 20s linear infinite;
    top: -50%;
    left: -50%;
}

@keyframes gridShift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Floating Orbs */
.cyber-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
    opacity: 0.8;
}

.cyber-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 183, 255, 0.6),
        rgba(0, 183, 255, 0.2),
        transparent
    );
    bottom: -150px;
    left: 5%;
    animation: orb1Float 15s ease-in-out infinite;
}

.cyber-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 48, 255, 0.5),
        rgba(255, 48, 255, 0.15),
        transparent
    );
    top: 10%;
    right: 5%;
    animation: orb2Float 18s ease-in-out infinite;
}

.cyber-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 255, 200, 0.45),
        rgba(0, 255, 200, 0.15),
        transparent
    );
    top: 40%;
    left: -200px;
    animation: orb3Float 20s ease-in-out infinite;
}

@keyframes orb1Float {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: translate(30px, -50px);
        opacity: 0.7;
    }
}

@keyframes orb2Float {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.9;
    }
    50% {
        transform: translate(-40px, 40px);
        opacity: 0.6;
    }
}

@keyframes orb3Float {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.8;
    }
    50% {
        transform: translate(80px, 30px);
        opacity: 0.5;
    }
}

/* Subtle Gradient Animation */
.cyber-gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 20, 40, 0.7) 0%,
        rgba(30, 0, 50, 0.5) 25%,
        rgba(0, 30, 50, 0.6) 50%,
        rgba(30, 20, 0, 0.4) 100%
    );
    animation: gradientShift 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%,
    100% {
        background: linear-gradient(
            45deg,
            rgba(0, 20, 40, 0.7) 0%,
            rgba(30, 0, 50, 0.5) 25%,
            rgba(0, 30, 50, 0.6) 50%,
            rgba(30, 20, 0, 0.4) 100%
        );
    }
    50% {
        background: linear-gradient(
            225deg,
            rgba(0, 30, 50, 0.6) 0%,
            rgba(30, 0, 50, 0.5) 25%,
            rgba(0, 20, 40, 0.7) 50%,
            rgba(20, 30, 0, 0.5) 100%
        );
    }
}

/* Scanning Lines Effect (Very Subtle) */
.cyber-scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.08) 1px,
        transparent 1px
    );
    background-size: 100% 2px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

/* Glow Lines Animation */
.cyber-glow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.25),
        transparent
    );
    width: 100%;
    animation: glowPulse 4s ease-in-out infinite;
}

.glow-line-1 {
    top: 25%;
    animation: glowPulse 4s ease-in-out infinite;
}

.glow-line-2 {
    top: 50%;
    animation: glowPulse 4s ease-in-out 1s infinite;
}

.glow-line-3 {
    top: 75%;
    animation: glowPulse 4s ease-in-out 2s infinite;
}

/* Hero Vertical Glow Lines */
.hero-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background:
        linear-gradient(
            90deg,
            rgba(0, 248, 255, 0.3) 0%,
            rgba(0, 248, 255, 0.8) 50%,
            rgba(0, 248, 255, 0.3) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 248, 255, 0.5) 25%,
            rgba(0, 248, 255, 0.7) 50%,
            rgba(255, 0, 255, 0.5) 75%,
            transparent 100%
        );
    animation: verticalGlow 3s ease-in-out infinite;
    display: block !important;
    z-index: 15;
    box-shadow:
        inset 0 0 10px rgba(0, 248, 255, 0.6),
        0 0 20px rgba(0, 248, 255, 0.8),
        0 0 40px rgba(0, 248, 255, 0.4);
}

.hero-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 0, 255, 0.3) 0%,
            rgba(0, 248, 255, 0.8) 50%,
            rgba(255, 0, 255, 0.3) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(255, 0, 255, 0.5) 25%,
            rgba(0, 248, 255, 0.7) 50%,
            rgba(0, 248, 255, 0.5) 75%,
            transparent 100%
        );
    animation: verticalGlow 3s ease-in-out 0.5s infinite;
    display: block !important;
    z-index: 15;
    border-radius: 0;
    box-shadow:
        inset 0 0 10px rgba(0, 248, 255, 0.6),
        0 0 20px rgba(0, 248, 255, 0.8),
        0 0 40px rgba(255, 0, 255, 0.4);
}

@keyframes verticalGlow {
    0%,
    100% {
        opacity: 0.6;
        box-shadow:
            inset 0 0 8px rgba(0, 248, 255, 0.3),
            0 0 15px rgba(0, 248, 255, 0.5);
    }
    50% {
        opacity: 1;
        box-shadow:
            inset 0 0 15px rgba(0, 248, 255, 0.8),
            0 0 30px rgba(0, 248, 255, 1),
            0 0 50px rgba(0, 248, 255, 0.6);
    }
}

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

.project-overlay {
    background: linear-gradient(
        180deg,
        rgba(7, 8, 25, 0.95),
        rgba(0, 255, 255, 0.08)
    );
}

.profile-glow::before {
    background: linear-gradient(
        180deg,
        rgba(0, 255, 255, 0.4),
        rgba(255, 0, 255, 0.15)
    );
    animation: profileRotate 4s linear infinite;
}

@keyframes profileRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-image {
    background: linear-gradient(
        135deg,
        rgba(0, 255, 255, 0.08),
        rgba(255, 0, 255, 0.08)
    );
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        min-height: 1.5rem;
    }
}

@media (max-width: 991px) {
    * {
        cursor: auto !important;
    }
    .cyber-cursor {
        display: none !important;
    }
}

html,
body,
a,
button,
input,
textarea,
select,
label,
.btn,
.contact-card,
.glow-card,
.skill-badge {
    cursor: none !important;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #05030d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: #00f8ff;
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 248, 255, 0.5);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 248, 255, 0.2);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00f8ff, transparent);
    animation: loadingScan 2s linear infinite;
}

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

.cyber-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #00f8ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition:
        transform 0.1s ease,
        opacity 0.15s ease;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 248, 255, 0.5);
}

.cyber-cursor::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #00f8ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(0, 248, 255, 0.8);
}

.cyber-cursor.hover {
    transform: scale(1.5);
    border-color: #ff30ff;
    box-shadow: 0 0 20px rgba(255, 48, 255, 0.5);
}

.cyber-cursor::before.hover {
    background: #ff30ff;
    box-shadow: 0 0 10px rgba(255, 48, 255, 0.8);
}

/* Rocket Orbital Animation */
.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-glow {
    position: relative;
    z-index: 1;
}

/* ============================================
   MOBILE HERO SUBTITLE – keep cursor after text
   ============================================ */
@media (max-width: 767px) {
    /* Wrap subtitle in a centering block while keeping inline-block for cursor */
    .hero-subtitle {
        display: inline-block;
        text-align: left;
    }

    /* The parent h2 acts as the flex block-centering wrapper */
    h2.hero-subtitle {
        display: block;
        text-align: center;
    }

    /* Inner span trick: JS sets textContent directly on h2,
       so we use a ::before approach to center the inline text.
       Actually the simplest fix: wrap in a block with text-align center
       and let the inline-block h2 sit naturally. */
    h2.hero-subtitle {
        text-align: center;
        width: 100%;
    }

    /* Project cards – single column on small mobile */
    .project-card-link .glow-card {
        height: 220px;
    }
}

/* ============================================
   TABLET NAVBAR LOGO CAP
   ============================================ */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 60px;
    }
}

/* ============================================
   PROJECT GRID – col-sm-6 fallback on 480-767px
   ============================================ */
@media (min-width: 480px) and (max-width: 767px) {
    .projects-section .col-md-6 {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
    }

    .glow-card {
        height: 200px;
    }
}

/* ============================================
   EXPERIENCE / EDUCATION – mobile year badge
   ============================================ */
@media (max-width: 767px) {
    .experience-item .d-flex > span,
    .education-item .d-flex > span {
        align-self: flex-start;
        background: rgba(0, 255, 255, 0.08);
        border: 1px solid rgba(0, 255, 255, 0.2);
        border-radius: 8px;
        padding: 2px 10px;
        font-size: 0.8rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    .about-card h5 {
        font-size: 1rem;
    }
}

/* ============================================================
   PROJECT CARD � 2-button hover actions
   ============================================================ */
.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.btn-project-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-project-link {
    background: linear-gradient(
        90deg,
        rgba(0, 255, 255, 0.9),
        rgba(0, 183, 255, 0.85)
    );
    color: #04122a;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.btn-project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.6);
    color: #04122a;
}

.btn-project-detail {
    background: linear-gradient(
        90deg,
        rgba(255, 0, 255, 0.85),
        rgba(180, 0, 255, 0.8)
    );
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.35);
}

.btn-project-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 0, 255, 0.6);
}

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 15, 0.88);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    padding: 16px;
}

.project-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.project-modal-box {
    background: linear-gradient(
        135deg,
        rgba(7, 24, 46, 0.98),
        rgba(15, 10, 30, 0.98)
    );
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.15),
        0 0 30px rgba(255, 0, 255, 0.08);
    width: 100%;
    max-width: 1140px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-modal-overlay.open .project-modal-box {
    transform: scale(1) translateY(0);
}

.project-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.25);
    color: #00f8ff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition:
        background 0.2s,
        transform 0.2s;
    z-index: 2;
}

.project-modal-close:hover {
    background: rgba(0, 255, 255, 0.22);
    transform: rotate(90deg);
}

.project-modal-inner {
    display: flex;
    gap: 32px;
    padding: 32px;
}

.project-modal-gallery {
    flex: 0 0 55%;
    max-width: 55%;
}

.project-modal-main-img-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.15);
    margin-bottom: 12px;
    background: #07182e;
}

.project-modal-main-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

.project-modal-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-modal-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.15);
    cursor: pointer;
    transition:
        border-color 0.2s,
        transform 0.2s;
    opacity: 0.7;
}

.project-modal-thumb:hover,
.project-modal-thumb.active {
    border-color: #00f8ff;
    transform: scale(1.06);
    opacity: 1;
}

.project-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5ff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    margin: 0;
    padding-right: 30px;
}

.project-modal-desc {
    color: #d1d1ff;
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap;
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
    padding-right: 4px;
}

.project-modal-desc::-webkit-scrollbar {
    width: 4px;
}
.project-modal-desc::-webkit-scrollbar-track {
    background: transparent;
}
.project-modal-desc::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

.project-modal-footer {
    margin-top: auto;
}

/* Modal responsive */
@media (max-width: 767px) {
    .project-modal-inner {
        flex-direction: column;
        padding: 20px 16px;
    }

    .project-modal-gallery {
        flex: none;
        max-width: 100%;
    }

    .project-modal-title {
        font-size: 1.2rem;
    }

    .project-modal-main-img {
        max-height: 220px;
    }

    .project-modal-desc {
        max-height: 200px;
        font-size: 0.9rem;
    }
}
