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

/* ================= CYBERPUNK GLOBAL STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle, rgb(10, 15, 40) 10%, rgb(5, 5, 20) 90%);
    color: #4ade80; /* Neon Green */
    font-family: 'Orbitron', sans-serif; /* Cyberpunk-style font */
    scroll-behavior: smooth;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding-top: 60px; /* Fix for navbar overlap */
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ================= CYBERPUNK SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 25, 0.8);
    border-left: 1px solid #4ade80; /* Neon Green */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4ade80, #38bdf8); /* Neon Green to Sky Blue */
    border-radius: 4px;
    box-shadow: 0px 0px 5px #4ade80, 0px 0px 10px #38bdf8;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #38bdf8, #4ade80);
    box-shadow: 0px 0px 10px #38bdf8, 0px 0px 15px #4ade80;
}

/* ================= CYBERPUNK GLOW EFFECT ================= */
.cyber-glow {
    text-shadow: 0px 0px 5px #4ade80, 0px 0px 10px #38bdf8;
}

/* ================= LINK STYLING ================= */
a {
    color: #4ade80; /* Neon Green */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #38bdf8; /* Sky Blue */
    text-shadow: 0 0 8px #38bdf8;
}

/* ================= CYBERPUNK CONTAINER BOX ================= */
.cyber-box {
    background: rgba(5, 5, 20, 0.8);
    border: 2px solid #4ade80; /* Neon Green */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #4ade80, 0px 0px 20px #38bdf8;
    transition: transform 0.3s ease-in-out;
}

.cyber-box:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px #38bdf8, 0px 0px 25px #4ade80;
}

/* ================= HACKER-STYLE CURSOR ================= */
body {
    cursor: url('https://cur.cursors-4u.net/cursors/cur-11/cur1018.cur'), auto;
}

/* ================= NAVBAR ================= */

.navbar {
    background: rgba(10, 15, 29, 0.9);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 6%;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    background: rgba(2, 8, 23, 0.95);
    box-shadow: 0 1px 4px rgba(56, 189, 248, 0.2);
    padding: 8px 6%;
}

/* ===== Logo Styling ===== */
.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    width: 75px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

/* ===== Navigation Links ===== */
.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 14px;
}

.nav-links a {
    color: #4ade80;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
    height: 42px;
    line-height: 42px;
}

/* Hover & Active Effects */
.nav-links a:hover {
    color: #38bdf8;
    text-shadow: 0 0 6px #38bdf8;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #38bdf8;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ===== Download Resume Button (Font Matches Nav Links) ===== */
.download-btn {
    background: linear-gradient(90deg, #4ade80, #4ade80);
    color: #0a0f1d;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 600; /* Same as navbar links */
    font-size: 1rem; /* Same as navbar links */
    text-decoration: none;
    text-transform: none;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8), 0 0 16px rgba(74, 222, 128, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    line-height: 42px;
    margin-left: auto;
}

/* Hover effect: Change to Blue */
.download-btn:hover {
    background: linear-gradient(90deg, #38bdf8, #38bdf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 1), 0 0 18px rgba(56, 189, 248, 0.8);
    transform: scale(1.05);
}

.download-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 16px rgba(56, 189, 248, 1);
}

/* ===== HAMBURGER MENU BUTTON ===== */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: #4ade80;
    position: relative;
    right: 0;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 3px;
    background: #4ade80;
    margin: 4px auto;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ===== HAMBURGER MENU ANIMATION ===== */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 14px;
    }

    .navbar-logo img {
        width: 65px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000; /* Ensures it's above other elements */
    }

    .nav-links {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(2, 8, 23, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
    overflow-y: auto; /* Enable scrolling */
    padding: 20px 0; /* Ensure space for scrolling */
}


    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 14px 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px;
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(56, 189, 248, 0.4);
        transition: background 0.3s ease;
        height: auto;
        line-height: normal;
    }

    .nav-links a:hover {
        background: rgba(56, 189, 248, 0.15);
        color: #38bdf8;
    }

    .nav-links a::after {
        display: none;
    }

    /* Adjusting Download Button for Mobile */
    .download-btn {
        font-size: 1rem;
        margin-top: 20px;
        padding: 12px 30px;
    }

    @media (max-width: 480px) {
        .download-btn {
            font-size: 0.9rem;
            padding: 10px 24px;
        }
    }
}




