@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #081b29;
    --main-color: #00abf0;
    --text-color: #f4f4f4;
    --second-text-color: #ddd;
    --light-text-color: #f4f4f4;
    --white-color: #fff;
    --section-padding: 80px 0;
    --border: 0.125rem solid #00abf0;
    --box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.2);
    --card-bg: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 27, 41, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    padding-left: 5px;
    font-size: 1.6rem; /* Slightly smaller on all screens */
}


nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--main-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white-color);
}

/* Hero Section */

/* Hero Section */
.hero {
    background-color: var(--bg-color);
    color: var(--white-color);
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* Updated list styling */
.info-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.info-list i {
    color: #00abf0;
    font-size: 20px;
    margin-right: 10px;
}

.info-list span {
    font-weight: bold;
    margin-right: 5px;
    color: #00abf0;
}
.profile-image {
    flex: 0 0 300px;
    text-align: center;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--main-color);
    object-fit: cover;
}

.profile-text {
    flex: 1;
    min-width: 300px;
}

.profile-text h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--white-color);
}

.profile-text h3 {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: var(--border);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--main-color);
    transition: 0.3s;
}

.social-media a:hover {
    background-color: var(--main-color);
    color: var(--white-color);
}

.info-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 150px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: var(--border);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 10px;
    transition: 0.3s;
}

.info-card a:hover {
    background-color: var(--main-color);
    color: var(--white-color);
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--main-color);
}

.info-card p {
    font-size: 1rem;
    color: var(--white-color);
}

.btn-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 25px;
    background: var(--main-color);
    border: var(--border);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--white-color);
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
}



/* About Section */
.about {
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--white-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--main-color);
    margin: 10px auto 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about-content ul {
    list-style-position: inside;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-content ul li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}





/* Skills Section */
.skills {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.skills-group {
    flex: 1;
    min-width: 360px; /* Increased from 320px */
    margin-bottom: 30px;
}

.skills-group h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white-color);
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Fix for extremely small screens */
@media (max-width: 480px) {
    .skills-content span {
        width: 110px;  /* Wider than original small screen */
        height: 110px; /* Taller than original small screen */
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .skills-content {
        gap: 15px;
    }
    
    .skills-group {
        min-width: 300px;
    }
    
    /* Make profile elements stack better */
    .profile-image {
        flex: 0 0 200px;
        margin-left: -10px;
    }
    
    .profile-text {
        padding: 0 10px;
    }
    
    /* Better alignment for header elements */
    .logo h2 {
        font-size: 1.4rem;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 360px) {
    .skills-content span {
        width: 90px;
        height: 90px;
        font-size: 0.75rem;
    }
    
    .skills-content span i {
        font-size: 1.8rem;
    }
    
    .skills-group {
        min-width: 250px;
    }
    
    .profile-image img {
        width: 130px;
        height: 130px;
    }
}
.skills-content span:hover {
    box-shadow: 0 0 15px rgba(0, 171, 240, 0.5);
    transform: translateY(-5px);
}

.skills-content span i {
    font-size: 3rem; /* Increased from 2.5rem */
    color: var(--main-color);
    margin-bottom: 12px; /* Increased from 10px */
}

/* Media queries for better responsiveness */
@media screen and (max-width: 1200px) {
    .skills-group {
        min-width: 320px;
    }
    
    .skills-content span {
        width: 130px;
        height: 130px;
    }
}

@media screen and (max-width: 768px) {
    .skills-content span {
        width: 120px;
        height: 120px;
        font-size: 0.95rem;
    }
    
    .skills-group {
        min-width: 100%;
    }
}

/* Skills description section */
.skills-description {
    margin-top: 20px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-description h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--white-color);
}

.skills-description p, 
.skills-description ul {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.skills-description ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.skills-description ul li::before {
    content: "•";
    color: var(--main-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}


/* Projects Section */
.projects {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
}

.project-card {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-image {
    flex: 1;
    min-width: 200px;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    flex: 1;
    padding: 20px;
    min-width: 200px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white-color);
}

.project-details p {
    margin-bottom: 15px;
    color: var(--second-text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 4px 10px;
}


/* Contact Section */
.contact {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.field {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
    font-size: 1rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea.field {
    resize: none;
    height: 200px;
}

/* Footer */
footer {
    background-color: rgba(4, 14, 22, 0.9);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .social-media {
    justify-content: center;
    margin-bottom: 20px;
}

footer p {
    color: #999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 27, 41, 0.95);
        padding: 20px 0;
        z-index: 100;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 20px;
    }

    .hamburger {
        display: block;
    }
    
    .hero {
        padding-top: 120px;
    }

    .profile-text h1 {
        font-size: 2.2rem;
    }

    .profile-text h3 {
        font-size: 1.3rem;
    }

    .info-cards {
        justify-content: center;
    }

    .btn-box {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .profile-text h1 {
        font-size: 1.8rem;
    }

    .info-cards {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 250px;
    }

    .btn {
        width: 100%;
    }

    .btn-box {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skills-content span {
        width: 80px;
        height: 80px;
    }

    .skills-content span i {
        font-size: 2rem;
    }
}
 
        /* Enhanced Stars Background Effect */
        .stars-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
            background-color: transparent;
            pointer-events: none;
        }
        
        /* Star styling with increased size */
        .star {
            position: absolute;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            opacity: 0;
            animation-name: twinkle, move;
            animation-duration: 4s, 30s;
            animation-timing-function: ease-in-out, linear;
            animation-iteration-count: infinite, infinite;
            animation-direction: alternate, normal;
        }
        
        /* Large stars for more visibility */
        .star.large {
            width: 6px;
            height: 6px;
        }
        
        /* Small stars for variety */
        .star.small {
            width: 3px;
            height: 3px;
        }
        
        .star.white {
            background-color: white;
            box-shadow: 0 0 5px 2px white;
        }
        
        .star.yellow {
            background-color: #ffff99;
            box-shadow: 0 0 5px 2px #ffff99;
        }
        
        .star.red {
            background-color: #ff9999;
            box-shadow: 0 0 5px 2px #ff9999;
        }
        
        .star.blue {
            background-color: #00abf0;
            box-shadow: 0 0 5px 2px #00abf0;
        }
        
        /* Enhanced star animations */
        @keyframes twinkle {
            0% {
                opacity: 0;
                transform: scale(0.5);
            }
            50% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0.5);
            }
        }
        
        @keyframes move {
            0% {
                transform: translateX(-10vw);
            }
            100% {
                transform: translateX(10vw);
            }
        }
    