/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}



/* Navbar Base */
/* Navbar Base */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(270deg, #141414, #1f1f1f, #141414, #1f1f1f);
    background-size: 800% 800%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: 0.3s ease-in-out;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.7rem;
    color: #00ffe0;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* Neon underline on hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: #00ffe0;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #00ffe0;
    text-shadow: 0 0 5px #00ffe0, 0 0 10px #00ffe0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: rgb(255, 255, 255);   /* White Hamburger */
    border-radius: 3px;
    transition: 0.3s;
}

/* Toggle Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        color: white;
        height: 100vh;
        width: 60%;
        background: #111;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s;
    }
    .nav-links.show { right: 0; }
}


/* new landing page "sona patidar" css */

.hover-name {
  position: relative;
  cursor: pointer;
  color: #131a19;
  font-weight: bold;
}

.popup-img {
  position: absolute;
  top: 10px; /* adjust position */
  left: 0;
  width: 250px;
  height: 400px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999;
}

/* Show image on hover */
.hover-name:hover .popup-img {
  opacity: 1;
  transform: scale(1);
}


/* Sections */
.section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1000px;
    text-align: center;
}

/* Landing */
.landing-section {
    color: white;
    flex-direction: column;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.landing-section .container {
    max-width: 900px;
    padding-left: 10px;
}

.landing-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.landing-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    color: #007bff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #007bff;
    color: #fff;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #007bff;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}
    
/* About Section */
.about-section {
    position: relative;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #eee;
    padding: 100px 20px;
    overflow: hidden;
}

/* Gradient Animated Overlay */
.about-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 180deg,
        rgba(0, 170, 255, 0.2),
        rgba(255, 0, 150, 0.15),
        rgba(0, 200, 255, 0.2),
        rgba(0, 170, 255, 0.2)
    );
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
}

/* Floating Balls Background */
.about-section .background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.about-section .ball {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    background: radial-gradient(circle at 30% 30%, #fff, transparent 70%);
    animation: floatBalls 12s infinite ease-in-out alternate;
}

/* Different ball sizes + positions */
.about-section .ball:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 15%;
    animation-duration: 18s;
}
.about-section .ball:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 25%;
    animation-duration: 15s;
}
.about-section .ball:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 25%;
    right: 10%;
    animation-duration: 22s;
}
.about-section .ball:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 20%;
    animation-duration: 17s;
}
.about-section .ball:nth-child(5) {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 40%;
    animation-duration: 20s;
}
.about-section .ball:nth-child(6) {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 35%;
    animation-duration: 14s;
}
.about-right img {
    width: 130%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Content Container */
.about-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    z-index: 2; /* keeps text above background */
}

/* Animations */
@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatBalls {
    0%   { transform: translateY(0) translateX(0) scale(1); }
    50%  { transform: translateY(-40px) translateX(30px) scale(1.05); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

/* About Section Base */
.about-section {
    position: relative;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #eee;
    padding: 100px 20px;
    overflow: hidden;
}

/* Container Flexbox */
.about-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    z-index: 2;
    flex-wrap: wrap; /* allow wrapping for smaller screens */
}

/* Left Text Section */
.about-left {
    flex: 1;
    min-width: 280px;
}

/* Right Image Section */
.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}


.about-right img {
    width: 100%;
    max-height: 600px;
    max-width: 300px;
    border-radius: 100%; /* Circle Shape */
    padding-bottom: 100px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    object-fit: cover; /* image को circle में fit करने के लिए */
}


/* Responsive Breakpoints */

/* Tablets (max 992px) */
@media (max-width: 992px) {
    .about-container {
        gap: 20px;
    }
    .about-left p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* stack items */
        text-align: center;
    }

    .about-left {
        order: 1;
    }

    .about-right {
        order: 2;
    }

    .about-left h2 {
        font-size: 26px;
    }

    .about-left p {
        font-size: 14px;
    }

    .about-right img {
        max-width: 280px;
        margin-right: 100px;
    }
}



/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

/* Sliding diagonals background for landing page */
.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    bottom: 0;
    left: -50%;
    opacity: 0.5;
    position: absolute;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bg3 {
    animation-duration: 5s;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(25%);
    }
}

