/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #000000;
    color: #e0e0e0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(57, 0, 131, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #01f2fa;
}

.logo span {
    color: #7a5cff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #15ff00;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
    color: #0c0c0c;
    text-shadow: 0 0 5px #00eeff, 0 0 10px #00eeff, 0 0 20px #00eeff, 0 0 40px #00eeff;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.profile-img {
    text-align: center;
    margin: 1rem auto;
}

.responsive-img {
    height: 200px;          /* base height */
    max-height: 250px;      /* maximum height */
    width: auto;            /* maintain aspect ratio */
    border-radius: 50%;
    border: 3px solid #9501f7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Medium screens */
@media (max-width: 768px) {
    .responsive-img {
        height: 150px;
        max-height: 180px;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .responsive-img {
        height: 120px;
        max-height: 140px;
    }
}


/* Sections */
.section {
    padding: 6rem 10%;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #7a5cff;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #1b1b2f;
    padding: 2rem;
    border-radius: 12px;
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.project-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.project-card p {
    color: #aaa;
    margin-bottom: 1.2rem;
}

/* Glowing Hover Effect */
.project-card:hover {
    transform: translateY(-10px);
    animation: glowing 1.6s infinite alternate;
}

@keyframes glowing {
    from {
        box-shadow: 0 0 10px rgba(170, 0, 255, 0.624),
                    0 0 20px rgba(170, 0, 255, 0.787);
    }
    to {
        box-shadow: 0 0 25px rgba(0, 198, 255, 0.7),
                    0 0 40px rgba(0, 198, 255, 0.9);
    }
}

/* Back/Contact Button */
.back-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, #7a5cff, #00c6ff);
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    margin: 2rem auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(122, 92, 255, 0.7), 0 0 25px rgba(0, 198, 255, 0.7);
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #111;
    color: #888;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #1b1b2f;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.open {
        max-height: 300px;
        padding: 1rem 0;
    }
}

/* Hamburger Animation */
.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(6px, -6px);
}
