@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&family=Rubik:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0ef;
    --secondary-color: #051129;
    --text-color: #ededed;
    --bg-color:  radial-gradient(ellipse at center, #1e3a8a 0%, #0f172a 70%);
    
    --card-bg: rgba(5, 17, 41, 0.8);
    --transition-speed: 0.3s;
    --shadow-color: rgba(0, 238, 255, 0.2);
}

/* 3D Model Styles */
#bee-model {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    transition: transform 1s ease-out;
}

/* Bee hover region styles - removed */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body{
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem; /* text-5xl */
}

h2 {
    font-size: 2.5rem; /* text-4xl */
}

h3 {
    font-size: 1.875rem; /* text-3xl */
}

h4 {
    font-size: 1.5rem; /* text-2xl */
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Section Spacing */
section {
    padding: 6rem 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* Header */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 10%;
    background: rgba(5, 17, 41, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.logo{
    position: relative;
    font-size: 2.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    width: 50%;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a{
    display: inline-block;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2rem;
    transition: var(--transition-speed);
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); 
}

.navbar a:hover{
    color: var(--primary-color);
}

/* Hero Section */
.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: var(--bg-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 238, 255, 0.15), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(5, 17, 41, 0.8), transparent 50%);
    z-index: -1;
}

.home-content {
    max-width: 600px;
    padding-top: 70px;
    z-index: 1;
}

.home-content h3{
    font-size: 30px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}
.home-content h1{
    font-size: 50px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}
.home-content p{
    font-size: 17px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}
.home-sic a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}
.home-sic a:hover{
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px var(--primary-color), 0 0 25px var(--primary-color);
}
.btn:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 45px cyan;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 25px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3 span{
    color: #0ef;
    font-size: 35px;
}

/* About Section */
.about {
    position: relative;
    background: var(--bg-color);
}

.about .container {
    position: relative;
}

.about .sub-title {
    text-align: right;
    padding-right: 10%;
    margin-top: 2rem;
    margin-bottom: auto;
}

.about-content {
    display: flex;
    justify-content: flex-end;
}

.about-text {
    margin-top: 25px;
    max-width: 442px;
    padding: 2.5rem;
    text-align: left;
    margin-right: 0%;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    position: relative;
    background: var(--bg-color);
    overflow-x: hidden; /* Hide horizontal overflow */
}

.services .container {
    padding: 90px;
    width: 100%;
    max-width: none;
    overflow: hidden;
}

#services{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    
}

.sub-title {
    text-align: center;
    font-size: 60px;
    padding-bottom: 0px;
    color: var(--text-color);
}

.sub-title span {
    color: var(--primary-color);
}

/* Education-specific sub-title styling */
h1.sub-title:nth-of-type(2) {
    padding-top: 153px;
    padding-bottom: 0px;
}

.services-list{
    display: flex; /* Changed from grid to flex for horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping to new lines */
    gap: 40px;
    margin-top: 50px;
    width: max-content; /* Allow container to expand beyond viewport */
    padding-bottom: 20px; /* Add some bottom padding for scrollbar */
    animation: slideServices 35s linear infinite; /* Slower animation to match bee watching */
}

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

/* Pause animation on hover */
.services-list:hover {
    animation-play-state: paused;
}

.service-card {
    background-color: transparent;
    padding: 40px;
    font-size: 13px;
    font-weight: 13px;
    border-radius: 20px;
    border-right: 10px;
    transition: background .5s, transform .5s;
    box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    min-width: 300px; /* Set minimum width for cards */
    width: 300px; /* Fixed width to ensure consistent sizing */
    flex: 0 0 auto; /* Prevent cards from growing/shrinking */
    margin-right: 20px; /* Add spacing between cards */
}

.service-card i {
    font-size: 50px;
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card a {
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
}

.read {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px var(--primary-color), 0 0 25px var(--primary-color);
}

.read:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 45px cyan;
}

section{
    display: flex;
    flex-wrap: wrap;
}

.container1{
    width: 600px;
    height: 500px;
    padding: 75px 90px;
    margin-left: 120px;
}

.heading1{
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}

.bar{
    font-size: 23px;
}