/* Explosive text animation for nav links */
.explosive-text {
    font-size: 1.2rem;
    color: #333;
    letter-spacing: 0.05em;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease-out;
    text-decoration: none;
}

.explosive-text:hover {
    transform: scale(1.1);
    color: #007bff;
}

.explosive-text:hover::before,
.explosive-text:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: burst 0.8s ease-out forwards;
}

.explosive-text:hover::before {
    background: radial-gradient(circle, rgba(255, 0, 150, 0.6), transparent);
    z-index: -1;
}

.explosive-text:hover::after {
    background: radial-gradient(circle, rgba(0, 200, 255, 0.6), transparent);
    z-index: -2;
}

@keyframes burst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}
/* Skills Section Background Animation */
.skills-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #ff6f61, #6a11cb, #2575fc, #00c6ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 4rem 1rem;
    border-radius: 20px;
}

/* Gradient Animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.skills-section::before,
.skills-section::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

.skills-section::before {
    top: -50px;
    left: -50px;
}

.skills-section::after {
    bottom: -50px;
    right: -50px;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(30px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Skills */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Gradient Border Animation */
@keyframes borderGlow {
  0% { border-image-source: linear-gradient(45deg, #ff0077, #00ffe0); }
  50% { border-image-source: linear-gradient(135deg, #007bff, #ff00ff); }
  100% { border-image-source: linear-gradient(225deg, #ff0077, #01ffe1); }
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Skill Card */
.skill {
    background: #111; /* Dark base for neon effect */
    color: #fff;
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;

    border: 3px solid transparent;
    border-image-slice: 1;
}

/* Animation Delay */
.skill:nth-child(1) { animation-delay: 0.2s; }
.skill:nth-child(2) { animation-delay: 0.4s; }
.skill:nth-child(3) { animation-delay: 0.6s; }
.skill:nth-child(4) { animation-delay: 0.8s; }
.skill:nth-child(5) { animation-delay: 1s; }
.skill:nth-child(6) { animation-delay: 1.2s; }
.skill:nth-child(7) { animation-delay: 1.4s; }
.skill:nth-child(8) { animation-delay: 1.6s; }
.skill:nth-child(9) { animation-delay: 1.8s; }

.skill img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    transition: transform 0.5s ease;
}

.skill p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hover Effects */
.skill:hover {
    transform: translateY(-10px) scale(1.1) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(255, 0, 255, 0.5);
    animation: borderGlow 3s infinite linear;
}

/* Icon Animation on Hover */
.skill:hover img {
    transform: rotate(10deg) scale(1.1);
}
/* Projects */
.projects-section {
    position: relative;
    overflow: hidden;
    background: #f9f6f1;
    padding: 100px 20px;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 20px 20px;
    animation: dotsMove 20s linear infinite;
    z-index: 0;
}

@keyframes dotsMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.projects-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex: 1 1 280px;
    max-width: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* 📱 Responsive Breakpoints */

/* Tablets */
@media (max-width: 992px) {
    .projects-section {
        padding: 80px 15px;
    }
    .projects-grid {
        gap: 1.5rem;
    }
    .project-card {
        max-width: 45%; /* 2 cards per row */
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .projects-section {
        padding: 60px 15px;
    }
    .project-card {
        max-width: 100%; /* 1 card per row */
    }
    .project-card img {
        height: 160px;
    }
}

/* Small Mobiles */
@media (max-width: 480px) {
    .projects-section {
        padding: 50px 10px;
    }
    .project-card {
        padding: 1rem;
    }
    .project-card img {
        height: 140px;
    }
}


/* Contact */
.contact-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    overflow: hidden;
    background: #4973ff;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}
.contact-section .wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.contact-section .wave span {
    content: "";
    position: absolute;
    width: 325vh;
    height: 325vh;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: #000;
    border-radius: 45%;
    animation: animate 5s linear infinite;
}
.contact-section .wave span:nth-child(2) {
    border-radius: 40%;
    background: rgba(20, 20, 20, 0.5);
    animation: animate 10s linear infinite;
}
.contact-section .wave span:nth-child(3) {
    border-radius: 42.5%;
    background: rgba(20, 20, 20, 0.5);
    animation: animate 15s linear infinite;
}
.contact-section .container {
    position: relative;
    background-color: rgba(0, 0, 80, 0.8);
    padding: 40px 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 50, 0.7);
    text-align: center;
}

.contact-section h2.section-title {
    color: white;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-section input,
.contact-section textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 10px 5px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #ddd;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: #00aaff;
}

.contact-section textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-section button {
    background: transparent;
    border: 2px solid #00aaff;
    color: #00aaff;
    padding: 12px 0;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-section button:hover {
    background-color: #00aaff;
    color: white;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.5s;
}

.animate-fade-in.delay-2 {
    animation-delay: 1s;
}

/* Role text fade animations */
#role-text {
    display: inline-block;
    transition: opacity 0.5s ease;
    color: #6a11cb;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Flip Card Container */
.flip-card {
    background-color: transparent;
    width: 250px;
    height: 300px;
    perspective: 1000px; /* 3D effect */
}

/* Inner part that flips */
.flip-card-inner {
    position: relative;
    width: 150%;
    height: 150%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Flip on hover */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Images */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

/* Front image */
.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back image */
.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Card Base */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    text-align: center;
    padding-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Image Style */
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Effect: Image Popup */
.project-card img:hover {
    transform: scale(1.15);   /* popup effect */
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
    z-index: 5;
    border-radius: 15px;
}

/* Footer */
.footer {
    background: #111;
    color: #ccc;
    padding: 50px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #00ffe0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 0 0 8px #00ffe0;
}

.footer-col p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #00ffe0;
    text-shadow: 0 0 8px #00ffe0;
}

.footer-socials a {
    color: white;
    font-size: 18px;
    margin: 0 8px;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: #00ffe0;
    text-shadow: 0 0 10px #00ffe0, 0 0 20px #00ffe0;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 13px;
    color: #777;
}
.footer-contact {
    margin-top: 20px;
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
}

.footer-contact p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: #00ffe0;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}




/* Experience Section with Falling Leaves */
.experience-section {
    position: relative;
    padding: 100px 20px;
    min-height: 600px;
    background: radial-gradient(#333, #000);
    overflow: hidden;
    color: white;
    z-index: 1;
}

.experience-section .container {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 50, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.experience-section h2 {
    color: #fff;
}

/* Falling Leaves Background */
.leaf, .leaf1, .leaf2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    pointer-events: none;
}

.leaf div, .leaf1 div, .leaf2 div {
    position: absolute;
    display: block;
}

.leaf div:nth-child(1){left:20%;animation:fall 15s linear infinite;animation-delay:-2s;}
.leaf div:nth-child(2){left:70%;animation:fall 15s linear infinite;animation-delay:-4s;}
.leaf div:nth-child(3){left:10%;animation:fall 20s linear infinite;animation-delay:-7s;}
.leaf div:nth-child(4){left:50%;animation:fall 18s linear infinite;animation-delay:-5s;}
.leaf div:nth-child(5){left:85%;animation:fall 14s linear infinite;animation-delay:-5s;}
.leaf div:nth-child(6){left:15%;animation:fall 16s linear infinite;animation-delay:-10s;}
.leaf div:nth-child(7){left:90%;animation:fall 15s linear infinite;animation-delay:-4s;}

@keyframes fall {
    0%{opacity:1;top:-10%;transform:translateX(20px) rotate(0deg);}
    20%{opacity:0.8;transform:translateX(-20px) rotate(45deg);}
    40%{transform:translateX(-20px) rotate(90deg);}
    60%{transform:translateX(-20px) rotate(135deg);}
    80%{transform:translateX(-20px) rotate(180deg);}
    100%{top:110%;transform:translateX(-20px) rotate(225deg);}
}

.leaf1{transform: rotateX(180deg);}

.cert-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}
.cert-btn:hover {
  background: #0055cc;
}

/* Modal Styling */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: red;
}
