*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    /* ✅ allows vertical scroll, hides horizontal overflow */
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background: transparent;
}

/* Vanta background container - always fills screen */
#vanta-bg {
    position: fixed;
    inset: 0;
    /* top: 0; right: 0; bottom: 0; left: 0 */
    width: 100%;
    height: 100%;
    z-index: -1;
    touch-action: none;
    overflow: hidden;
}

/* Neon radial glow overlay */
#vanta-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center,
            rgba(0, 255, 80, 0.25) 0%,
            rgba(0, 255, 80, 0.1) 35%,
            transparent 70%);
    mix-blend-mode: screen;
    z-index: 1;
}

/* Main content area */
main {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    padding: 20px;
}

:root {
    --main-color: #7cf03d;
}



.section {
    padding: 60px 40px;
    margin-inline: 75px;
    margin-bottom: 100px;
    scroll-margin-top: 100px;
    /* Adjust this value based on your header height */

    border: 1px solid #328c01;
    border-radius: 15px;
    box-shadow: 0 0 10px 2px rgba(88, 252, 0, 0.5);
    background: linear-gradient(135deg, rgba(40, 70, 30, 0.4), rgba(0, 0, 0, 0.8));

    /* Initially hidden */
    opacity: 0;
    will-change: opacity, transform;

    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* Common reveal class added by JS */
.section.reveal {
    opacity: 1;
    transform: none;
}


/* SLIDE IN FROM LEFT */
.slide-left {
    transform: translateX(-60px);
}

.slide-left.reveal {
    transform: translateX(0);
}

/* SLIDE IN FROM RIGHT */
.slide-right {
    transform: translateX(60px);
}

.slide-right.reveal {
    transform: translateX(0);
}

/* ZOOM IN */
.zoom-in {
    transform: scale(0.85);
}

.zoom-in.reveal {
    transform: scale(1);
}

/* BOUNCE IN */
.flip-in {
    opacity: 0;
    transform: rotateY(90deg);
    transform-style: preserve-3d;
    transition: opacity 0.7s ease, transform 0.7s ease;
    backface-visibility: hidden;
}

.flip-in.reveal {
    opacity: 1;
    transform: rotateY(0deg);
}

.fade-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-slide-left.reveal {
    opacity: 1;
    transform: translateX(0);
}

/* Slide up + fade in */
@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Neon glow pulse */
@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 8px 3px rgba(88, 252, 0, 0.6);
        border-color: #58fc00;
    }

    50% {
        box-shadow: 0 0 20px 6px rgba(88, 252, 0, 1);
        border-color: #aaff33;
    }
}

/* Navbar Base */
.navbar {
    background-color: rgba(11, 11, 11, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: 0 4px 30px rgba(0, 255, 100, 0.1);
}

/* Brand Name */
.navbar-brand {
    color: #00f300 !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #39ff14 !important;
}

/* Nav Items */
.nav-link {
    position: relative;
    font-size: 1rem;
    color: #ffffff !important;
    margin: 0.5rem 1rem;
    transition: color 0.3s ease;
}

/* Hover Effect with Underline Animation */
.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #39ff14;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* Custom Toggle Icon (Hamburger ⇄ Close) */
.custom-toggler .navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 18px;
    position: relative;
}

/* When expanded */
#navbarNav.show {
    max-height: 500px;
    /* big enough for full menu */
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Staggered fade+slide links */
#navbarNav.show .nav-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.6s forwards ease;
}

#navbarNav.show .nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

#navbarNav.show .nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

#navbarNav.show .nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

#navbarNav.show .nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

#navbarNav.show .nav-item:nth-child(5) {
    animation-delay: 0.5s;
}

#navbarNav.show .nav-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Keyframes */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#navbarNav.collapsing .nav-item {
    animation: fadeSlideOut 0.4s forwards ease;
}

@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Staggered close — use small delays */
#navbarNav.collapsing .nav-item:nth-child(1) {
    animation-delay: 0s;
}

#navbarNav.collapsing .nav-item:nth-child(2) {
    animation-delay: 0.05s;
}

#navbarNav.collapsing .nav-item:nth-child(3) {
    animation-delay: 0.1s;
}