/* ================= HERO SECTION ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 10%;
    background: radial-gradient(circle, rgb(30, 40, 80) 20%, #020617 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    flex-direction: column;
}

/* THREE.JS CANVAS BACKGROUND */
.hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Three.js animation stays behind */
    pointer-events: none; /* Prevents interaction issues */
}

/* HERO CONTENT */
.hero-content {
    max-width: 80%;
    z-index: 2;
    position: relative;
}

/* HERO HEADING */
.hero h1 {
    font-size: 2.6rem;
    font-weight: bold;
    color: #f8fafc; /* Slightly softer white */
    text-shadow: 0 0 20px #4ade80, 0 0 40px rgba(56, 189, 248, 0.8);
    animation: glowText 2s ease-in-out infinite alternate;
    line-height: 1.3;
    margin-bottom: 20px;
}

@keyframes glowText {
    0% {
        text-shadow: 0 0 15px #4ade80, 0 0 30px rgba(56, 189, 248, 0.6);
    }
    100% {
        text-shadow: 0 0 30px #38bdf8, 0 0 50px rgba(74, 222, 128, 0.8);
    }
}

.hero h1 span {
    color: #38bdf8; /* Sky Blue */
    text-shadow: 0 0 20px #38bdf8, 0 0 40px rgba(74, 222, 128, 0.8);
}

/* HERO SUBTEXT */
.hero p {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin: 10px 0 30px;
    line-height: 1.6;
}

