* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #0a192f;
    color: #8892b0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #333;
}

body.light-mode .navbar {
    background-color: rgba(255, 255, 255, 0.85);
                                                    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a {
    color: #333;
}

body.light-mode .nav-links a:hover {
    color: #64ffda;
}

body.light-mode .hero-content h1 {
    color: #112240;
}

body.light-mode .hero-content h2 {
    color: #64ffda;
}

body.light-mode .hero-content p {
    color: #555;
}

body.light-mode .about-text h2,
body.light-mode .skills-section h2,
body.light-mode .projects-section h2,
body.light-mode .contact-content h2 {
    color: #112240;
}

body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .contact-info,
body.light-mode .contact-form {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

body.light-mode .skill-card:hover,
body.light-mode .project-card:hover,
body.light-mode .contact-info:hover,
body.light-mode .contact-form:hover {
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.2);
}

body.light-mode .skill-card p,
body.light-mode .project-content p {
    color: #555;
}

body.light-mode .contact-method {
    background: rgba(100, 255, 218, 0.1);
}

body.light-mode .contact-method:hover {
    background: rgba(100, 255, 218, 0.15);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

body.light-mode .footer-bottom {
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    color: #555;
}

body.light-mode .sticky-name {
    background: rgba(255, 255, 255, 0.9);
    color: #64ffda;
    border: 2px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .sticky-name:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 255, 218, 0.5);
    box-shadow: 0 6px 25px rgba(100, 255, 218, 0.2);
}

body.light-mode .skill-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

body.light-mode .skill-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.15);
}

body.light-mode .skill-item h3 {
    color: #112240;
}

body.light-mode .skill-item:hover h3 {
    color: #64ffda;
}