.Technical-bars .bar {
    margin: 20px 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.Technical-bars .bar i {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.Technical-bars .bar .info {
    display: flex;
    align-items: center;
    width: 80px;
}

.Technical-bars .bar .info span {
    font-size: 16px;
    font-weight: 500;
}

.Technical-bars .bar .progress-line {
    position: relative;
    height: 10px;
    width: 100%;
    margin-left: 15px;
    background: #051129;
    border-radius: 10px;
    flex: 1;
    overflow: hidden;
}

.Technical-bars .bar .percentage {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
    text-align: right;
    background: rgba(0, 238, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.Technical-bars .bar .progress-line span{
    height: 100%;
    width: 80%;
    background: var(--primary-color);
    position: absolute;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

@keyframes animate{
    100%{
        transform: scaleX(1);
    }
}

.progress-line.html span{
    width: 90%;
}

.progress-line.css span{
    width: 85%;
}

.progress-line.javascript span{
    width: 80%;
}

.progress-line.python span{
    width: 75%;
}

.progress-line.react span{
    width: 70%;
}

.radial-bars{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.radial-bars .radial-bar{
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;
}

.radial-bars .radial-bar svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}

.radial-bars .radial-bar .progress-bar{
    stroke-width: 10;
    stop-color: black;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
    animation: animate-bar 1s linear forwards;
}

@keyframes animate-bar{
    100%{
        stroke-dashoffset: -1;
    }
}

.path{
    stroke-width: 10;
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}

.path-1{animation: animate-path1 1s 1s linear forwards}
.path-2{animation: animate-path2 1s 1s linear forwards}
.path-3{animation: animate-path3 1s 1s linear forwards}
.path-4{animation: animate-path4 1s 1s linear forwards}

@keyframes animate-path1{
    100%{
        stroke-dashoffset: 90%;
    }
}

@keyframes animate-path2{
    100%{
        stroke-dashoffset: 50%;
    }
}

@keyframes animate-path3{
    100%{
        stroke-dashoffset: 70%;
    }
}

@keyframes animate-path4{
    100%{
        stroke-dashoffset: 100%;
    }
}

.radial-bar .percentage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.radial-bar .text{
    width: 100%;
    position: absolute;
    text-align: center;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: shoeText 0.5s 1s linear forwards;
    opacity: 0;
}

.main-text{
    margin-top: 200px;
}

#portfolio{
    width: 100%;
    margin: 0 40px;
}

.main-text h2{
    font-size: 60px;
    line-height: 1;
    text-align: center;
}

.main-text h2 span{
    color: #0ef;
}

.portfolio-content{
    display: flex; /* Changed from grid to flex for horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping to new lines */
    gap: 2rem;
    margin-top: 3rem;
    width: max-content; /* Allow container to expand beyond viewport */
    padding-bottom: 20px; /* Add some bottom padding for scrollbar */
    animation: slideProjects 25s linear infinite; /* Auto-sliding animation */
}

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

/* Pause animation on hover */
.portfolio-content:hover {
    animation-play-state: paused;
}

.row{
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    min-width: 300px; /* Set minimum width for projects */
    width: 300px; /* Fixed width */
    flex: 0 0 auto; /* Prevent items from growing/shrinking */
    margin-right: 20px; /* Add spacing between items */
}

.row:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.row img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    transition: transform var(--transition-speed);
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--primary-color));
    position: absolute;
    border-radius: 1rem;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2.5rem;
    transition: height var(--transition-speed);
}

.layer h5{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-color);
    margin-bottom: 1rem;
}

.layer p{
    color: var(--bg-color);
    font-size: 1rem;
    line-height: 1.8;
}

