/* ====================== RESET & VARIABLES ====================== */
:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --accent: #00ffcc;
    --accent-dark: #007bff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #00ffcc 0%, #007bff 100%);
}
body.dark {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --card-bg: rgba(20, 20, 30, 0.9);
    --shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
    min-height: 100dvh;
}

/* ====================== HEADER ====================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ====================== SECTION TITLES ====================== */
.section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ====================== SECTIONS ====================== */
.section {
    min-height: calc(100dvh - 80px);
    padding: 100px 1.5rem 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

#welcome {
    height: 100dvh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.7);
    color: white;
}

/* ====================== CONTAINER ====================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====================== CURSOR & VIDEO ====================== */
.cursor, .cursor-trail { position: fixed; pointer-events: none; z-index: 9999; }
.cursor { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; mix-blend-mode: difference; }
.cursor-trail { width: 40px; height: 40px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0.3; }

#bg-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(0.6); }
#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

/* ====================== WELCOME ====================== */
#welcome {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}
.welcome-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}
.welcome-content p {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.9;
}
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--accent);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.swipe-hint {
    display: none;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--accent);
    font-size: 1rem;
    animation: pulse 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ====================== INTRO ====================== */
.intro-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    backdrop-filter: blur(15px);
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.intro-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient);
    opacity: 0.05;
    z-index: -1;
}
.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: var(--shadow), 0 0 30px rgba(0, 255, 204, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.profile-pic:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow), 0 0 50px rgba(0, 255, 204, 0.5);
}
.intro-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.intro-buttons {
    display: flex;
    gap: 1.5rem;
}
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}
.btn.primary {
    background: var(--gradient);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.4);
}
.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    animation: none;
}
.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.6);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
#typing-text {
    border-right: 2px solid var(--accent);
    animation: blink 1s infinite;
    display: inline-block;
    min-height: 1.2em;
    white-space: pre-line;
    line-height: 1.6;
    max-width: 90%;
}
@keyframes blink {
    0%, 50% { border-color: var(--accent); }
    51%, 100% { border-color: transparent; }
}

/* ====================== PROJECTS ====================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.project-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
}
.project-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.project-preview {
    position: relative;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}
.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 1rem;
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
.project-features {
    margin: 1rem 0;
    font-size: 0.95rem;
}
.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 2px dashed var(--accent);
}
.coming-soon {
    text-align: center;
    color: var(--accent);
}
.coming-soon i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

/* ====================== SKILLS – FIXED ====================== */
#skills .container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding: 1rem;
    justify-items: center;
}
.skill-bar {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 70px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.skill-bar:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.3);
}
.skill-bar span {
    font-weight: 700;
    z-index: 3;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.skill-bar .bar {
    position: absolute;
    left: 0; bottom: 0; height: 8px;
    background: var(--gradient);
    width: 0;
    border-radius: 4px;
    transition: width 2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}
.skill-bar.in-view .bar {
    width: var(--skill-width, 90%) !important;
}
.skill-bar::after {
    content: attr(data-skill) '%';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}
.skill-bar.in-view::after {
    opacity: 1;
}

/* ====================== CERTIFICATES – FINAL FIXED ====================== */
#certificates {
    padding: 100px 1.5rem 3rem;
}
#certificates .container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}
#certificates h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
#certificates h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-items: center;
    align-items: start;
    margin-top: 1.5rem;
    width: 100%;
    overflow: visible !important;
}
.certificates-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background: #fff;
    display: block;
}
.certificates-grid img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0, 255, 204, 0.4);
    border-color: var(--accent);
}

