/* ===== GLOBAL ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-left img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.nav-left img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

.nav-info h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.nav-center {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-right a {
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-right a:hover {
    transform: scale(1.2) translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.6);
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

/* ===== GRID LAYOUT ===== */
.grid-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.wide {
    grid-column: span 2;
}

/* ===== GLASS BLOCKS ===== */
.info-block {
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-block:nth-child(1) { animation-delay: 0.1s; }
.info-block:nth-child(2) { animation-delay: 0.2s; }
.info-block:nth-child(3) { animation-delay: 0.3s; }
.info-block:nth-child(4) { animation-delay: 0.4s; }
.info-block:nth-child(5) { animation-delay: 0.5s; }
.info-block:nth-child(6) { animation-delay: 0.6s; }
.info-block:nth-child(7) { animation-delay: 0.7s; }

.info-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-block:hover::before {
    opacity: 1;
}

.info-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.info-block h2 {
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.info-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== ENHANCED GRADIENTS ===== */
#about {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

#education {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

#interests {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(14, 165, 233, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

#projects {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

#achievements {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(147, 51, 234, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

#skills {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

#contact {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(249, 115, 22, 0.2)), 
                rgba(255, 255, 255, 0.08);
}

/* ===== PROJECT & ACHIEVEMENT IMAGES ===== */
.project-photo img,
.achievement-item img {
    width: 100%;
    max-width: 280px;
    margin: 20px auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
}

.project-photo img:hover,
.achievement-item img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5);
    border-color: rgba(236, 72, 153, 0.6);
}

/* ===== ACHIEVEMENTS LAYOUT ===== */
.achievement-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.achievement-item {
    width: 48%;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-5px);
}

.achievement-text {
    margin-top: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.achievement-text strong {
    color: #8b5cf6;
    font-weight: 700;
}

.other-achievements {
    margin-top: 20px;
    margin-left: 25px;
    font-size: 1.05rem;
    line-height: 2;
}

.other-achievements li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.other-achievements li:hover {
    color: #8b5cf6;
    transform: translateX(5px);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.skills span {
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    cursor: default;
}

.skills span:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.4));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 40px;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media screen and (max-width: 768px) {

    /* STACK ALL BLOCKS IN SINGLE COLUMN (4x1) */
    .grid-container {
        grid-template-columns: 1fr;
        margin: 40px auto;
        gap: 25px;
    }

    /* Make wide sections also single column */
    .wide {
        grid-column: span 1;
    }

    /* NAVBAR STACK */
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        position: relative;
    }

    .nav-left {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-info {
        text-align: center;
    }

    .nav-info h1 {
        font-size: 1.2rem;
    }

    .nav-center {
        margin-top: 10px;
        font-size: 0.85rem;
    }

    .nav-right {
        margin-top: 15px;
    }

    .nav-right a {
        font-size: 0.9rem;
        padding: 10px 24px;
    }

    /* Info blocks */
    .info-block {
        padding: 25px;
    }

    .info-block h2 {
        font-size: 1.5rem;
    }

    /* Achievements images stack */
    .achievement-container {
        flex-direction: column;
    }

    .achievement-item {
        width: 100%;
    }

    .achievement-text {
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .project-photo img,
    .achievement-item img {
        max-width: 100%;
    }

    .info-block {
        padding: 20px;
    }

    .info-block h2 {
        font-size: 1.3rem;
    }

    .skills span {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}