#navbarNav.collapsing .nav-item:nth-child(4) {
    animation-delay: 0.15s;
}

#navbarNav.collapsing .nav-item:nth-child(5) {
    animation-delay: 0.2s;
}

#navbarNav.collapsing .nav-item:nth-child(6) {
    animation-delay: 0.25s;
}

.custom-toggler .navbar-toggler-icon span,
.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #39ff14;
    transition: all 0.3s ease;
}

.custom-toggler .navbar-toggler-icon::before {
    top: 0;
    right: 0px;
}

.custom-toggler .navbar-toggler-icon span {
    top: 8px;
    right: 0px;
}

.custom-toggler .navbar-toggler-icon::after {
    top: 16px;
    right: 0px;
}

/* Transform to 'X' when open */
.custom-toggler.open .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 8px;
}

.custom-toggler.open .navbar-toggler-icon span {
    opacity: 0;
}

.custom-toggler.open .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 8px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    /* .navbar-nav {
        margin-top: 1rem;
    } */
    .navbar-nav {
        display: none;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar-brand {
        margin-inline: auto;
    }

    .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        background-color: #39ff14;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 15%;
    }

    #vanta-bg {
        display: none;
    }

    body {
        background: #000;
    }
}


/* Hero Section */
.hero-section {
    background-color: #0b0b0b;
    color: #fff;
    height: 700px;
    width: 100%;

}

.containers {
    height: 575px;
    display: flex;
    gap: 75px;
}

.hero-text {
    position: relative;
    /* Needed for pseudo-elements to position inside */
    flex: 1;
    max-width: 600px;
}

/* Common style for both glowing shapes */
.hero-text::after,
.hero-text::before {
    content: '';
    position: absolute;
    height: 12vw;
    width: 12vw;
    max-width: 80px;
    max-height: 80px;
    z-index: -1;
    border-radius: 10px;
    background: linear-gradient(135deg, #39ff14, #00ffe0);
    opacity: 0.9;
    animation: floatGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #39ff14) drop-shadow(0 0 20px #00ffe0);
}

/* Bottom-right corner */
.hero-text::after {
    bottom: -5%;
    right: -5%;
    clip-path: polygon(100% 50%, 100% 100%, 50% 100%, 0% 100%, 100% 0%);
}

/* Top-left corner */
.hero-text::before {
    top: -5%;
    left: -5%;
    clip-path: polygon(0% 0%, 50% 0%, 0% 50%);
}

/* Optional floating animation */
@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}


.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-text span {
    color: #00ff00;
}

.hero-summary {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #ffffff;
}

.hero-summary span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .07rem var(--main-color);
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {

    25%,
    100% {
        display: none;
    }
}

.hero-summary span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: .2rem solid var(--main-color);
    color: var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {

    10%,
    100% {
        width: 0;
    }

    70%,
    90% {
        width: 100%;
    }

}

.hero-icons {
    margin-top: 25px;
}

.hero-icons a {
    margin-right: 20px;
    font-size: 1.5rem;
    color: #f0fff0;
    transition: transform 0.3s, color 0.3s;
}

.hero-icons a:hover {
    color: #00ff00;
    transform: scale(1.1);
}


.hero-image-wrapper .hero-frame::before,
.hero-image-wrapper .hero-frame::after {
    content: '';
    position: absolute;
    width: 30rem;
    height: 50rem;
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
    background: conic-gradient(transparent, transparent, transparent, var(--main-color));
}

.hero-image-wrapper .hero-frame::after {
    animation: -5s;
}