/* Maintain icon colors in both modes */
.skill-item .fa-html5 { color: #E44D26 !important; }
.skill-item .fa-css3-alt { color: #264DE4 !important; }
.skill-item .fa-js { color: #F7DF1E !important; }
.skill-item .fa-react { color: #61DAFB !important; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo a {
    color: #64ffda;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.logo a:hover {
    color: #00ff88;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #64ffda;
}

/* Hero Section */
#home {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
    animation: subtleGlow 8s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ccd6f6;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #64ffda;
    margin-bottom: 2rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #8892b0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    border-radius: 4px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

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

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Remove unnecessary animations */
.hero-content::after {
    display: none;
}

.hero-content h1 span {
    display: inline;
    opacity: 1;
    transform: none;
    animation: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }
}

/* Projects Section */
#projects {
    background: linear-gradient(to bottom, #0a192f, #112240);
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    animation: projectGlow 8s ease-in-out infinite;
}

.projects-section h2 {
    color: #ccd6f6;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.projects-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #64ffda, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.projects-section h2:hover::after {
    transform: scaleX(1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
}

.project-card {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
}

.project-tech span {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    color: #ccd6f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.project-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: #64ffda;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover .project-content h3::after {
    transform: scaleX(1);
}

.project-content p {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-card:hover .project-content p {
    color: #ccd6f6;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-links a {
    color: #64ffda;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.project-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #64ffda;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.project-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.project-links a:hover {
    color: #00ff88;
    transform: translateX(5px);
}

.project-links i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-links a:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active ul {
        display: flex;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .profile-image-container {
        width: 300px;
        height: 300px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-tech {
        padding: 0.5rem;
    }

    .project-tech span {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Add these styles after the existing ones */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 100px 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section Animations */
.hero-content h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.hero-content h1 span:nth-child(1) { animation-delay: 0.5s; }
.hero-content h1 span:nth-child(2) { animation-delay: 0.7s; }
.hero-content h1 span:nth-child(3) { animation-delay: 0.9s; }
.hero-content h1 span:nth-child(4) { animation-delay: 1.1s; }

.hero-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    animation: typewriter 2s steps(20) forwards;
    animation-delay: 1.5s;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 2s;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 2.5s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateY(-3px);
}

/* About Section */
#about {
    background: linear-gradient(135deg, #0a192f, #112240);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    animation: aboutGlow 8s ease-in-out infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text {
    position: relative;
    padding: 2rem;
    background: rgba(17, 34, 64, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: fit-content;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.profile-image-container {
    position: relative;
    width: min(400px, 100%);
    height: min(400px, 100vw);
    margin: 0 auto;
    perspective: 1000px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3),
                0 0 60px rgba(100, 255, 218, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
    filter: brightness(1) contrast(1.1) saturate(1.1);
    animation: float 6s ease-in-out infinite;
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 3px solid #64ffda;
    border-radius: 20px;
    opacity: 0.5;
    transform: translateZ(-10px);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.4),
                0 0 80px rgba(100, 255, 218, 0.3);
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

.profile-image:hover::after {
    transform: translateZ(-20px);
    opacity: 0.8;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), transparent);
    border-radius: 20px;
    transform: translateZ(-20px);
    animation: shimmer 6s linear infinite;
}

@keyframes aboutGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
        transform: translateX(-100%) translateZ(-20px);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) translateZ(-20px);
    }
}

/* Responsive styles for about section */
@media screen and (max-width: 1024px) {
    .about-content {
        gap: 2rem;
    }

    .profile-image-container {
        width: min(350px, 100%);
        height: min(350px, 100vw);
    }
}

@media screen and (max-width: 768px) {
    #about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .profile-image-container {
        width: min(300px, 100%);
        height: min(300px, 100vw);
        order: -1;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #about {
        padding: 40px 0;
    }

    .about-content {
        padding: 0 1rem;
    }

    .about-text {
        padding: 1.25rem;
    }

    .profile-image-container {
        width: min(250px, 100%);
        height: min(250px, 100vw);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Skills Section */
#skills {
    background: linear-gradient(to bottom, #112240, #0a192f);
    position: relative;
    overflow: hidden;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    animation: skillsGlow 8s ease-in-out infinite;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
}

.skill-card {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(100, 255, 218, 0.1),
        transparent
    );
    transition: 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}

.skill-card i {
    font-size: 3.5rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #00ff88;
}

.skill-card h3 {
    color: #ccd6f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

.skill-card:hover h3::after {
    width: 100%;
}

.skill-card p {
    color: #8892b0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.skill-card:hover p {
    color: #ccd6f6;
}

/* HTML5 Icon Styles */
.skill-card .fa-html5 {
    background: linear-gradient(135deg, #E44D26, #F16529);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.skill-card:hover .fa-html5 {
    animation: html5Animate 1.5s ease infinite;
    filter: drop-shadow(0 0 8px rgba(228, 77, 38, 0.6));
}

.skill-card .html5-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    background: rgba(228, 77, 38, 0.1);
    transition: all 0.4s ease;
}

.skill-card:hover .html5-wrapper {
    transform: translateY(-5px) rotate(5deg);
    background: rgba(228, 77, 38, 0.2);
    box-shadow: 
        0 5px 15px rgba(228, 77, 38, 0.2),
        0 0 30px rgba(228, 77, 38, 0.1);
}

.skill-card .html5-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #E44D26, #F16529);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.skill-card:hover .html5-wrapper::before {
    opacity: 0.5;
    animation: html5Border 2s linear infinite;
}

.skill-card .html5-wrapper::after {
    content: '</>'; /* HTML tag symbol */
    position: absolute;
    font-size: 0.8rem;
    color: #E44D26;
    bottom: -10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.skill-card:hover .html5-wrapper::after {
    opacity: 0.8;
    transform: translateY(0);
}

@keyframes html5Animate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes html5Border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Add this to the existing .skill-card:hover styles */
.skill-card:hover .html5-wrapper + h3 {
    color: #E44D26;
    text-shadow: 0 0 10px rgba(228, 77, 38, 0.3);
}

/* Contact Section */
#contact {
    background: linear-gradient(to bottom, #0a192f, #112240);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    animation: contactGlow 8s ease-in-out infinite;
}

.contact-section h2 {
    color: #ccd6f6;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #64ffda, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.contact-section h2:hover::after {
    transform: scaleX(1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.contact-info {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-info:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    animation: rotateGradient 15s linear infinite;
    z-index: 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: 0.5s ease;
    z-index: 1;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    transform: translateX(10px) translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.15);
}

.contact-method i {
    font-size: 1.8rem;
    color: #64ffda;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.contact-method:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #00ff88;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
    animation: iconPulse 1s ease-in-out infinite;
}

.contact-method .icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    transition: all 0.4s ease;
}

.contact-method:hover .icon-wrapper {
    background: rgba(100, 255, 218, 0.2);
    transform: rotate(-10deg);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.contact-method .icon-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #64ffda, #00ff88);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.contact-method:hover .icon-wrapper::before {
    opacity: 0.5;
    animation: spin 4s linear infinite;
}

.contact-method .contact-text {
    transition: all 0.3s ease;
    z-index: 2;
}

.contact-method .contact-text h4 {
    color: #ccd6f6;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.contact-method .contact-text p {
    color: #8892b0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-text h4 {
    color: #64ffda;
    transform: translateX(5px);
}

.contact-method:hover .contact-text p {
    color: #ccd6f6;
    transform: translateX(5px);
}

.contact-form {
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-form:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    animation: rotateGradient 15s linear infinite;
    z-index: 0;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    z-index: 1;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #8892b0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #64ffda;
    background: rgba(17, 34, 64, 0.8);
    padding: 0 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: #ccd6f6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 100%;
}

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

@keyframes contactGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Responsive adjustments for contact section */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-method {
        padding: 1.2rem;
    }

    .contact-method i {
        font-size: 1.5rem;
    }

    .contact-method .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .contact-method .contact-text h4 {
        font-size: 1rem;
    }

    .contact-method .contact-text p {
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #0a192f, #020c1b);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    animation: footerGlow 8s ease-in-out infinite;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: #8892b0;
    position: relative;
}

.footer-bottom p {
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-bottom span {
    color: #64ffda;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-bottom span:hover {
    color: #00ff88;
    transform: translateY(-2px);
}

.footer-bottom i {
    transition: all 0.3s ease;
}

.footer-bottom i:hover {
    transform: scale(1.2);
}

/* Animations */
@keyframes projectGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes skillsGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .projects-grid,
    .skills-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-card,
    .skill-card {
        padding: 1.5rem;
    }

    .skill-card i {
        font-size: 3rem;
    }

    .footer-bottom {
        padding: 1rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ccd6f6;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.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(7px, -6px);
}

/* Home Section */
#home {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.08) 0%, transparent 50%);
    animation: subtleGlow 8s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ccd6f6;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #64ffda;
    margin-bottom: 2rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #8892b0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    border-radius: 4px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

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

@keyframes subtleGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Remove unnecessary animations */
.hero-content::after {
    display: none;
}

.hero-content h1 span {
    display: inline;
    opacity: 1;
    transform: none;
    animation: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }
}

/* Add a subtle gradient background animation */
.hero-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(100, 255, 218, 0.1) 0%,
        transparent 50%
    );
    animation: rotateGradient 15s linear infinite;
    z-index: -1;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1.2) rotate(10deg);
    }
    50% {
        transform: scale(1.3) rotate(5deg);
    }
    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.social-links a {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid rgba(100, 255, 218, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: scale(0);
    z-index: 1;
}

.social-links a:hover::before {
    transform: scale(1);
    animation: rotateGradient 4s linear infinite;
}

.social-links a i {
    font-size: 1.5rem;
    color: #64ffda;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* GitHub Icon */
.social-links a:hover .fa-github {
    background: linear-gradient(135deg, #333333, #2b2b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(360deg) scale(1.2);
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.4);
}

/* LinkedIn Icon */
.social-links a:hover .fa-linkedin {
    background: linear-gradient(135deg, #0A66C2, #0077b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(360deg) scale(1.2);
    text-shadow: 2px 2px 10px rgba(10, 102, 194, 0.4);
}

/* Facebook Icon */
.social-links a:hover .fa-facebook {
    background: linear-gradient(135deg, #1877F2, #166FE5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(360deg) scale(1.2);
    text-shadow: 2px 2px 10px rgba(24, 119, 242, 0.4);
}

/* Viber Icon */
.social-links a:hover .fa-viber {
    background: linear-gradient(135deg, #7360F2, #59267c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(360deg) scale(1.2);
    text-shadow: 2px 2px 10px rgba(115, 96, 242, 0.4);
}

/* X (Twitter) Icon */
.social-links a:hover .fa-x {
    background: linear-gradient(135deg, #000000, #14171A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(360deg) scale(1.2);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

/* Individual hover effects for icon backgrounds */
.social-links a:nth-child(1):hover {
    background: radial-gradient(circle at 30% 30%, rgba(51, 51, 51, 0.2), rgba(43, 43, 43, 0.4));
    border-color: #333333;
    box-shadow: 0 0 20px rgba(51, 51, 51, 0.3);
}

.social-links a:nth-child(2):hover {
    background: radial-gradient(circle at 30% 30%, rgba(10, 102, 194, 0.2), rgba(0, 119, 181, 0.4));
    border-color: #0A66C2;
    box-shadow: 0 0 20px rgba(10, 102, 194, 0.3);
}

.social-links a:nth-child(3):hover {
    background: radial-gradient(circle at 30% 30%, rgba(24, 119, 242, 0.2), rgba(22, 111, 229, 0.4));
    border-color: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.3);
}

.social-links a:nth-child(4):hover {
    background: radial-gradient(circle at 30% 30%, rgba(115, 96, 242, 0.2), rgba(89, 38, 124, 0.4));
    border-color: #7360F2;
    box-shadow: 0 0 20px rgba(115, 96, 242, 0.3);
}

.social-links a:nth-child(5):hover {
    background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.2), rgba(20, 23, 26, 0.4));
    border-color: #000000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Update CSS variables for glow colors */
.social-links a:nth-child(1) { --glow-color: #333333; --glow-color-secondary: #2b2b2b; }
.social-links a:nth-child(2) { --glow-color: #0A66C2; --glow-color-secondary: #0077b5; }
.social-links a:nth-child(3) { --glow-color: #1877F2; --glow-color-secondary: #166FE5; }
.social-links a:nth-child(4) { --glow-color: #7360F2; --glow-color-secondary: #59267c; }
.social-links a:nth-child(5) { --glow-color: #000000; --glow-color-secondary: #14171A; }

/* Base icon colors */
.social-links a i {
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.social-links a .fa-github { color: #333333; }
.social-links a .fa-linkedin { color: #0A66C2; }
.social-links a .fa-facebook { color: #1877F2; }
.social-links a .fa-viber { color: #7360F2; }
.social-links a .fa-x { color: #000000; }

/* Responsive styles for social links */
@media screen and (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links a i {
        font-size: 1.2rem;
    }
}

/* Add these to your existing animations section */
@keyframes socialGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    }
}

@keyframes socialSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* About Section Skill Items */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: rgba(17, 34, 64, 0.4);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(100, 255, 218, 0.1);
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    transition: all 0.4s ease;
    transform: scale(0);
    z-index: 1;
}

.skill-item:hover::before {
    transform: scale(1);
    animation: rotateGradient 4s linear infinite;
}

.skill-item i {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.skill-item h3 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #ccd6f6;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* HTML5 Specific Styles */
.skill-item .fa-html5 {
    color: #E44D26;
    filter: drop-shadow(0 0 5px rgba(228, 77, 38, 0.3));
}

.skill-item:hover .fa-html5 {
    animation: skillIconFloat 1s ease-in-out infinite;
    color: #F16529;
    filter: drop-shadow(0 0 8px rgba(228, 77, 38, 0.6));
}

/* CSS3 Specific Styles */
.skill-item .fa-css3-alt {
    color: #264DE4;
    filter: drop-shadow(0 0 5px rgba(38, 77, 228, 0.3));
}

.skill-item:hover .fa-css3-alt {
    animation: skillIconRotate 1s ease-in-out infinite;
    color: #2965F1;
    filter: drop-shadow(0 0 8px rgba(38, 77, 228, 0.6));
}

/* JavaScript Specific Styles */
.skill-item .fa-js {
    color: #F7DF1E;
    filter: drop-shadow(0 0 5px rgba(247, 223, 30, 0.3));
}

.skill-item:hover .fa-js {
    animation: skillIconPulse 1s ease-in-out infinite;
    color: #F0DB4F;
    filter: drop-shadow(0 0 8px rgba(247, 223, 30, 0.6));
}

/* React Specific Styles */
.skill-item .fa-react {
    color: #61DAFB;
    filter: drop-shadow(0 0 5px rgba(97, 218, 251, 0.3));
}

.skill-item:hover .fa-react {
    animation: skillIconSpin 4s linear infinite;
    color: #00D8FF;
    filter: drop-shadow(0 0 8px rgba(97, 218, 251, 0.6));
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(17, 34, 64, 0.6);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-item:hover h3 {
    color: #64ffda;
    transform: translateY(2px);
}

@keyframes skillIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes skillIconRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes skillIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes skillIconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for skill items */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-item i {
        font-size: 2rem;
    }

    .skill-item h3 {
        font-size: 1rem;
    }
}

.sticky-name {
    position: fixed;
    right: 40px;
    bottom: 40px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: #64ffda;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(100, 255, 218, 0.2);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    animation: birthEffect 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.sticky-name .download-icon {
    font-size: 0.9em;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.sticky-name:hover .download-icon {
    opacity: 1;
    transform: translateY(0);
}

.sticky-name::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #64ffda, #0a192f, #64ffda);
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite;
}

.sticky-name:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(10, 25, 47, 0.95);
    border-color: rgba(100, 255, 218, 0.4);
    color: #64ffda;
}

.sticky-name:hover .download-icon i {
    animation: downloadBounce 1s ease infinite;
}

@keyframes downloadBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes birthEffect {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive adjustments for sticky name */
@media screen and (max-width: 768px) {
    .sticky-name {
        right: 20px;
        bottom: 20px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Light Mode About Section Styles */
body.light-mode #about {
    background: linear-gradient(135deg, #f5f5f5, #e6e9ef);
}

body.light-mode #about::before {
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.15) 0%, transparent 70%);
}

body.light-mode .about-text {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
}

body.light-mode .about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.25);
    border-color: rgba(100, 255, 218, 0.5);
}

body.light-mode .about-text h2 {
    color: #0a192f;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

body.light-mode .about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #64ffda, transparent);
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.3s ease;
}

body.light-mode .about-text h2:hover::after {
    transform: scaleX(1);
}

body.light-mode .about-text p {
    color: #2a3f5f;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid rgba(100, 255, 218, 0.3);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

body.light-mode .about-text p:hover {
    border-left-color: #64ffda;
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

/* Enhance profile image in light mode */
body.light-mode .profile-image-container {
    position: relative;
}

body.light-mode .profile-image {
    box-shadow: 
        0 0 30px rgba(100, 255, 218, 0.2),
        0 0 60px rgba(100, 255, 218, 0.1);
    border: 3px solid rgba(100, 255, 218, 0.3);
}

body.light-mode .profile-image:hover {
    border-color: #64ffda;
    box-shadow: 
        0 0 40px rgba(100, 255, 218, 0.3),
        0 0 80px rgba(100, 255, 218, 0.2);
}

/* Skills grid in light mode */
body.light-mode .skills-grid {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

body.light-mode .skill-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: all 0.3s ease;
}

body.light-mode .skill-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    border-color: #64ffda;
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

body.light-mode .skill-item h3 {
    color: #0a192f;
    font-weight: 600;
    transition: all 0.3s ease;
}

body.light-mode .skill-item:hover h3 {
    color: #64ffda;
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
}

/* Light Mode Enhancements for All Sections */
body.light-mode #home,
body.light-mode #about,
body.light-mode #skills,
body.light-mode #projects,
body.light-mode #contact {
    background: linear-gradient(135deg, #f5f5f5, #e6e9ef);
}

body.light-mode #home::before,
body.light-mode #about::before,
body.light-mode #skills::before,
body.light-mode #projects::before,
body.light-mode #contact::before {
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.15) 0%, transparent 70%);
}

/* Common section title styles */
body.light-mode .hero-content h1,
body.light-mode .about-text h2,
body.light-mode .skills-section h2,
body.light-mode .projects-section h2,
body.light-mode .contact-section h2 {
    color: #0a192f;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

body.light-mode .hero-content h1::after,
body.light-mode .about-text h2::after,
body.light-mode .skills-section h2::after,
body.light-mode .projects-section h2::after,
body.light-mode .contact-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #64ffda, transparent);
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.3s ease;
}

body.light-mode .hero-content h1:hover::after,
body.light-mode .about-text h2:hover::after,
body.light-mode .skills-section h2:hover::after,
body.light-mode .projects-section h2:hover::after,
body.light-mode .contact-section h2:hover::after {
    transform: scaleX(1);
}

/* Common text styles */
body.light-mode .hero-content p,
body.light-mode .about-text p,
body.light-mode .skill-card p,
body.light-mode .project-content p,
body.light-mode .contact-info p {
    color: #2a3f5f;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid rgba(100, 255, 218, 0.3);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

body.light-mode .hero-content p:hover,
body.light-mode .about-text p:hover,
body.light-mode .skill-card p:hover,
body.light-mode .project-content p:hover,
body.light-mode .contact-info p:hover {
    border-left-color: #64ffda;
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

/* Card styles for all sections */
body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .contact-form,
body.light-mode .contact-info {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
    backdrop-filter: blur(10px);
}

body.light-mode .skill-card:hover,
body.light-mode .project-card:hover,
body.light-mode .contact-form:hover,
body.light-mode .contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.25);
    border-color: rgba(100, 255, 218, 0.5);
    background: rgba(255, 255, 255, 0.98);
}

/* Button and interactive element styles */
body.light-mode .cta-button,
body.light-mode .submit-btn,
body.light-mode .project-links a {
    background: rgba(255, 255, 255, 0.9);
    color: #64ffda;
    border: 2px solid rgba(100, 255, 218, 0.4);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

body.light-mode .cta-button:hover,
body.light-mode .submit-btn:hover,
body.light-mode .project-links a:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
    transform: translateY(-3px);
}

/* Form element styles */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #2a3f5f;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.98);
    border-color: #64ffda;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
}

body.light-mode .form-group label {
    color: #2a3f5f;
    font-weight: 500;
}

/* Icon styles */
body.light-mode .skill-item i,
body.light-mode .contact-method i {
    filter: drop-shadow(0 2px 5px rgba(100, 255, 218, 0.3));
    transition: all 0.3s ease;
}

body.light-mode .skill-item:hover i,
body.light-mode .contact-method:hover i {
    filter: drop-shadow(0 4px 10px rgba(100, 255, 218, 0.5));
    transform: scale(1.1) translateY(-2px);
}

/* Footer enhancements */
body.light-mode footer {
    background: linear-gradient(to bottom, #e6e9ef, #f5f5f5);
}

body.light-mode .footer-content {
    border-top: 1px solid rgba(100, 255, 218, 0.3);
    padding-top: 2rem;
}

body.light-mode .footer-bottom {
    color: #2a3f5f;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
}

body.light-mode .footer-bottom a {
    color: #64ffda;
    transition: all 0.3s ease;
}

body.light-mode .footer-bottom a:hover {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* About Section Light Mode Screen Fit */
body.light-mode #about {
    min-height: 100vh;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e6e9ef);
    position: relative;
    overflow: hidden;
}

body.light-mode .about-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
    height: fit-content;
}

body.light-mode .about-text {
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 255, 218, 0.5) rgba(255, 255, 255, 0.1);
}

body.light-mode .about-text::-webkit-scrollbar {
    width: 6px;
}

body.light-mode .about-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

body.light-mode .about-text::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.5);
    border-radius: 10px;
}

body.light-mode .profile-image-container {
    width: min(400px, 100%);
    height: min(400px, 100vw);
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    body.light-mode .about-content {
        gap: 3rem;
        padding: 0 1.5rem;
    }

    body.light-mode .profile-image-container {
        width: min(350px, 100%);
        height: min(350px, 100vw);
    }
}

@media screen and (max-width: 768px) {
    body.light-mode #about {
        padding: 5rem 0;
    }

    body.light-mode .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.light-mode .about-text {
        padding: 2rem;
        max-height: none;
        height: auto;
    }

    body.light-mode .profile-image-container {
        width: min(300px, 100%);
        height: min(300px, 100vw);
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    body.light-mode #about {
        padding: 4rem 0;
    }

    body.light-mode .about-content {
        padding: 0 1rem;
    }

    body.light-mode .about-text {
        padding: 1.5rem;
    }

    body.light-mode .profile-image-container {
        width: min(250px, 100%);
        height: min(250px, 100vw);
    }
}

body.light-mode .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.light-mode .hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #8892b0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
    padding: 0;
    border-left: none;
    background: none;
    text-align: center;
    width: 100%;
    display: block;
}

/* Stars Animation */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) linear infinite;
    opacity: 0;
}

.star:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    --duration: 4s;
}

.star:nth-child(2) {
    top: 20%;
    left: 30%;
    animation-delay: 1s;
    --duration: 5s;
}

.star:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 2s;
    --duration: 6s;
}