/* CTA BUTTON */
.cta-button {
    background: linear-gradient(135deg, #4ade80, #38bdf8); /* Neon Green to Sky Blue */
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7), 0 0 50px rgba(74, 222, 128, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(135deg, #38bdf8, #4ade80); /* Sky Blue to Neon Green */
    transform: scale(1.12);
    box-shadow: 0 0 50px rgba(74, 222, 128, 0.8), 0 0 80px rgba(56, 189, 248, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 0 5%;
        height: auto;
        min-height: 100vh;
        text-align: center;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 85%;
        margin: 0 auto;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 14px 35px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 0 5%;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 95%;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 5%;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        text-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(74, 222, 128, 0.6);
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 12px 25px;
        width: 90%;
        text-align: center;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 10px 20px;
        width: 95%;
    }
}

/* ================= CYBERPUNK ABOUT SECTION ================= */
.about {
    background: radial-gradient(circle, rgb(10, 15, 40) 10%, rgb(5, 5, 20) 90%);
    padding: 100px 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1200px; /* Constrain width on larger screens */
    margin: auto; /* Center the section */
    border-radius: 10px; /* Subtle rounding for a premium feel */
}

/* Background Overlay - Digital Circuit Effect */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/circuitboard.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    filter: brightness(15%) blur(1.5px);
    animation: circuitFlow 10s linear infinite alternate;
    z-index: -1;
}

/* Profile Image */
.about-image {
    width: 100%;
    max-width: 250px; /* Balanced size for both desktop and mobile */
    display: block;
    margin: 0 auto 40px;
    border-radius: 50%;
    border: 3px solid #4ade80; /* Neon Green */
    box-shadow: 0 0 30px #4ade80, 0 0 50px #38bdf8; /* Neon Glow Effect */
    animation: float 4s ease-in-out infinite, pulseGlow 3s infinite alternate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px #38bdf8, 0 0 70px #4ade80;
}

/* Section Title */
.about h2 {
    color: #4ade80; /* Neon Green */
    font-size: 3.2rem; /* Balanced size */
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 12px #4ade80, 0 0 25px #38bdf8;
    animation: neonFlicker 3s infinite alternate;
}

/* About Description */
.about p {
    color: #cbd5e1;
    font-size: 1.3rem;
    line-height: 2;
    max-width: 750px;
    margin: 0 auto 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Call to Action Button */
.about .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80, #38bdf8); /* Neon Green to Sky Blue */
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 20px #4ade80, 0 0 40px #38bdf8;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.about .cta-button:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, #38bdf8, #4ade80);
    box-shadow: 0 0 30px #38bdf8, 0 0 60px #4ade80;
}

/* ================= CYBERPUNK ANIMATIONS ================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 30px #4ade80, 0 0 50px #38bdf8; }
    100% { box-shadow: 0 0 50px #38bdf8, 0 0 80px #4ade80; }
}

@keyframes neonFlicker {
    0%, 100% { text-shadow: 0 0 10px #4ade80, 0 0 30px #38bdf8; }
    50% { text-shadow: 0 0 20px #38bdf8, 0 0 50px #4ade80; }
}

@keyframes circuitFlow {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet View */
@media (max-width: 1024px) {
    .about {
        padding: 80px 5%;
    }

    .about h2 {
        font-size: 3rem;
    }

    .about p {
        font-size: 1.2rem;
        max-width: 700px;
    }

    .about .cta-button {
        padding: 10px 26px;
    }

    .about-image {
        max-width: 220px;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .about {
        padding: 70px 6%;
    }

    .about h2 {
        font-size: 2.8rem;
    }

    .about p {
        font-size: 1.2rem;
    }

    .about .cta-button {
        padding: 12px 28px;
        font-size: 1.1rem;
    }

    .about-image {
        max-width: 230px;
    }
}

/* Small Mobile View */
@media (max-width: 480px) {
    .about {
        padding: 60px 5%;
    }

    .about h2 {
        font-size: 2.5rem;
    }

    .about p {
        font-size: 1.1rem;
    }

    .about .cta-button {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .about-image {
        max-width: 200px;
    }
}


/* =================== Tech Skills Section - Cyberpunk Theme =================== */
.skills-section {
    background: radial-gradient(circle, rgb(17, 24, 39) 20%, #060912 100%);
    padding: 60px 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-in-out;
}

.skills-section * {
    font-family: 'Orbitron', sans-serif;
    box-sizing: border-box;
}

/* Section Title */
.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #4ade80;
    border-bottom: 3px solid rgba(79, 195, 247, 0.8);
    display: inline-block;
    padding-bottom: 8px;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.5);
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
}

.section-title:hover {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

/* Scroll Wrapper */
.scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-snap-type: x mandatory;
}

.scroll-wrapper::-webkit-scrollbar {
    height: 5px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* Scroll Container */
.scroll-container {
    display: flex;
    white-space: nowrap;
    width: max-content;
    overflow: hidden;
    position: relative;
    gap: 30px;
}

/* Scroll Content */
.scroll-content {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 15px 0;
    flex-wrap: nowrap;
    animation: scrollAnimation 20s linear infinite;
}

@keyframes scrollAnimation {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Disable animation on mobile for manual scroll */
@media (max-width: 768px) {
    .scroll-content {
        animation: none;
    }
}

/* Skill Card */
.skill-item {
    width: 280px;
    height: 260px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    transition: all 0.4s ease-in-out;
    border: 1px solid rgba(79, 195, 247, 0.2);
    scroll-snap-align: center;
}

.skill-item:hover {
    background: linear-gradient(135deg, #3b82f6, #4ade80);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    transform: translateY(-8px) scale(1.03);
}

/* Skill Name */
.skill-name {
    color: #e0f7fa;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0 8px;
    transition: color 0.3s ease-in-out;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.skill-item:hover .skill-name {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Skill Icons */
.skill-image {
    height: 80px;
    width: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.5));
}

.skill-item:hover .skill-image {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Individual Skill Icons */
.python-icon { background-image: url('images/python.png'); }
.java-icon { background-image: url('images/java.png'); }
.html-icon { background-image: url('images/html.png'); }
.css-icon { background-image: url('images/css.png'); }
.js-icon { background-image: url('images/js.png'); }
.sql-icon { background-image: url('images/sql.png'); }
.tensorflow-icon { background-image: url('images/tensorflow.png'); }
.pytorch-icon { background-image: url('images/pytorch.png'); }
.r-icon { background-image: url('images/r.png'); }
.powerbi-icon { background-image: url('images/powerbi.png'); }
.tableau-icon { background-image: url('images/tableau.png'); }
.git-icon { background-image: url('images/git1.png'); }
.github-icon { background-image: url('images/github.gif'); }
.jup-icon { background-image: url('images/jup.png'); }

/* Responsive Design */
@media (max-width: 1024px) {
    .scroll-container {
        max-width: 90%;
    }
    .skill-item {
        width: 260px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 50px 5%;
    }
    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .skill-item {
        width: 240px;
        height: 220px;
        padding: 15px;
    }
    .skill-image {
        height: 70px;
        width: 70px;
    }
    .scroll-container {
        overflow-x: auto;
        animation: none;
        display: flex;
    }
}

@media (max-width: 480px) {
    .skills-section {
        padding: 40px 5%;
    }
    .section-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    .scroll-content {
        gap: 20px;
    }
    .skill-item {
        width: 220px;
        height: 200px;
        padding: 12px;
    }
    .skill-name {
        font-size: 1.1rem;
    }
    .scroll-container {
        overflow-x: auto;
        animation: none;
        display: flex;
    }
}



/* ================= PROJECTS SECTION ================= */
.projects {
    background: rgba(10, 15, 29, 0.9);
    padding: 60px 6%;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #4ade80;
    text-shadow: 0px 0px 6px #4ade80, 0px 0px 12px #38bdf8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Project Cards Container */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    padding: 40px 20px;
}

/* Project Card Styling */
.project-card {
    background: rgba(2, 8, 23, 0.95);
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 16px;
    box-shadow: 0px 0px 15px #4ade80, 0px 0px 25px #38bdf8;
    width: 340px;
    height: 320px;
    position: relative;
    perspective: 1300px;
    transform-style: preserve-3d;
    transition: transform 0.75s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: 0px 0px 20px #4ade80, 0px 0px 30px #38bdf8;
}

/* Flip Effect */
.project-card.flipped {
    transform: rotateY(180deg);
}

/* Inner Project Card */
.project-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

/* Front & Back Sides */
.project-front,
.project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(2, 8, 23, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #4ade80;
    padding: 24px;
    backface-visibility: hidden;
    border-radius: 16px;
    transition: background 0.3s ease-in-out;
}

.project-front h3 {
    margin: 0;
    font-size: 1.8rem;
}

.project-back {
    background: rgba(10, 15, 29, 0.97);
    color: #4ade80;
    transform: rotateY(180deg);
    font-size: 1.1rem;
    padding: 20px;
}

.project-back p {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

/* Technology Stack */
.tech-stack {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-stack span {
    background: rgba(0, 255, 193, 0.3);
    border: 1px solid #4ade80;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #4ade80;
    text-shadow: 0px 0px 6px #4ade80, 0px 0px 12px #38bdf8;
}

/* Status Label */
.status-label {
    background: #38bdf8;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-top: 12px;
    box-shadow: 0px 0px 12px #38bdf8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-container {
        gap: 30px;
        padding: 30px 15px;
    }
  
    .project-card {
        width: 300px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
  
    .project-card {
        width: 90%;
        max-width: 330px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        gap: 20px;
    }
  
    .project-card {
        max-width: 300px;
        height: 280px;
    }

    .project-front,
    .project-back {
        font-size: 1.2rem;
        padding: 18px;
    }

    .project-back {
        font-size: 1rem;
    }
}

/*================== Achievements Section ==================*/
.achievements {
    text-align: center;
    padding: 60px 8%;
    background: radial-gradient(circle, rgb(17, 24, 39) 20%, #060912 100%);
    color: #ffffff;
}

/* Section Title */
.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Adjusted for better fit on mobile */
    font-weight: 700;
    color: #4ade80; /* Neon Green */
    margin-bottom: 20px;
    border-bottom: 3px solid rgba(79, 195, 247, 0.8);
    display: inline-block;
    padding-bottom: 8px;
    transition: all 0.3s ease-in-out;
    max-width: 90%;
    word-wrap: break-word;
    line-height: 1.2; /* Improved line height for better readability */
}

.section-title:hover {
    color: #38bdf8; /* Sky Blue */
    border-bottom-color: #38bdf8;
}

/* Achievements Container */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto;
    padding-bottom: 20px;
}

/* Achievement Card (Flip Effect) */
.achievement-card {
    position: relative;
    width: 100%;
    height: 260px;
    perspective: 1200px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.achievement-card:hover {
    transform: scale(1.02);
}

.achievement-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s ease-in-out;
}

.achievement-card:hover .achievement-inner {
    transform: rotateY(180deg);
}

/* Front & Back Styles */
.achievement-front,
.achievement-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Front Side */
.achievement-front {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #4ade80; /* Neon Green */
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

/* Back Side (No Borders or Padding) */
.achievement-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #3b82f6, #4ade80);
    color: #ffffff;
    overflow: hidden;
    padding: 0;
    border: none;
}

/* Back Side Image */
.achievement-back img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire card */
    border-radius: 12px; /* Matches the card's border radius */
}

/* Achievement Content */
.achievement-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #4ade80; /* Neon Green */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fake Button */
.fake-btn {
    margin-top: 12px;
    padding: 10px 15px;
    background: #38bdf8; /* Sky Blue */
    color: #222;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

.fake-btn:hover {
    background: #4ade80; /* Neon Green */
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.7);
    transform: scale(1.05);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .achievements-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .achievements {
        padding: 50px 5%;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem); /* Adjusted for better fit on mobile */
        padding-bottom: 6px;
    }

    .achievements-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .achievement-card {
        height: 240px; /* Adjusted height for mobile */
    }

    .achievement-front {
        font-size: 1.1rem; /* Adjusted font size for mobile */
        padding: 12px;
    }

    .achievement-content h3 {
        font-size: 1.1rem; /* Adjusted font size for mobile */
    }

    .fake-btn {
        font-size: 0.85rem; /* Adjusted font size for mobile */
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .achievements {
        padding: 40px 5%;
    }

    .section-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem); /* Further adjusted for small screens */
        padding-bottom: 4px;
    }

    .achievements-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .achievement-card {
        width: 90%;
        max-width: 320px;
        height: 220px; /* Adjusted height for small screens */
    }

    .achievement-front {
        font-size: 1rem; /* Adjusted font size for small screens */
        padding: 10px;
    }

    .achievement-content h3 {
        font-size: 1rem; /* Adjusted font size for small screens */
    }

    .fake-btn {
        font-size: 0.8rem; /* Adjusted font size for small screens */
        padding: 6px 10px;
    }
}

/* Universal Reset for Box-Sizing */
* {
    box-sizing: border-box;
}



/*================== Experience Section ==================*/
.experience {
    text-align: center;
    padding: 80px 8%;
    background: radial-gradient(circle, rgb(20, 30, 50) 20%, #060912 100%);
    color: #ffffff;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: #4ade80; /* Neon Green */
    margin-bottom: 40px;
    border-bottom: 5px solid rgba(79, 195, 247, 0.9);
    display: inline-block;
    padding-bottom: 12px;
    line-height: 1.2;
}

/* Track (Container for Planets) */
.track {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Planet Styling */
.planet {
    cursor: pointer;
    position: relative;
    width: 180px;
    height: 180px;
    transition: transform 0.2s ease-in-out;
}

.planet-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.4);
}

/* Ensure logos inside planets scale properly */
.planet-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    padding: 10px;
}

/* Hover Effects */
.planet:hover {
    transform: scale(1.1);
}

.planet:hover .planet-circle {
    box-shadow: 0 14px 30px rgba(79, 195, 247, 0.6);
}

/* Selected Planet Glow */
.planet.selected .planet-circle {
    box-shadow: 0 0 40px rgba(79, 195, 247, 1);
}

/* ========== Detail Box (Scaled for Different Screens) ========== */
.details-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(15, 23, 42, 0.98);
    color: white;
    padding: 40px;
    border-radius: 24px;
    width: 95%;
    max-width: 850px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 18px 50px rgba(79, 195, 247, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Make Details Box Visible */
.details-box.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Institution Title */
.institution-name {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: bold;
    color: #4ade80;
    margin-bottom: 16px;
    text-align: center;
}

/* Institution Description */
.institution-description {
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: #ffffff;
    line-height: 1.6;
    width: 100%;
    max-width: 750px;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    border-left: 8px solid #4ade80;
    box-shadow: 0px 6px 25px rgba(79, 195, 247, 0.3);
    font-weight: 500;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.2s ease-in-out;
}

.close-btn:hover {
    color: #38bdf8;
    background: rgba(0, 0, 0, 0.7);
}

/* ================= Improved Responsive Design ================== */

/* Tablets */
@media (max-width: 1024px) {
    .track {
        gap: 50px;
    }

    .planet {
        width: 150px;
        height: 150px;
    }

    .details-box {
        padding: 32px;
        max-width: 90%;
    }

    .institution-description {
        font-size: 1.2rem;
        padding: 18px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .experience {
        padding: 60px 5%;
    }

    .track {
        gap: 30px;
    }

    .planet {
        width: 130px;
        height: 130px;
    }

    .details-box {
        padding: 28px;
        max-width: 90%;
    }

    .institution-description {
        font-size: 1.1rem;
        padding: 16px;
        line-height: 1.5;
    }

    .close-btn {
        font-size: 24px;
        top: 10px;
        right: 12px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .experience {
        padding: 40px 5%;
    }

    .track {
        gap: 20px;
    }

    .planet {
        width: 110px;
        height: 110px;
    }

    .details-box {
        padding: 24px;
        max-width: 92%;
    }

    .institution-name {
        font-size: 1.5rem;
    }

    .institution-description {
        font-size: 1rem;
        padding: 14px;
        line-height: 1.4;
    }

    .close-btn {
        font-size: 22px;
        top: 8px;
        right: 10px;
    }
}



/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 20px 12px;
    background: #02050a; /* Darker than the experience section */
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 -2px 12px rgba(255, 255, 255, 0.05);
}

/* Footer Copyright Text */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Soft separator */
    padding-top: 12px;
    margin-top: 18px;
    font-size: 1rem; /* Slightly smaller */
    color: rgba(255, 255, 255, 0.6); /* Light gray for subtle effect */
    letter-spacing: 0.4px;
    text-align: center;
}


/* Footer Links */
.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

/* Footer Icons */
.footer-icon {
    width: 32px; /* Properly sized */
    height: 32px;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

/* Hover Effect on Icons */
.footer-links a:hover .footer-icon {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Contact Details */
.footer-contact {
    margin-top: 10px;
    color: white; /* Ensure text is properly white */
}

/* Contact Info */
.footer-contact p {
    margin: 4px 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: white; /* Ensure proper visibility */
}

/* Email & Phone Link */
.footer-contact a {
    color: white; /* Proper contrast */
    text-decoration: none;
    font-weight: 500; /* Softer bold effect */
    transition: color 0.2s ease-in-out;
}

.footer-contact a:hover {
    color: #4ade80; /* Neon Green */
    text-decoration: underline;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .footer {
        font-size: 1.2rem;
        padding: 18px 8px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-icon {
        width: 28px; /* Adjusted for mobile */
        height: 28px;
    }

    .footer-contact p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        font-size: 1.1rem;
        padding: 15px 6px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-icon {
        width: 26px;
        height: 26px;
    }

    .footer-contact p {
        font-size: 1rem;
    }
}