.hero-image-wrapper .hero-frame {
    position: relative;
    width: 350px;
    height: 350px;
    padding: 10px;
    object-fit: contain;
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper .hero-frame .hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    border: 0.1rem solid #111;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.hero-image-wrapper .hero-frame .hero-image img {
    position: absolute;
    top: 3rem;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

/* Glowing animation ring */
@keyframes greenGlow {
    0% {
        box-shadow: 0 0 20px #4caf50, 0 0 40px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow: 0 0 30px #76ff03, 0 0 60px rgba(76, 255, 80, 0.5);
    }

    100% {
        box-shadow: 0 0 20px #4caf50, 0 0 40px rgba(76, 175, 80, 0.3);
    }
}



/* Zoom In Animation on load */
@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.hero-quotes {
    font-style: italic;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-icons a {
    color: #fff;
    transition: color 0.3s;
    font-size: 1.5rem;
}

.hero-icons a:hover {
    color: #ffffff;
}


@media (max-width: 768px) {
    .section {
        scroll-margin-top: 450px;
        margin-bottom: 75px;
    }

    .hero-section {
        height: auto;
        padding: 40px 20px;
    }

    .containers {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        height: auto;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }


    .hero-text h2 {
        font-size: 2rem;
        margin-top: 20px;
    }

    .hero-summary {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-quotes {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .hero-image-wrapper .hero-frame {
        width: 220px;
        height: 220px;
    }

    .hero-image-wrapper .hero-frame .hero-image img {
        top: 1rem;
        width: 90%;
    }

    .hero-image-wrapper .hero-frame::before,
    .hero-image-wrapper .hero-frame::after {
        width: 22rem;
        height: 22rem;
    }

    .hero-icons {
        margin-top: 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-summary {
        font-size: 0.9rem;
    }

    .hero-quotes {
        font-size: 0.8rem;
    }

    .hero-icons a {
        font-size: 1.3rem;
        margin-right: 15px;
    }

    .hero-image-wrapper .hero-frame {
        width: 180px;
        height: 180px;
    }

    .hero-image-wrapper .hero-frame .hero-image img {
        top: 1rem;
        width: 85%;
    }

    .hero-image-wrapper .hero-frame::before,
    .hero-image-wrapper .hero-frame::after {
        width: 18rem;
        height: 18rem;
    }
}


/* About Section */
.about {
    background-color: #0a0a0a;
}

/* Image with Rounded Corners + 3D Tilt + Glow */
.about-img {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* About Text Styling */
.about-text h2 {
    color: #55ff00;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

/* Paragraph Text */
.about-text p {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.scroll-animate.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styling */
.btn-success {
    background-color: #00ff00;
    border-color: #2f8f2f;
    font-weight: 600;
    color: #000;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-success:hover {
    background-color: #90ee90;
    border-color: #90ee90;
    color: #000;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    /* initial hidden */
}

.about-frame {
    width: 400px;
    height: 500px;
    border-radius: 16px;
    background-color: #0a0a0a;
    /* fallback */
    background:
        radial-gradient(circle at top right, #127701 15%, transparent 25%),
        radial-gradient(circle at bottom left, #138000 15%, transparent 25%);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.3);
    animation: popIn 0.7s ease-in-out;
}

.about-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    padding-top: 35px;
    /* box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); */
}

/* Optional animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glowing animation */
@keyframes popGlow {

    0%,
    100% {
        box-shadow:
            0 0 25px 10px rgba(57, 255, 20, 0.3),
            0 0 40px 5px rgba(57, 255, 20, 0.2) inset;
    }

    50% {
        box-shadow:
            0 0 35px 15px rgba(57, 255, 20, 0.5),
            0 0 50px 8px rgba(57, 255, 20, 0.3) inset;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-frame {
        max-width: 250px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .about-text {
        text-align: left;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-frame {
        max-width: 180px;
        height: 400px;
        margin-top: 50px;
        object-fit: fill;
    }
}

@media (max-width: 576px) {
    .about-text h2 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .btn-success {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .about-frame {
        display: none;
    }
}

/*Education and experience*/
.edu-exp {
    background-color: #111;
    color: #00ff00;
}

.edu-exp-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.edu-exp-column {
    margin-inline: auto;
    flex: 1;
    min-width: 280px;
    max-width: 450px;
}

.edu-title {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 10px;
}

.edu-exp-card {
    background-color: #0b0b0b;
    border: 2px solid #4caf50;
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px #1e4821aa;
    text-align: center;
    transition: transform 1.2s ease, box-shadow 0.3s ease;
}

.edu-exp-card i {
    margin-bottom: 12px;
    color: #ffffff;
    filter: drop-shadow(0 0 3px rgb(7, 87, 7));
}

.edu-exp-card h5 {
    margin: 10px 0 6px;
    font-weight: 500;
    color: #ffffff;
}

.edu-exp-card p {
    font-size: 0.9rem;
    color: #b8ffb8;
    margin: 0;
    line-height: 1.4;
}

.edu-exp-card {
    position: relative;
    overflow: hidden;
    background-color: #0b0b0b;
    border: 1px solid #39ff14;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px #4f604ca1;
}

.edu-exp-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(#42f900, #39ff14, #00ff4c, #39ff14);
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
    opacity: 0.2;
}

.edu-exp-card:hover {
    transform: scale(1.05);
    background-color: #151915;
    box-shadow: 0 0 5px 5px #171717aa;
    border: 1px solid #ececec;
}

.edu-exp-card>* {
    position: relative;
    z-index: 1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.icon-img {
    width: 200px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Tablet (<= 991px) */
@media (max-width:991px) {
    .edu-exp-column {
        max-width: 420px;
    }

    .icon-img {
        width: 160px;
        height: 60px;
    }

    .edu-title {
        font-size: 1.25rem;
    }

    .edu-exp-card h5 {
        font-size: 1rem;
    }

    .edu-exp-card p {
        font-size: 0.85rem;
    }
}

/* Phone (<= 576px) */
@media (max-width: 576px) {
    .section {
        margin-inline: 10px;
    }

    .edu-exp-flex {
        flex-direction: column;
        gap: 20px;
    }

    .edu-exp {
        padding: 0px 0px;
    }

    .container {
        padding: 0px;
    }

    .edu-exp-column {
        max-width: 100%;
        padding: 0 0;
    }

    .edu-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
        border: none;
        color: #00ff00;
    }

    .edu-exp-card {
        background: none;
        border: none;
        padding: 0;
        margin-bottom: 20px;
        box-shadow: none;
        border-radius: 0;
        transition: none;
    }

    .edu-exp-card::before {
        display: none !important;
    }

    .edu-exp-card h5 {
        color: #ffffff;
        font-size: 1.2rem;
        margin: 5px 0;
    }

    .edu-exp-card p {
        font-size: 0.8rem;
        color: #b8ffb8;
        line-height: 1.4;
        font-weight: 500;
        margin-bottom: 20px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .icon-img {
        width: 100px;
        height: auto;
        margin-bottom: 8px;
    }

    .edu-exp-card:hover {
        transform: none;
        background: none;
        box-shadow: none;
        border: none;
    }

}

/* Very small phones (<= 360px) */
@media (max-width:390px) {
    .icon-img {
        width: 150px;
        height: 120px;
    }

    .edu-exp-card p {
        font-size: 0.75rem;
    }

    .name {
        font-size: 1rem;
    }


    .edu-exp-card p {
        font-size: 1rem;
        color: #b8ffb8;
        line-height: 1.4;
        font-weight: 500;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Skills Section */
.skills {
    background-color: #111;
    color: #00ff00;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.skill-card {
    background-color: #0b0b0b;
    border-radius: 15px;
    padding: 25px 15px;
    box-shadow: 0 0 15px #1e4821aa;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    text-align: center;
}

.skill-card i {
    color: #95dd6e;
}

.skill-card h5 {
    margin: 8px 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #90ee90;
}

.skill-card p {
    font-size: 0.9rem;
    color: #b8ffb8;
    margin: 0;
    line-height: 1.3;
}

.skill-card:hover {
    transform: scale(0.9);
    box-shadow: 0 0 3px 3px #1aff00;
    cursor: pointer;
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .skill-card {
        padding: 20px 10px;
    }

    .skill-card i {
        font-size: 1.7rem;
    }

    .skill-card h5 {
        font-size: 1rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }
}

/* Small Devices (max-width: 576px) */
@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 2fr;
        gap: 15px;
        padding: 0 10px;
    }

    .skill-card i {
        font-size: 1.6rem;
        margin-bottom: 6px;
        color: #90ee90;
        filter: none;
    }

    .skill-card h5 {
        font-size: 1rem;
        margin: 4px 0;
    }

    .skill-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    #skills h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

.project-card {
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgb(11, 46, 1);
}

.project-title {
    font-weight: bolder;
    color: #ffffff;
    margin-bottom: 15px;
}

.project-description {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    margin: 0 auto 20px;
    max-width: 800px;
}

.project-description li {
    margin-bottom: 10px;
    list-style: disc inside;
}

.project-image {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    border: 1px solid #00ff88;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 5px rgba(0, 255, 26, 0.8);
}

.project-video {
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    border: 1px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.4);
    margin-top: 20px;
}

/* ──────────────────────────────
   PROJECTS  –  Responsive tweaks
   ────────────────────────────── */

/*  Tablet  (≤ 992 px)  */
@media (max-width: 992px) {
    .project-card {
        padding: 20px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .project-image {
        width: 160px;
        margin: 6px;
    }

    .project-video {
        width: 95%;
        max-width: 560px;
    }
}

/*  Mobile  (≤ 576 px)  */
@media (max-width: 576px) {

    /* stack text & media neatly */
    .project-card {
        padding: 15px 10px;
        text-align: center;
    }

    .project-description {
        text-align: left;
        /* keep bullet indent */
        font-size: 0.8rem;
    }

    /* shrink images */
    .project-image {
        width: 270px;
        height: 200px;
        border-radius: 8px;
        margin: 4px;
        box-shadow: 0 0 8px rgba(0, 255, 128, 0.4);
    }

    /* video smaller & full-width */
    .project-video {
        width: 100%;
        max-width: 320px;
        margin-top: 15px;
    }

    /* trim hover / zoom on touch devices */
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }

    .project-image:hover {
        transform: none;
        box-shadow: 0 0 12px rgba(0, 255, 128, 0.5);
    }
}

/*  Extra-small phones  (≤ 360 px)  */
@media (max-width: 355px) {
    .project-image {
        width: 200px;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-video {
        max-width: 250px;
    }
}

/* Contact Section */
.contact {
    background-color: #0a0a0a;
}

.contact-box {
    background-color: #1a1a1a;
    box-shadow: 0 0 10px #255226;
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
}

.contact-box a {
    color: #90ee90;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-box {
        padding: 2rem;
        margin: 0 auto;
        word-break: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }

    .contact {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .contact-box p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .contact-box h5 {
        font-size: 1.1rem;
    }

    .contact-box a {
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    .contact-box i {
        font-size: 1.8rem;
    }

    .contact-box h5 {
        font-size: 1.1rem;
    }

    .contact-box p {
        font-size: 0.7rem;
    }

    .contact {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Responsive footer styling */
.portfolio-footer {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Optional: adjust font size on small devices */
@media (max-width: 480px) {
    .portfolio-footer {
        font-size: 0.8rem;
        padding: 12px 10px;
    }
}




/* ============================
   GALLERY SECTION (UNIQUE)
============================ */
.galleryscope-section {
    background-color: #0a0a0a;
    color: #f5f5f5;
    padding: 80px 20px;
    text-align: center;
}

.galleryscope-container {
    max-width: 1200px;
    margin: 0 auto;
}

.galleryscope-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00f300;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.galleryscope-subtitle {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* ===== GRID ===== */
.galleryscope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.galleryscope-item {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #00f300;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galleryscope-item:hover {
    transform: translateY(-6px);
}

/* ===== IMAGE ===== */
.galleryscope-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.galleryscope-item:hover .galleryscope-img {
    transform: scale(1.1);
}

/* ===== TEXT ===== */
.galleryscope-text {
    padding: 15px;
    background-color: #111;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.galleryscope-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00f300;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.galleryscope-item-desc {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .galleryscope-title {
        font-size: 2rem;
    }

    .galleryscope-img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .galleryscope-section {
        padding: 60px 30px;
    }

    .galleryscope-grid {
        gap: 15px;
    }

    .galleryscope-img {
        height: 250px;
    }

    .galleryscope-title {
        font-size: 1.8rem;
    }

    .galleryscope-item-desc {
        font-size: 0.85rem;
    }
}



/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #00f300;
    opacity: 0.7;
    color: #000000;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background: #00f300;
    transform: translateY(-4px);
}