.star:nth-child(4) {
    top: 60%;
    left: 70%;
    animation-delay: 3s;
    --duration: 4s;
}

.star:nth-child(5) {
    top: 80%;
    left: 90%;
    animation-delay: 4s;
    --duration: 5s;
}

.star:nth-child(6) {
    top: 30%;
    left: 20%;
    animation-delay: 5s;
    --duration: 6s;
}

.star:nth-child(7) {
    top: 50%;
    left: 40%;
    animation-delay: 6s;
    --duration: 4s;
}

.star:nth-child(8) {
    top: 70%;
    left: 60%;
    animation-delay: 7s;
    --duration: 5s;
}

.star:nth-child(9) {
    top: 90%;
    left: 80%;
    animation-delay: 8s;
    --duration: 6s;
}

.star:nth-child(10) {
    top: 15%;
    left: 85%;
    animation-delay: 9s;
    --duration: 4s;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scale(2);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(1);
    }
}

/* Light mode stars */
body.light-mode .star {
    background: #64ffda;
    box-shadow: 0 0 10px #64ffda;
}

/* Ensure content stays above stars */
.navbar, .hero-content, .about-content, .skills-content, .projects-content, .contact-content {
    position: relative;
    z-index: 2;
}

/* Space Animation */
.space-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0a192f, #112240);
    overflow: hidden;
    z-index: 1;
}

