:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #f43f5e;
    --bg: #0f172a;
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.8s ease-in-out, background-color 0.8s ease-in-out, color 0.8s ease-in-out;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    min-height: 100vh;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

section {
    padding: 100px 10%;
    min-height: calc(100vh - 120px);
    display: none;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
}

section.active-section {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Navigation & Resume Button */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

.resume-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#home {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.profile-picture {
    width: 180px;
    min-width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-intro {
    max-width: 700px;
}

.card {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; color: var(--secondary); }

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}

.achievement-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.achievement-card p {
    padding: 20px 15px;
    font-size: 0.95rem;
    color: white;
    background: rgba(0,0,0,0.15);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.lightbox-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    backdrop-filter: blur(8px);
}

/* Click Animation & Clickable Wrappers */
.clickable-part {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
}

.clickable-part:active {
    transform: scale(0.97);
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

.clickable-part h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInSection {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    h1 { font-size: 2.5rem; }
    section { padding: 60px 5%; }
}
