/* ================================================================= */
/* === GLOBAL & UTILITY STYLES === */
/* ================================================================= */
/* Base styles for the body */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* ----------------------------------------------------------------- */
/* NEW STYLES: UNLOCK CONTAINER AND ANIMATIONS */
/* ----------------------------------------------------------------- */

/* Styles for the main unlock container with blur effect */
/* Unlock container with animated colorful gradient */
/* Unlock container with animated gradient */
#unlock-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(270deg, #ff6a00, #ee0979, #00c6ff, #6a11cb);
    background-size: 600% 600%;
    animation: gradientShift 8s ease infinite;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    text-align: center;
    height: 100vh;
}

/* Big centered lock */
#locker {
    font-size: 5rem;
    cursor: pointer;
    transition: all 1s ease;
    display: inline-block;
    position: relative;
}

/* Key styling */
#key {
    font-size: 3rem;
    cursor: pointer;
    transition: all 1s ease;
    display: inline-block;
    position: relative;
}

/* Tap message styling */
.tap-msg {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    font-family: "Comic Sans MS", "Poppins", cursive;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
        0 0 20px rgba(255, 0, 255, 0.5);
    animation: pulseText 1.5s infinite;
}

/* Background animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Pulse animation for Tap */
@keyframes pulseText {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* ----------------------------------------------------------------- */
/* GENERAL ANIMATIONS */
/* ----------------------------------------------------------------- */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect for links */
a:hover {
    background-color: #ffd700 !important;
    color: black !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ffd700;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================================================= */
/* === CURTAIN AND UNLOCK ANIMATION === */
/* ================================================================= */

/* Left curtain styling */
#curtain-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    background: url('curtain.jpg') center/cover no-repeat;
    z-index: 20;
    transition: transform 2s ease-in-out;
}

/* Right curtain styling */
#curtain-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: url('curtain.jpg') center/cover no-repeat;
    z-index: 20;
    transition: transform 2s ease-in-out;
}

/* Unlock container styling (before key animation) */
#unlock-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    width: 120px;
    height: 120px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Locker emoji styling */
#locker {
    font-size: 50px;
}

/* Key emoji styling and animation */
#key {
    font-size: 40px;
    margin-top: 10px;
    transition: transform 2s ease, top 2s ease;
    position: relative;
}

/* ================================================================= */
/* === SMART RESUME CHATBOT STYLES === */
/* ================================================================= */

/* CSS variables for light and dark mode */
:root {
    --main-bg: #ffffff;
    --text-color: #111;
    --bot-bg: #f0f0f0;
    --user-bg: #e6f0ff;
    --accent: #2575fc;
}

/* Dark mode styles */
body.dark-mode {
    --main-bg: #181818;
    --text-color: #f1f1f1;
    --bot-bg: #2a2a2a;
    --user-bg: #003366;
    --accent: #00c6ff;
}

/* Styles for smart button and theme toggle */
#smartBtn,
#toggleTheme {
    position: fixed;
    z-index: 1001;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Smart button specific styles */
#smartBtn {
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6e00ff, #00c6ff);
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* Theme toggle button specific styles */
#toggleTheme {
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
}

/* Pulse animation for the smart button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Main chatbot container styles */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 360px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: bounceFadeIn 0.6s ease-out;
}

/* Dark mode for chatbot container */
body.dark-mode .chatbot-container {
    background: rgba(34, 34, 34, 0.9);
}

