:root {
    --dark-bg: #0d0d1a;
    --darker-bg: #07070f;
    --primary: #a78bfa;
    --primary-glow: rgba(167, 139, 250, 0.4);
    --secondary: #22d3ee;
    --secondary-glow: rgba(34, 211, 238, 0.4);
    --accent: #f472b6;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, #a78bfa, #22d3ee);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 80px;
    background: transparent;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, 
        rgb(255, 0, 0) 0%, 
        rgb(0, 255, 0) 50%, 
        rgb(0, 0, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rgbShift 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes rgbShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links .nav-link {
    text-decoration: none;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links .nav-link.active {
    color: #4169ff;
}

.nav-links .nav-link:hover {
    color: #4169ff;
}

/* Toggle Switch */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    --background: #28096b;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: .5s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0px 0px #fff000;
    background: var(--background);
    transition: .5s;
}

input:checked + .slider {
    background-color: #522ba7;
}

input:checked + .slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px #fff000;
}

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 80px 6% 40px;
    position: relative;
}

.hero__greeting {
    font-size: 1rem;
    color: var(--secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero__name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 16px;
    cursor: default;
    transition: filter 0.3s ease;
}

.hero__name:hover {
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.9)) drop-shadow(0 0 30px rgba(34, 211, 238, 0.6));
}

.hero__tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero__cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--outline {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
}

.btn--outline:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--secondary-glow);
}

/* ── SECTION DIVIDER ── */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 40px 6%;
    opacity: 0.5;
}

/* ── MAIN LAYOUT ── */
.main {
    display: flex;
    gap: 40px;
    padding: 40px 6%;
    max-width: 100%;
    margin: 0 auto;
}

/* ── SIDEBAR ── */
.main__img-container {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.img-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
                var(--gradient) border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--primary-glow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px var(--primary-glow);
}

.main__img { width: 100%; height: auto; display: block; }

/* DOWNLOAD CV BUTTON */
.download-cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.download-cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.5);
}

.download-cv-btn i {
    font-size: 1.1rem;
}

/* ── SOCIAL CARD ── */
.main__social {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.main__social h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--secondary);
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.phone-emoji {
    display: inline-block;
    animation: shakeWithPause 3.5s ease-in-out infinite;
}