/* Moon */
.moon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 50%;
    top: 50px;
    right: 100px;
    box-shadow: 0 0 50px #f5f5f5;
    animation: moonFloat 8s ease-in-out infinite;
}

.moon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
    top: 20px;
    left: 20px;
}

/* Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    animation: planetOrbit 20s linear infinite;
}

.planet-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    top: 20%;
    left: 10%;
    animation-duration: 15s;
}

.planet-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4ecdc4, #45b7af);
    top: 40%;
    right: 15%;
    animation-duration: 25s;
}

.planet-3 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffd93d, #ffed4a);
    bottom: 30%;
    left: 20%;
    animation-duration: 18s;
}

.planet-4 {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #a8e6cf, #b4f0d9);
    bottom: 20%;
    right: 25%;
    animation-duration: 22s;
}

/* Planet Rings */
.planet::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: -25%;
    transform: rotate(45deg);
}

/* Animations */
@keyframes moonFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes planetOrbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* Light mode space styles */
body.light-mode .space-container {
    background: linear-gradient(to bottom, #f5f5f5, #e6e9ef);
}

body.light-mode .moon {
    background: #ffd700;
    box-shadow: 0 0 50px #ffd700;
}

body.light-mode .moon::before {
    background: #ffed4a;
}

body.light-mode .planet-1 {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

body.light-mode .planet-2 {
    background: linear-gradient(45deg, #4ecdc4, #45b7af);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

body.light-mode .planet-3 {
    background: linear-gradient(45deg, #ffd93d, #ffed4a);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

body.light-mode .planet-4 {
    background: linear-gradient(45deg, #a8e6cf, #b4f0d9);
    box-shadow: 0 0 20px rgba(168, 230, 207, 0.3);
}

/* Update existing star styles */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) linear infinite;
    opacity: 0;
    box-shadow: 0 0 10px #fff;
}

body.light-mode .star {
    background: #64ffda;
    box-shadow: 0 0 10px #64ffda;
}

/* Ensure content stays above space elements */
.navbar, .hero-content, .about-content, .skills-content, .projects-content, .contact-content {
    position: relative;
    z-index: 2;
}
/* Adjust sun position */
.sun {
    top: 30%;  /* Changed from 70% to 30% to move sun higher up */
    animation: sunFloat 6s ease-in-out infinite;
}

@keyframes sunFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Sun animation */
.sun {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(#ffd700, #ff8c00);
    border-radius: 50%;
    top: 130px;  /* Changed from 50px to 130px to move sun 80px lower */
    right: 50px;
    box-shadow: 0 0 100px #ffd700;
    animation: pulse 4s ease-in-out infinite;
}

/* Earth animation */
.earth {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(#4ecdc4, #2c7873);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
    animation: orbit 20s linear infinite;
}

/* Moon animation */
.moon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(#f5f5f5, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(245, 245, 245, 0.5);
    animation: moonOrbit 15s linear infinite;
}

.moon::before {
    content: '🌙';
    position: absolute;
    font-size: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moonPhase 15s linear infinite;
}

/* Planet animations */
.planet {
    position: absolute;
    border-radius: 50%;
}

.planet-1 {
    width: 40px;
    height: 40px;
    animation: orbit1 15s linear infinite;
}

.planet-2 {
    width: 60px;
    height: 60px;
    animation: orbit2 25s linear infinite;
}

.planet-3 {
    width: 45px;
    height: 45px;
    animation: orbit3 30s linear infinite;
}

.planet-4 {
    width: 50px;
    height: 50px;
    animation: orbit4 35s linear infinite;
}

/* Animation keyframes */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(300px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(300px) rotate(-360deg); }
}

@keyframes moonOrbit {
    from { 
        transform: rotate(0deg) translateX(200px) rotate(0deg);
        top: 20%;
    }
    to { 
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
        top: 20%;
    }
}

@keyframes moonPhase {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(0deg) translateX(400px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(400px) rotate(-360deg); }
}

@keyframes orbit3 {
    from { transform: rotate(0deg) translateX(500px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(500px) rotate(-360deg); }
}

@keyframes orbit4 {
    from { transform: rotate(0deg) translateX(600px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(600px) rotate(-360deg); }
}

/* Sun */
.sun {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c00);
    border-radius: 50%;
    top: 130px;  /* Changed from 50px to 130px to move sun 80px lower */
    right: 50px;
    box-shadow: 0 0 100px #ffd700;
    animation: sunGlow 8s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