/* Bounce-in animation for the chatbot */
@keyframes bounceFadeIn {
    0% {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }

    50% {
        transform: scale(1.05) translateY(-10px);
        opacity: 0.5;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Chatbot header styling */
.chat-header {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    padding: 14px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

/* Chatbot close button */
.chat-close {
    position: absolute;
    right: 14px;
    top: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Chatbot body/message area */
.chat-body {
    height: 320px;
    overflow-y: auto;
    padding: 10px;
}

/* Chatbot input area */
.chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

/* Chatbot input field */
.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
}

/* Chatbot ask button */
.chat-input button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* Message bubble styling */
.message {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4em;
    white-space: pre-wrap;
}

/* User message bubble */
.user-msg {
    background: var(--user-bg);
    color: var(--accent);
    margin-left: auto;
}

/* Bot message bubble */
.bot-msg {
    background: var(--bot-bg);
    color: var(--text-color);
    margin-right: auto;
}

/* ================================================================= */
/* === MAIN CONTENT (NAVBAR & VIDEO) === */
/* ================================================================= */

/* Container for the video background */
.navbar-video-container {
    position: relative;
    height: 200px;
    /* reduced height */
    overflow: hidden;
}

/* Video background itself */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Container for the welcome text */
.welcome-text-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* Heading for the welcome text */
.welcome-text-container h1 {
    font-size: 32px;
    /* slightly smaller */
    font-family: 'Raleway', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #000000;
    /* normal text for rest of heading */
    animation: fadeInUp 1.5s ease forwards;
}

/* Unique solid color + glow animation for name */
.welcome-text-container h1 span {
    color: #0077cc;
    /* professional cool blue */
    animation: namePulse 2s ease-in-out infinite;
}

/* Keyframes for the name pulse animation */
@keyframes namePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ================================================================= */
/* === NAVIGATION LINKS (UPDATED FOR RESPONSIVENESS) === */
/* ================================================================= */
/* Navigation links container */
.nav-links {
    display: flex;
    justify-content: center;
    background: #f0f0f0;
    padding: 20px;
    gap: 30px;
    animation: fadeInUp 1.5s ease-in-out;
}

/* Individual navigation link styling */
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* Media query for small screens (mobile view) */
@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        /* Allow items to wrap to a new line */
        gap: 10px;
        /* Adjust the space between items */
    }

    .nav-links a {
        flex: 1 1 auto;
        /* Allow links to grow and shrink */
        text-align: center;
        width: calc(50% - 10px);
        /* Make links take up half the width with some gap */
        box-sizing: border-box;
    }
}


/* ================================================================= */
/* === RESUME PASSKEY POPUP === */
/* ================================================================= */

/* Keyframes for pop-in animation */
@keyframes fadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Keyframes for shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-10px);
    }

    40%,
    80% {
        transform: translateX(10px);
    }
}

/* Main popup overlay */
.resume-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* The actual popup box */
.popup-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    animation: fadeInScale 0.3s ease;
}

/* Popup heading */
.popup-box h3 {
    margin-bottom: 10px;
}