@keyframes shakeWithPause {
    0% { transform: rotate(0deg); }
    2.86% { transform: rotate(-15deg); }
    5.71% { transform: rotate(15deg); }
    8.57% { transform: rotate(-15deg); }
    11.43% { transform: rotate(15deg); }
    14.29% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.main__social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main__social-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.main__social-link i { font-size: 1.1rem; width: 20px; text-align: center; }
.main__social-link:nth-child(1) i { color: #e2e8f0; }
.main__social-link:nth-child(2) i { color: #0ea5e9; }
.main__social-link:nth-child(3) i { color: #3b82f6; }
.main__social-link:nth-child(4) i { color: var(--accent); }

.main__social-link:hover {
    color: var(--text);
    background: rgba(167, 139, 250, 0.12);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ── CONTENT CARDS ── */
.main__ab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.main__about,
.main__skill,
.main__education,
.main__hobbies,
.main__experience {
    background: var(--card-bg);
    padding: 32px 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.main__about::before,
.main__skill::before,
.main__education::before,
.main__hobbies::before,
.main__experience::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient);
}

.main__about:hover,
.main__skill:hover,
.main__education:hover,
.main__hobbies:hover,
.main__experience:hover {
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 30px var(--primary-glow);
}

.main__about h3,
.main__skill h3,
.main__education h3,
.main__hobbies h3,
.main__experience h3 {
    font-size: 1.4rem;
    margin-bottom: 22px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main__about p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── SKILLS ── */
.skill-1, .skill-2, .skill-3, .skill-4 { margin-bottom: 22px; }

.main__skill p {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.main__skill p i { color: var(--primary); }

.main__skill ul { list-style: none; margin-left: 4px; }

.main__skill li {
    margin-bottom: 8px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    position: relative;
}

.main__skill li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* ── SKILL TAGS ── */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(167, 139, 250, 0.12);
    color: var(--primary);
    border: 1px solid rgba(167, 139, 250, 0.25);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(167, 139, 250, 0.25);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ── EXPERIENCE ── */
.edu-1, .edu-2, .edu-3,
.hobby-1, .hobby-2, .hobby-3,
.exp-1, .exp-2, .exp-3 {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    transition: all 0.3s;
}

.edu-3, .hobby-3, .exp-3 { margin-bottom: 0; }

.edu-1:hover, .edu-2:hover, .edu-3:hover,
.hobby-1:hover, .hobby-2:hover, .hobby-3:hover,
.exp-1:hover, .exp-2:hover, .exp-3:hover {
    border-color: var(--primary);
    background: rgba(167, 139, 250, 0.07);
    transform: translateX(4px);
}

.edu-1 p:first-child, .edu-2 p:first-child, .edu-3 p:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.edu-1 p, .edu-2 p, .edu-3 p,
.hobby-1 p, .hobby-2 p, .hobby-3 p,
.exp-1 p, .exp-2 p, .exp-3 p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.edu-details {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin-top: 8px;
    padding-left: 32px;
    display: block;
    line-height: 1.6;
}

.hobby-details {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin-top: 8px;
    padding-left: 32px;
    display: block;
    line-height: 1.6;
}

/* HOBBIES GRID */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.hobby-card:hover {
    border-color: var(--primary);
    background: rgba(167, 139, 250, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
}

.hobby-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.hobby-icon i {
    font-size: 32px;
    color: white;
}

.hobby-card h4 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 600;
}

.hobby-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.hobby-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
}

.hobby-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.edu-1 p i, .edu-2 p i, .edu-3 p i,
.hobby-1 p i, .hobby-2 p i, .hobby-3 p i,
.exp-1 p i, .exp-2 p i, .exp-3 p i { color: var(--accent); font-size: 1rem; }

.exp-3 p:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .main { flex-direction: column; padding: 24px 5%; }
    .main__img-container { flex: none; max-width: 320px; margin: 0 auto; width: 100%; }
    .main__social-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .main__social-link { flex: 1 1 120px; justify-content: center; }
    .hero { padding: 50px 5% 30px; }
    .nav { flex-direction: column; gap: 16px; padding: 14px 5%; }
    .nav__links { flex-wrap: wrap; justify-content: center; }
}

/* ── FOOTER ── */
.footer {
    text-align: center;
    padding: 40px 6%;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ── LIGHT MODE ── */
body.light-mode {
    background-color: #f0f4f8;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
}

body.light-mode .nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav__link {
    color: #4a5568;
}

body.light-mode .nav__link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

body.light-mode .hero__name,
body.light-mode .main__about h3,
body.light-mode .main__skill h3,
body.light-mode .main__experience h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .hero__tagline,
body.light-mode .main__about p,
body.light-mode .main__skill li,
body.light-mode .exp-3 p:last-child {
    color: #2d3748;
}

body.light-mode .edu-details {
    color: #1a202c;
}

body.light-mode .hobby-details {
    color: #1a202c;
}

body.light-mode .hobby-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .hobby-card h4 {
    color: #0f172a;
}

body.light-mode .hobby-list li {
    color: #2d3748;
}

body.dark-mode .logo {
    background: linear-gradient(90deg, 
        rgb(255, 0, 0) 0%, 
        rgb(0, 255, 0) 50%, 
        rgb(0, 0, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .nav-links .nav-link {
    color: #ffffff;
}

body.dark-mode .nav-links .nav-link.active {
    color: #4169ff;
}

body.light-mode .main__skill p,
body.light-mode .edu-1 p:first-child,
body.light-mode .edu-2 p:first-child,
body.light-mode .edu-3 p:first-child,
body.light-mode .hobby-1 p,
body.light-mode .hobby-2 p,
body.light-mode .hobby-3 p,
body.light-mode .exp-1 p,
body.light-mode .exp-2 p,
body.light-mode .exp-3 p {
    color: #0f172a;
}

body.light-mode .main__about,
body.light-mode .main__skill,
body.light-mode .main__education,
body.light-mode .main__hobbies,
body.light-mode .main__experience,
body.light-mode .main__social {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .main__social-link,
body.light-mode .edu-1,
body.light-mode .edu-2,
body.light-mode .edu-3,
body.light-mode .hobby-1,
body.light-mode .hobby-2,
body.light-mode .hobby-3,
body.light-mode .exp-1,
body.light-mode .exp-2,
body.light-mode .exp-3 {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #4a5568;
}

body.light-mode .main__social-link:hover {
    color: #1a202c;
}

body.light-mode .footer {
    color: #4a5568;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .section-divider {
    opacity: 0.2;
}