/* ====================== EDUCATION & PUBLICATIONS ====================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
th {
    background: var(--gradient);
    color: white;
    font-weight: 600;
}
.education-row {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#education.in-view .education-row {
    opacity: 1;
    transform: translateY(0);
}
#education.in-view .education-row:nth-child(2) { transition-delay: 0.1s; }
#education.in-view .education-row:nth-child(3) { transition-delay: 0.2s; }
#education.in-view .education-row:nth-child(4) { transition-delay: 0.3s; }
.education-row:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
}
.publications-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.publication {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border-left: 4px solid var(--accent);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#publications.in-view .publication {
    opacity: 1;
    transform: translateY(0);
}
#publications.in-view .publication:nth-child(1) { transition-delay: 0.1s; }
#publications.in-view .publication:nth-child(2) { transition-delay: 0.2s; }
#publications.in-view .publication:nth-child(3) { transition-delay: 0.3s; }
#publications.in-view .publication:nth-child(4) { transition-delay: 0.4s; }
.publication:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.publication a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
.publication a:hover {
    color: #00cc99;
    text-decoration: underline;
}

/* ====================== CONTACT & FORM ====================== */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
}
.contact-item {
    font-size: 1.3rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}
.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: rgba(0, 255, 204, 0.1);
}
.contact-item i {
    width: 20px;
    color: var(--accent);
    font-size: 1.2rem;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.social-link {
    font-size: 2rem;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-link:hover {
    transform: translateY(-10px) scale(1.2) rotate(360deg);
    color: #00cc99;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}
.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group input,
.form-group textarea {
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}
.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.2);
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent);
}
.form-group textarea {
    resize: vertical;
    min-height: 140px;
}
.send-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}
#form-response {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#form-response.success {
    background: rgba(0, 200, 0, 0.2);
    color: #00c800;
    border: 2px solid #00c800;
    animation: successPulse 0.6s ease;
}
#form-response.error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 2px solid #ff4444;
    animation: errorShake 0.6s ease;
}
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ====================== HEADER CONTROLS ====================== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: rotate(360deg) scale(1.1);
}
.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; /* ← FIXED: was ": 1.6rem;" */
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: var(--accent);
}
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
#theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}
#theme-toggle i {
    position: absolute;
    transition: all 0.4s ease;
}
#theme-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}
#theme-toggle .fa-moon {
    opacity: 0;
    transform: scale(0);
}
body.dark #theme-toggle .fa-sun {
    opacity: 0;
    transform: scale(0);
}
body.dark #theme-toggle .fa-moon {
    opacity: 1;
    transform: scale(1);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.hamburger span {
    width: 30px;
    height: 4px;
    background: var(--text-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.cv-download-btn {
    background: var(--gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
    animation: float 3s ease-in-out infinite;
}
.cv-download-btn:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.6);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ====================== DOT NAV & TOAST ====================== */
.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    opacity: 0;
    animation: slideInRight 0.8s ease 1s forwards;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active,
.dot:hover {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateX(400px);
    opacity: 0;
    z-index: 1002;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast i {
    font-size: 1.2rem;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1200px) {
    .intro-content { gap: 2rem; }
    .profile-pic { width: 220px; height: 220px; }
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    .certificates-grid img { height: 150px; }
}
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .certificates-grid img { height: 140px; }
    .skill-bar { height: 65px; }
    .dot-nav { display: none; }
    .cursor, .cursor-trail { display: none; }
}
@media (max-width: 768px) {
    header { height: 70px; padding: 0.8rem 1rem; }
    .section { padding: 90px 1rem 3rem; min-height: calc(100dvh - 70px); }
    #welcome { height: 100dvh; }

    .section h2 { font-size: 2.5rem; margin-bottom: 2rem; }

    .intro-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    .welcome-content h1 { font-size: 2.8rem; }
    .welcome-content p { font-size: 1.4rem; }
    .swipe-hint { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

    .hamburger { display: flex; }
    nav ul {
        display: none;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: rgba(20,20,30,0.95);
        padding: 2rem;
        flex-direction: column;
        backdrop-filter: blur(20px);
    }
    nav ul.active { display: flex; animation: slideDown 0.3s ease; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .certificates-grid img { height: 180px; }

    #skills .container,
    #certificates .container { padding: 2.5rem 1.5rem; }
}
@media (max-width: 576px) {
    .skills-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    .certificates-grid img { height: 160px; }
    .section h2 { font-size: 2.2rem; }
}

/* ====================== THEME TRANSITION ====================== */
body.theme-transition::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient);
    z-index: 9999;
    animation: flash 0.6s ease;
    pointer-events: none;
}
@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}