/* Input field in popup */
.popup-box input {
    padding: 10px;
    width: 80%;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Submit button in popup */
.popup-box button {
    padding: 10px 20px;
    background: #2575fc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Cancel button in popup */
.popup-box button:last-child {
    background: #999;
    margin-left: 10px;
}

/* Error message styling */
.error-msg {
    color: red;
    margin-top: 12px;
}

/* Success tick icon styling */
#successTick {
    font-size: 40px;
    margin-top: 15px;
    color: green;
    display: none;
}


/* ================================================================= */
/* === ABOUT SECTION === */
/* ================================================================= */

/* Main about section styling */
.about-section {
    padding: 60px 30px;
    background: linear-gradient(135deg, #1f1c2c, #928DAB);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background glowing animation effect */
.bg-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    animation: rotateBG 60s linear infinite;
}

/* Content wrapper */
.about-content {
    position: relative;
    z-index: 2;
}

/* Keyframes for rotating background */
@keyframes rotateBG {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Keyframes for floating and glowing profile picture */
@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

/* Profile picture container */
.profile-pic {
    width: 250px;
    height: 250px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ffffff;
    animation: floatGlow 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image inside the profile picture container */
.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect for profile picture */
.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.6), 0 0 80px rgba(0, 123, 255, 0.4);
}

.profile-pic:hover img {
    transform: scale(1.05);
}

/* Heading and paragraph styling */
.about-section h2 {
    font-size: 38px;
    margin-bottom: 10px;
    animation: fadeInDown 1.5s ease-in-out;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.6;
    animation: fadeInUp 2s ease-in-out;
}

/* ================================================================= */
/* === SKILL SECTION === */
/* ================================================================= */

/* Skills Section Background Animation */
.skills-section {
    background: linear-gradient(270deg, #5c7cffb2, #ff8282, #ffdc90);
    background-size: 600% 600%;
    animation: gradientMove 20s ease infinite;
    padding: 40px 20px;
    color: white;
}

/* Gradient animation keyframes */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Heading styling */
.skills-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Skills Grid layout */
.grid-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Individual skill box styling */
.skill-box {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    animation: floatSkill 3s ease-in-out infinite;
}

/* Hover animation for skill boxes */
.skill-box:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Floating effect animation */
@keyframes floatSkill {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* More button styling */
.more-btn {
    background: #ff9800;
    color: #fff;
}

.more-btn:hover {
    background: #e68900;
}

/* Responsive grid for skills */
@media (max-width: 992px) {
    .grid-skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-skills {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Small Modal (Tooltip style) */
.modal {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 2000;
    min-width: 220px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: transparent;
    padding: 0;
    text-align: left;
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 18px;
    color: #222;
}

.close {
    float: right;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

/* Large Skills Popup - Light Theme */
.skills-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1100;
    animation: fadeInPopup 0.3s ease;
}

.skills-popup-content {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    width: 85%;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: scaleUp 0.4s ease;
}

/* Popup heading */
.skills-popup-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Skills grid inside popup */
.skills-popup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Skill boxes inside popup */
.skills-popup-grid .skill-box {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: floatSkill 3s ease-in-out infinite;
}

.skills-popup-grid .skill-box:hover {
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close-popup {
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================================= */
/* === PROJECTS SECTION === */
/* ================================================================= */

/* Main projects section styling */
.projects-section {
    padding: 100px 30px;
    background: linear-gradient(to right, #1f1c2c, #928dab);
    text-align: center;
    position: relative;
}

/* Glow animation for project heading */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px #0ff, 0 0 20px #f0f;
    }

    50% {
        text-shadow: 0 0 20px #f0f, 0 0 40px #0ff;
    }

    100% {
        text-shadow: 0 0 10px #0ff, 0 0 30px #0ff;
    }
}

/* Project heading styling */
.project-heading {
    text-align: center;
    color: #fff;
    font-size: 40px;
    margin-bottom: 30px;
    animation: glow 2s infinite alternate;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* Hover effect for project heading */
.project-heading:hover {
    transform: scale(1.1);
    color: #ff0;
}

/* Projects container layout */
.projects-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Individual project box styling */
.project-box {
    display: inline-block;
    padding: 0;
    width: 400px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 25px #f0f, 0 0 50px #0ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Hover effect for project box */
.project-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px #0ff, 0 0 60px #f0f;
}

/* Project title styling */
.project-title {
    text-align: center;
    margin-top: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for project title when hovering over the box */
.project-box:hover+.project-title {
    color: #ff0;
    transform: scale(1.1);
}

/* Link icon on project box */
.project-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #00f;
    color: #ff0;
}


/* === NOTEBOOK STYLES === */
/* Main notebook popup container */
.notebook {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1000px;
    height: 80vh;
    background: url('your-image-path.jpg') center/cover no-repeat;
    border-radius: 20px;
    box-shadow: 0 0 30px #fff;
    overflow: hidden;
    z-index: 1000;
    animation: openBook 1s ease forwards;
}

/* Opening book animation */
@keyframes openBook {
    from {
        transform: scaleX(0) translate(-50%, -50%);
        opacity: 0;
    }

    to {
        transform: scaleX(1) translate(-50%, -50%);
        opacity: 1;
    }
}

/* Container for notebook pages */
.notebook .pages {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease;
}

/* Individual notebook page styling */
.notebook-page {
    flex: 0 0 100%;
    padding: 40px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.803);
    border-left: 1px dashed #fff;
    overflow-y: auto;
}

.notebook-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.notebook-page h2 {
    text-decoration: underline;
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
}

.project-list {
    line-height: 1.8;
    padding-left: 20px;
    font-size: 16px;
    color: #fff;
}

/* Close button for notebook */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    background: red;
    padding: 5px 15px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    color: white;
}

/* Previous and next page buttons */
.prev-btn,
.next-btn {
    bottom: 20px;
    background: #222;
    border: 1px solid white;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 8px;
    position: absolute;
    z-index: 1001;
    color: white;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Image styling inside notebook pages */
.notebook-image {
    display: block;
    margin: 0 auto 20px auto;
    width: 90%;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.screenshots {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.screenshots img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshots img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.4);
}


/* ================================================================= */
/* === EDUCATION SECTION === */
/* ================================================================= */

/* Education section background gradient animation */
.education-section {
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a1fdaf, #9fdd88);
    background-size: 500% 500%;
    animation: eduGradientShift 12s ease-in-out infinite;
    padding: 60px 30px;
    text-align: center;
    color: #111;
    position: relative;
    overflow: hidden;
}

/* Keyframes for gradient shift animation */
@keyframes eduGradientShift {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.education-section h2 {
    font-size: 36px;
}

.education-section p {
    font-size: 18px;
    color: #444;
}

/* Education card styling */
.edu-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 700px;
    animation: fadeInCard 1s ease-in-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hover effect for education cards */
.edu-card:hover {
    transform: scale(1.03);
}

/* Keyframes for fade-in card animation */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Education POPUP */
.edu-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.edu-popup-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    padding: 30px;
    animation: zoomIn 0.4s ease;
    position: relative;
}

/* Keyframes for zoom-in animation */
@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.edu-popup-content h3 {
    color: #2575fc;
    margin-top: 0;
}

.edu-popup-content img {
    width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}

.edu-popup-content p {
    color: #333;
    margin: 6px 0;
}

/* Close button for popup */
.popup-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Gallery of images inside the popup */
.edu-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

.edu-gallery img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.edu-gallery img:hover {
    transform: scale(1.05);
}

/* ==== ENLARGED IMAGE POPUP STYLES ==== */
#imagePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imagePopupContent {
    position: relative;
    animation: rotateZoomIn 0.6s ease;
}

#popupImage {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

#closePopupBtn {
    position: absolute;
    top: -18px;
    right: -18px;
    background: #ff4d4d;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes rotateZoomIn {
    from {
        transform: scale(0.3) rotateY(0deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotateY(360deg);
        opacity: 1;
    }
}


/* ================================================================= */
/* === Certificate SECTION === */
/* ================================================================= */

/* Certificates section background gradient */

/* Certificates Section */
.certificates-section {
    background: linear-gradient(270deg, #00c6ff, #0072ff, #6a11cb, #2575fc);
    background-size: 600% 600%;
    animation: gradientMove 20s ease infinite;
    padding: 50px 20px;
    color: white;
}

/* Heading styling */
.certificates-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Certificate Card */
.certificate-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: transform 0.4s ease, background 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive Grid */
@media (max-width: 992px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .certificates-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Certificate Popup (Full screen view) */
.certificate-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1200;
    animation: fadeInPopup 0.3s ease;
}

.certificate-popup-content {
    background: white;
    padding: 15px;
    border-radius: 15px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: scaleUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Close button */
.close-popup {
    font-size: 28px;
    cursor: pointer;
    color: #333;
    align-self: flex-end;
}

/* Image inside popup */
#certificate-file {
    flex: 1;
    border-radius: 8px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Animations */
@keyframes fadeInPopup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* ================================================================= */
/* === CONTACT SECTION === */
/* ================================================================= */

/* Main contact section styling */
.contact-section {
    padding: 60px 30px;
    color: #111;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c2e9fb, #a1c4fd, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-in-out;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #333;
}

/* Container for contact information cards */
.contact-info-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual contact card styling */
.contact-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 250px;
}

/* Hover effect for contact cards */
.contact-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-card div {
    font-size: 24px;
}

/* Contact form styling */
.contact-form {
    max-width: 600px;
    margin: auto;
    display: grid;
    gap: 20px;
    animation: fadeInUp 1.5s ease;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.contact-form button {
    background: #2575fc;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* POPUP EMOJI animation */
.popup-emoji {
    position: fixed;
    font-size: 48px;
    animation: bouncePop 1.5s ease-in-out;
    z-index: 9999;
    pointer-events: none;
}

@keyframes bouncePop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) translateY(-100px);
    }

    100% {
        opacity: 0;
        transform: scale(0.2) translateY(-150px);
    }
}

/* THANK YOU POPUP */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1a1a1a;
    color: #fff;
    padding: 30px 25px;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 60px rgba(0, 255, 255, 0.2);
    animation: popupSlideIn 0.6s ease forwards;
}

.popup-container h2 span {
    color: #4FC3F7;
}

.popup-video video {
    width: 100%;
    max-height: 250px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease;
    text-shadow: 0 0 10px #00f7ff;
}

.close-btn:hover {
    transform: scale(1.3);
    color: #ff4081;
    text-shadow: 0 0 18px #ff4081;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* ================================================================= */
/* === BACK TO TOP BUTTON === */
/* ================================================================= */

#scrollTopBtn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 1001;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    width: 48px;
    height: 48px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.3s, opacity 0.4s ease;
    animation: bounceUp 2s infinite;
}

@keyframes bounceUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ================================================================= */
/* === FOOTER SECTION === */
/* ================================================================= */

footer {
    background: linear-gradient(135deg, #1f1c2c, #928DAB);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.5s ease-in-out;
}

.social-icons {
    margin-bottom: 20px;
}

.footer-icon {
    margin: 0 15px;
    font-size: 28px;
    color: white;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-icon:hover {
    color: #00c6ff;
    transform: scale(1.2);
    text-shadow: 0 0 10px #00c6ff;
}

.footer-scroll-btn {
    position: absolute;
    left: 30px;
    bottom: 30px;
    font-size: 20px;
    background: white;
    color: #333;
    border: none;
    border-radius: 50%;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
}

.footer-scroll-btn:hover {
    transform: scale(1.1);
}