* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(135deg, #444242 0%, #2c2a2a 50%, #1a1818 100%);
    font-family: Arial, sans-serif;
    color: white;
    padding: 15px;
    overflow-x: hidden;
}

/* Floating particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(53, 39, 245, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 107, 107, 0.3), transparent);
    background-size: 200px 150px;
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Navbar */
.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 100;
    background: rgba(68, 66, 66, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 5%;
    transition: all 0.3s ease;
}

.navbar .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(53, 39, 245, 0.5); }
    to { box-shadow: 0 0 20px rgba(53, 39, 245, 0.8); }
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar ul li a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: whitesmoke;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.navbar ul li a:hover {
    color: #3527F5;
    background: rgba(53, 39, 245, 0.1);
    transform: translateY(-2px);
}
/* --- your existing CSS (pasted unchanged) --- */

/* HAMBURGER MENU */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navbar ul {
        position: absolute;
        top: 90px;
        right: 0;
        background: rgba(31, 31, 31, 0.95);
        flex-direction: column;
        width: 220px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 10px;
        padding: 0;
    }

    #menu-toggle:checked ~ ul {
        max-height: 500px; /* expands menu */
        padding: 10px 0;
    }

    .navbar ul li {
        text-align: center;
    }

    .navbar ul li a {
        display: block;
        padding: 12px;
    }
}

/* Home section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 120px 5% 40px;
    gap: 50px;
}

.home-info {
    flex: 1;
    max-width: 600px;
}

.home-info h1 {
    font-size: 55px;
    background: linear-gradient(45deg, #3527F5, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease-in-out infinite, bounceIn 1s ease-out both;
    font-weight: bold;
    line-height: 1.2;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.home-info h2 {
    font-size: 32px;
    margin-top: 10px;
    animation: typewriter 2s steps(20) forwards;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.home-info p {
    font-size: 20px;
    margin: 10px 0 25px;
}

/* Button */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, #3527F5, #ff6b6b);
    color: white;
    padding: 12px 25px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(53, 39, 245, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(53, 39, 245, 0.6);
}

/* Social icons */
.sci {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.sci a {
    font-size: 24px;
    color: white;
    transition: all 0.4s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sci a:hover {
    color: #3527F5;
    background: rgba(53, 39, 245, 0.2);
}

/* Profile image */
.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .img-box {
    position: relative;
    width: 22vw;
    height: 22vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: rotate3D 10s linear infinite;
}

@keyframes rotate3D {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(10deg); }
    50% { transform: rotateY(180deg) rotateX(0deg); }
    75% { transform: rotateY(270deg) rotateX(-10deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, #3527F5, #ff6b6b, #4ecdc4);
    animation: spin 3s linear infinite;
}

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

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgb(68, 66, 66);
    border-radius: 50%;
    border: .1px solid rgb(68, 66, 66);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.home-img .img-box:hover .img-item {
    transform: scale(1.1);
}

.home-img .img-box .img-item img {
    position: absolute;
    top: 10px;
    margin-left: 20px;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
    transition: all 0.3s ease;
}

/* Sections */
.about, .education, .projects, .contact {
    padding: 100px 9%;
    text-align: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about { background: rgba(31, 31, 31, 0.8); }
.education { background: rgba(43, 43, 43, 0.8); }
.projects { background: rgba(31, 31, 31, 0.8); }
.contact { background: rgba(24, 23, 23, 0.8); }

.about h2, .education h2, .projects h2, .contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #3527F5;
    text-shadow: 0 0 20px rgba(53, 39, 245, 0.5);
}

.about p, .contact p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* Interests inside About */
.about .interests {
    margin-top: 40px;
}

.about .interests h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #3527F5;
    text-shadow: 0 0 15px rgba(107, 24, 24, 0.5);
}

.about .interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.about .interest-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about .interest-tags span:hover {
    background: rgba(53, 39, 245, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(53, 39, 245, 0.4);
}


/* Cards */
.edu-card, .project-card {
    background: rgba(61, 61, 61, 0.8);
    backdrop-filter: blur(10px);
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.edu-card {
    max-width: 700px;
    text-align: left;
}
.edu-card p{
    margin-top: 10px;
    font-weight: lighter;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    text-align: left;
}

.edu-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(53, 39, 245, 0.2);
    border-color: #3527F5;
}
.project-card p {
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 100;
     color: #e7e2e2;
}

.project-card img {

    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

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

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #3527F5;
    box-shadow: 0 0 20px rgba(53, 39, 245, 0.3);
}

.contact-form button {
    background: linear-gradient(45deg, #3527F5, #ff6b6b);
    color: white;
    padding: 12px 25px;
    font-weight: bold;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(53, 39, 245, 0.5);
}

/* Programming Languages Section */
.programming-languages {
    margin-top: 50px;
    text-align: center;
}

.programming-languages h3 {
    color: #3527F5;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(53, 39, 245, 0.5);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(61, 61, 61, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.language-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(53, 39, 245, 0.1), transparent);
    animation: rotateGradient 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-item:hover::before {
    opacity: 1;
}

.language-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(53, 39, 245, 0.3);
    border-color: #3527F5;
}

.language-icon {
    font-size: 48px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.language-item:hover .language-icon {
    transform: scale(1.2) rotate(10deg);
}

.language-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    z-index: 1;
    position: relative;
    transition: color 0.3s ease;
}

.language-item:hover .language-name {
    color: #3527F5;
}

/* Language specific colors */
.js { color: #f7df1e; }
.python { color: #3776ab; }
.css { color: #1572b6; }
.tailwind { color: #06b6d4; }
.nextjs { color: #ffffff; }
.html { color: #e34c26; }
.react { color: #61dafb; }

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

/* Responsive */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
    }
    
    .home-info h1 { font-size: 40px; }
    .home-img .img-box { width: 60vw; height: 60vw; }
    .navbar ul { gap: 10px; }
    .project-container { grid-template-columns: 1fr; }
    
    .languages-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .language-icon {
        font-size: 36px;
    }
}
.footer {
    background: #111;  /* dark footer */
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* keeps it responsive */
    gap: 20px; /* spacing between items */
}

.footer-container p {
    margin: 0;
    font-size: 14px;
}
