:root {
    --bg: #0b0714;
    --bg-alt: #130b26;
    --text: #f5f3ff;
    --muted: #c9c3e8;
    --card: rgba(34, 20, 70, 0.7);
    --primary: #7b2ff7;
    --secondary: #9d4edd;
    --accent: #ffb347;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.6);
    --glass: rgba(40, 24, 80, 0.7);
    --dock-bg: rgba(25, 15, 55, 0.85);
    --dock-border: rgba(255, 255, 255, 0.18);
    --input-bg: rgba(18, 10, 40, 0.9);
}
body.dark {
    --bg: #050309;
    --bg-alt: #0b0615;
    --text: #f8f7ff;
    --muted: #b9b2e0;
    --card: rgba(18, 10, 40, 0.9);
    --primary: #b47cff;
    --secondary: #d0a2ff;
    --accent: #ffc26b;
    --border: rgba(255, 255, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.8);
    --glass: rgba(18, 10, 40, 0.9);
    --dock-bg: rgba(12, 7, 30, 0.95);
    --dock-border: rgba(255, 255, 255, 0.22);
    --input-bg: rgba(10, 5, 25, 0.95);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #2b1458 0, var(--bg) 45%, #050309 100%);
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
header {
    padding: 24px 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-text {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted);
}
.dark-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
}
.dark-toggle span {
    font-size: 16px;
}
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 20px 40px;
}
.section {
    display: none;
    animation: fade 0.5s ease;
}
.section.active {
    display: block;
}
@keyframes fade {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 40px 0 20px;
}
.hero-left h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 12px;
}
.hero-gradient {
    background: linear-gradient(120deg, var(--primary), var(--secondary), #ff6ad5);
    -webkit-background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 22px;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}
.tag {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 5, 25, 0.7);
    color: var(--muted);
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
.btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(123, 47, 247, 0.6);
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--muted);
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.hero-meta {
    font-size: 13px;
    color: var(--muted);
}
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.hero-photo-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 32px;
    padding: 4px;
    background: conic-gradient(from 180deg, var(--primary), var(--secondary), #ff6ad5, var(--primary));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}
.hero-photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: radial-gradient(circle at top, #2b1458, #0b0615);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-photo-inner img {
    width: 88%;
    height: 88%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.12);
}
.hero-pill {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 5, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
}
.section-title {
    font-size: 22px;
    margin: 40px 0 16px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}
.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
}
.card {
    background: var(--card);
    border-radius: 18px;
    padding: 22px 22px 20px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px var(--shadow);
    backdrop-filter: blur(18px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}
.card h3 {
    margin-top: 0;
    font-size: 18px;
}
.card p, .card li {
    font-size: 14px;
    color: var(--muted);
}
.card ul {
    padding-left: 18px;
    margin: 8px 0 0;
}
.reveal-card {
    cursor: pointer;
    position: relative;
}
.reveal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reveal-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.reveal-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    margin-top: 10px;
}
.reveal-card.expanded .reveal-body {
    max-height: 500px;
}
.reveal-card.expanded .reveal-icon {
    transform: rotate(90deg);
}
.theme-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.theme-preview {
    border-radius: 18px;
    background: radial-gradient(circle at top, #3b1a70, #0b0615);
    border: 1px solid var(--border);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-preview-inner {
    width: 100%;
    height: 260px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(135deg, rgba(123, 47, 247, 0.4), rgba(9, 9, 121, 0.4));
}
.theme-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.theme-thumb {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: radial-gradient(circle at top, #3b1a70, #0b0615);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--muted);
}
.theme-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(123, 47, 247, 0.7);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.project-card {
    position: relative;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}
.project-tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.link-btn {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.cert-card {
    cursor: pointer;
}
.cert-meta {
    font-size: 12px;
    color: var(--muted);
}
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
}
form input, form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}
form textarea {
    height: 140px;
    resize: none;
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(123, 47, 247, 0.6);
}
.footer {
    text-align: center;
    padding: 26px 16px 90px;
    font-size: 13px;
    color: var(--muted);
}
.footer a {
    color: var(--muted);
    text-decoration: none;
}
.footer a:hover {
    color: var(--accent);
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 10, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}
.modal-backdrop.active {
    display: flex;
}
.modal {
    max-width: 480px;
    width: 90%;
    background: var(--card);
    border-radius: 18px;
    padding: 22px 20px 18px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.modal-close {
    cursor: pointer;
    font-size: 18px;
}
.modal-body {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}
.modal-body p {
    margin: 6px 0;
}
.dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 50;
}
.dock-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--dock-bg);
    border: 1px solid var(--dock-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px);
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.dock-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: radial-gradient(circle at top, #3b1a70, #0b0615);
    color: #fdfbff;
}
.dock-label {
    font-size: 10px;
    color: var(--muted);
}
.dock-item.active {
    transform: translateY(-4px) scale(1.05);
    background: rgba(123, 47, 247, 0.18);
    box-shadow: 0 10px 26px rgba(123, 47, 247, 0.6);
}
.dock-item:hover {
    transform: translateY(-3px) scale(1.04);
}
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }
    .hero-right {
        order: -1;
    }
    .grid-two, .theme-gallery, .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 600px) {
    .hero-left h1 {
        font-size: 30px;
    }
    .hero-photo-wrapper {
        width: 190px;
        height: 190px;
    }
    .dock-inner {
        padding: 8px 10px;
        gap: 6px;
    }
    .dock-icon {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    .dock-label {
        font-size: 9px;
    }
}
