* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #64ffda;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star.small {
    width: 2px;
    height: 2px;
}

.star.medium {
    width: 3px;
    height: 3px;
}

.star.large {
    width: 4px;
    height: 4px;
}

.comet {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64ffda, transparent);
    border-radius: 50%;
    animation: comet 8s linear infinite;
    opacity: 0;
}

.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
    animation: meteor 6s linear infinite;
}

@keyframes twinkle {

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

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

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

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-100px);
        opacity: 0;
    }
}

@keyframes meteor {
    0% {
        transform: translateX(-20px) translateY(-20px);
        opacity: 1;
    }

    100% {
        transform: translateX(300px) translateY(300px);
        opacity: 0;
    }
}

/* Floating particles */
.particle {
    position: absolute;
    background: rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 9%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2.8rem;
    color: #64ffda;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #4fd1c7;
}

nav a {
    font-size: 1.6rem;
    color: white;
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #64ffda;
    transition: width 0.3s ease;
}

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

nav a:hover,
nav a.active {
    color: #64ffda;
}

@media(max-width:995px) {
    nav {
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid;
        border-bottom: 3px solid;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    }
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 8rem 9% 5rem;
    position: relative;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    text-align: center;
}

.home-content {
    max-width: 80rem;
}

.home-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #64ffda 0%, #4fd1c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content h1 span {
    color: #64ffda;
}

.typing-text {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.typing-text span {
    position: relative;
    color: #64ffda;
}

.typing-text span::before {
    content: "Software Engineer";
    animation: words 15s infinite;
}

.typing-text span::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid #64ffda;
    right: -8px;
    animation: cursor 0.8s infinite;
}

.home-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #a8b2d1;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid rgba(100, 255, 218, 0.3);
    font-size: 2.2rem;
    border-radius: 50%;
    transition: 0.3s ease;
    color: #64ffda;
}

.social-icons a:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.btn {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    background: transparent;
    border: 2px solid #64ffda;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    color: #64ffda;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transition: 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: white;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
    transform: translateY(-2px);
}

.btn.show-more {
    background: rgba(100, 255, 218, 0.1);
    margin-top: 3rem;
}

/* Section Headers */
.section-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
    color: #64ffda;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 3px;
    background: linear-gradient(135deg, #64ffda 0%, #4fd1c7 100%);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
}

.project-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.project-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.project-box.hidden {
    display: none;
}

.project-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64ffda, transparent);
    transform: translateX(-100%);
    transition: 0.6s ease;
}

.project-box:hover::before {
    transform: translateX(100%);
}

.project-box:hover {
    transform: translateY(-10px);
    border-color: #64ffda;
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.project-box i {
    font-size: 4rem;
    color: #64ffda;
    margin-bottom: 2rem;
}

.project-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: white;
}

.project-box p {
    font-size: 1.6rem;
    color: #a8b2d1;
    line-height: 1.6;
}

/* Skills Section */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    text-align: center;
    transition: 0.3s ease;
}

.skill-card.hidden {
    display: none;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #64ffda;
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.1);
}

.skill-card i {
    font-size: 4rem;
    color: #64ffda;
    margin-bottom: 2rem;
}

.skill-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.skill-card p {
    font-size: 1.6rem;
    color: #a8b2d1;
}

/* Show More Button Container */
.show-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Education Section */
.education {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
}

.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    text-align: center;
    transition: 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: #64ffda;
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.education-card img {
    width: 8rem;
    height: 8rem;
    object-fit: contain;
    margin-bottom: 2rem;
    border-radius: 1rem;
}

.education-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.education-card p {
    font-size: 1.6rem;
    color: #a8b2d1;
    margin-bottom: 2rem;
}

/* Experience Section */
.experience-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

.experience-box:hover {
    transform: translateY(-8px);
    border-color: #64ffda;
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.1);
}

.experience-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: white;
}

.experience-box p {
    font-size: 1.6rem;
    color: #a8b2d1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.company-logo {
    width: 15rem;
    height: 8rem;
    object-fit: contain;
    border-radius: 1rem;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 4rem 9%;
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
}

.footer h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #64ffda;
}

.footer p {
    font-size: 1.6rem;
    color: #a8b2d1;
    margin-bottom: 2rem;
}

.footer a {
    color: #64ffda;
    transition: 0.3s ease;
}

.footer a:hover {
    color: #4fd1c7;
}

.footer-note {
    font-size: 1.4rem;
    color: #8892b0;
    margin-top: 2rem;
}

/* Badge Container */
.badge-container {
    display: none;
    margin-top: 2rem;
}

/* Animations */
@keyframes words {

    0%,
    20% {
        content: "Software Engineer";
    }

    21%,
    40% {
        content: "Full Stack Developer";
    }

    41%,
    60% {
        content: "ML Engineer";
    }

    61%,
    80% {
        content: "Problem Solver";
    }

    81%,
    100% {
        content: "Tech Enthusiast";
    }
}

@keyframes cursor {
    50% {
        border-left-color: transparent;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .project-content,
    .skills-content,
    .education-content {
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    header {
        padding: 1rem 5%;
    }

    section {
        padding: 6rem 5% 4rem;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .typing-text {
        font-size: 2.8rem;
    }

    nav a {
        margin-left: 2rem;
    }

    .experience-box {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .company-logo {
        width: 12rem;
        height: 6rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.2rem;
    }

    nav a {
        font-size: 1.4rem;
        margin-left: 1.5rem;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .typing-text {
        font-size: 2.2rem;
    }

    .project-content,
    .skills-content,
    .education-content {
        grid-template-columns: 1fr;
    }
}