.layer i{
    color: #ff004f;
    margin-top: 20px;
    font-size: 20px;
    background-color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img{
    transform: scale(1.1);
}

.row:hover .layer{
    height: 100%;
}

/* Skills Section */
.skills-section {
    position: relative;
    background: var(--bg-color);
    padding: 2rem 0;
}

.skills-section .container {
    position: relative;
}

.skills-section .sub-title {
    text-align: left;
    margin-bottom: 2rem;
    margin-top: 0;
}

.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bee-space {
    width: 40%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.technical-skills {
    width: 60%;
    max-width: 600px;
    padding: 2.5rem;
    margin-right: -5%;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
    height: 400px; /* Fixed height for the container */
    overflow-y: scroll; /* Enable vertical scrolling */
    position: relative; /* Needed for absolute positioning of duplicated content */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.technical-skills::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Edge */
}

.technical-skills::-webkit-scrollbar-track {
    background: #051129; /* Track color */
    border-radius: 10px;
}

.technical-skills::-webkit-scrollbar-thumb {
    background: var(--primary-color); /* Thumb color */
    border-radius: 10px;
}

.technical-skills::-webkit-scrollbar-thumb:hover {
    background: #00b3cc; /* Thumb color on hover */
}

.technical-skills h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.Technical-bars {
    padding: 10px;
}

.Technical-bars .bar {
    margin: 25px 0;
}

.Technical-bars .bar .info {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.Technical-bars .bar .info i {
    margin-right: 15px;
    font-size: 1.5rem;
}

.Technical-bars .bar .info span {
    font-size: 1rem;
    font-weight: 500;
}

.Technical-bars .bar .progress-line {
    position: relative;
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

.Technical-bars .bar .progress-line span {
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    border-radius: 10px;
    animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .bee-space {
        width: 100%;
        height: 200px;
    }
    
    .technical-skills {
        width: 90%;
        max-width: 500px;
        margin-right: 0;
    }
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    margin-top: 0;
    overflow-x: hidden; /* Hide horizontal overflow */
    background: var(--bg-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0 1.5rem;
    background: var(--bg-color);
    margin-top: 0;
}

.contact .sub-title {
    text-align: center;

    margin-top: 2.5rem;
}

.contact-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem;
    gap: 2rem;
}

.contact-text {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-text h4 {
    margin: 15px 0;
    color: rgb(228, 228, 228);
    font-size: 20px;
    font-weight: 600;
}

.contact-text p {
    color: rgb(177, 177, 177);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-list {
    margin-bottom: 2rem;
    list-style: none;
}

.contact-list li {
    margin-bottom: 10px;
    display: block;
}

.contact-list i {
    display: inline-block;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    transition: all .4s ease;
    padding-right: 10px;
}

.contact-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.contact-icons a:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

.contact-form form {
    position: relative;
    margin-top: 15px;
}

.contact-form form input:first-of-type {
    margin-top: 10px;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: var(--text-color);
    background: var(--secondary-color);
    border-radius: 8px;
    border: none;
    outline: none;
    margin-bottom: 15px;
}

.contact-form textarea {
    resize: none;
    height: 120px;
}

.contact-form .send {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    border-radius: 40px;
    font-size: 14px;
    color: var(--bg-color);
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px var(--primary-color), 0 0 25px var(--primary-color);
    margin-top: 10px;
    cursor: pointer;
}

.contact-form .send:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 45px cyan;
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-text, .contact-form {
        width: 100%;
    }
}

/* Education Section */
.education-section {
    padding: 2rem 0 4rem 0;  /* Increased bottom padding from 2rem to 4rem */
    background: var(--bg-color);
    position: relative;
    overflow: visible;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

/* Glowing Education Name */
.glowing-education-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 
                 0 0 20px var(--primary-color);
    z-index: 5;
    text-align: center;
    letter-spacing: 5px;
    transition: opacity 0.8s ease;
    opacity: 0;
    width: 100%;
    max-width: 100%;
    pointer-events: none;
}

/* Glow animation class */
.glowing-education-name.glow-animation {
    animation: enhanced-glow 2s infinite alternate;
}

@keyframes enhanced-glow {
    0% {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color);
    }
    100% {
        text-shadow: 0 0 15px var(--primary-color),
                     0 0 25px var(--primary-color),
                     0 0 35px var(--primary-color),
                     0 0 45px var(--primary-color);
    }
}

/* Letter container for animated letters */
.letter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Individual animated letters */
.animated-letter {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 2px;
    text-shadow: 0 0 5px var(--primary-color),
                 0 0 10px var(--primary-color);
}

/* Space character needs special handling */
.animated-letter:empty {
    width: 0.5em;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .glowing-education-name {
        font-size: 2.5rem;
    }
}

.education-section .container {
    position: relative;
    margin-top: auto;
    z-index: 1;
    width: 100%;
}

.education-section .sub-title {
    text-align: center;
    font-size: 120px;
    margin-bottom: 0;
    padding-bottom: 0;
    position: absolute;
    z-index: 0;
    opacity: 0.15;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
    grid-gap: 40px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: 140px;
    opacity: 0; /* Start invisible */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.education-card {
    background-color: var(--card-bg);
    padding: 40px;
    font-size: 13px;
    border-radius: 20px;
    transition: transform 0.5s, box-shadow 0.5s;
    box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    justify-content: space-between;
}

.education-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 1px 1px 30px #012290f7, 1px 1px 50px #0053b8f7, 0 0 15px rgba(0, 238, 255, 0.5);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.education-card i {
    font-size: 50px;
    margin-bottom: 30px;
}

.education-card h3 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.education-card p {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin: 5px 0;
}

.education-header {
    margin-bottom: 20px;
    flex-grow: 0;
}

.education-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    margin-bottom: 20px;
    flex-grow: 0;
}

.education-middle-spacer {
    flex-grow: 1;
    min-height: 20px;
}

.education-date {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(0, 238, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
}

.education-score {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(0, 238, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
}

.education-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    flex-grow: 0;
}

.education-location i {
    font-size: 16px;
    margin: 0;
}

.education-location span {
    font-size: 0.9rem;
}

.education-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b3b3b3;
    margin-top: 10px;
}

.progress-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 0;
    margin-bottom: 20px;
    height: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
    animation: progress-animation 1.5s forwards;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.education-card.active .progress-bar {
    animation: progress-animation 1.5s forwards;
}

.progress-bar.completed {
    background-color: #4cd137;
}

.progress-bar.in-progress {
    background-color: #ffa502;
}

@keyframes progress-animation {
    0% { width: 0; }
    100% { width: var(--progress-width); }
}

.completed-status {
    color: #4cd137;
    font-weight: 600;
}

.progress-status {
    color: #ffa502;
    font-weight: 600;
}

/* Add animation for cards */
@keyframes card-rise {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .education-section .sub-title {
        font-size: 60px;
    }
    
    .education-grid {
        margin-top: 50px;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .education-section .sub-title {
        font-size: 90px;
    }
    
    .education-grid {
        margin-top: 60px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.footer {
    position: relative;
    padding: 25px 0;
    background: rgb(19, 1, 19);
    text-align: center;
    margin-top: 70px;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    color: #ddd;
    width: 100%;
}

.top {
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;
}

.top i {
    color: #000;
    background: var(--primary-color);
    font-size: 20px;
    padding: 10px 13px;
    border-radius: 0.5rem;
    transition: all var(--transition-speed);
}

.top:hover i {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

@keyframes slideRight{
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft{
    0%{
        transform: translateX(100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop{
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom{
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}

/* Hero Section Button Styles */
.hero-cta {
    display: flex;
    justify-content: left;
    margin-top: 1rem;
}

.btn-primary {
    background-color: #051129;
    box-shadow: 0 0 5px var(--primary-color), 0 0 25px var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 45px cyan;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .about .sub-title {
        text-align: center;
        padding-right: 0;
    }
    
    .about-content {
        justify-content: center;
    }
    
    .about-text {
        margin-right: 0;
    }
}

/* Small animated dots that float around */
.floating-dot {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(0, 238, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 2px rgba(0, 238, 255, 0.5);
    will-change: transform, opacity; /* Performance optimization */
}

.floating-dot.medium {
    width: 3px;
    height: 3px;
    background: rgba(0, 238, 255, 0.35);
    animation-duration: 8s;
    box-shadow: 0 0 3px rgba(0, 238, 255, 0.6);
}

.floating-dot.large {
    width: 4px;
    height: 4px;
    background: rgba(0, 238, 255, 0.4);
    animation-duration: 10s;
    box-shadow: 0 0 4px rgba(0, 238, 255, 0.7);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    15% {
        opacity: 1;
    }
    30% {
        transform: translateY(-60px) translateX(15px);
    }
    50% {
        transform: translateY(-120px) translateX(5px);
    }
    70% {
        transform: translateY(-160px) translateX(10px);
        opacity: 0.9;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-200px) translateX(20px);
        opacity: 0;
    }
}