/* ==== RESET & VARIABLES ==== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    /* Color Palette derived from image */
    /* Light Theme */
    --bg-main: #fcf9fa;
    --bg-alt: #f4ebef;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.5);
    
    --primary: #9d4663; /* Dusty Rose / Burgundy */
    --primary-dark: #6e2c41;
    --secondary: #b58c9f; /* Lighter Mauve */
    --accent: #dfc7d4;
    
    --text-main: #3a2831;
    --text-muted: #6e5863;
    --text-light: #ffffff;
    
    --shadow-sm: 0 4px 6px rgba(110, 44, 65, 0.05);
    --shadow-md: 0 10px 30px rgba(110, 44, 65, 0.08);
    --shadow-lg: 0 20px 40px rgba(110, 44, 65, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --bg-main: #1a1115;
    --bg-alt: #26191f;
    --bg-card: #2f1d26;
    --bg-glass: rgba(47, 29, 38, 0.7);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --primary: #c96d8b;
    --primary-dark: #ec9db9;
    --secondary: #90667a;
    --accent: #5c3b4b;
    
    --text-main: #fcf9fa;
    --text-muted: #d0b8c4;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.alternate-bg {
    background-color: var(--bg-alt);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-header .underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.section-header.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ==== BUTTONS ==== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(157, 70, 99, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(157, 70, 99, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==== NAVIGATION ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* ==== HERO SECTION ==== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.role {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-info i {
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-2 {
    width: 250px;
    height: 250px;
    background-color: var(--primary);
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    opacity: 0.4;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary);
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.glass-card {
    position: absolute;
    top: 30%;
    left: 10%;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    animation: floatY 6s infinite alternate;
    z-index: 10;
}

.card-2 {
    top: auto;
    bottom: 20%;
    left: auto;
    right: 5%;
    animation-delay: 3s;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.card-text h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.card-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.1); }
}

@keyframes floatY {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* ==== ABOUT SECTION ==== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.summary-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-detail span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-detail p {
    font-weight: 500;
    color: var(--text-main);
    font-size: 1.05rem;
}

.languages-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.languages-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.languages-card h3 i {
    color: var(--primary);
}

.lang-item {
    margin-bottom: 1.5rem;
}

.lang-item:last-child {
    margin-bottom: 0;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-pill);
}

.decorative-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2rem;
    border-radius: var(--radius-md);
    color: var(--text-light);
    position: relative;
    box-shadow: var(--shadow-md);
}

.decorative-box i {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.decorative-box p {
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ==== EXPERIENCE SECTION ==== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--accent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--bg-alt);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.timeline-content h4 {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.task-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--text-muted);
}

.task-list li i {
    color: var(--primary);
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

/* ==== EDUCATION & COURSES ==== */
.edu-courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    height: calc(100% - 100px); /* Fill space */
}

.edu-year {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.uni-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faculty {
    font-weight: 500;
    color: var(--text-main);
}

.department {
    color: var(--text-muted);
}

.edu-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(157, 70, 99, 0.05);
    transform: rotate(-15deg);
}

.courses-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.courses-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.course-icon {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.courses-list span {
    font-weight: 500;
    color: var(--text-main);
    display: block;
}

.courses-list .issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 400;
}

/* ==== SKILLS SECTION ==== */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-pill {
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-pill i {
    color: var(--primary);
    font-size: 1.2rem;
}

.skill-pill:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==== MODAL ==== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-main);
    margin: auto;
    padding: 3rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-muted);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

.modal-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.modal-contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.modal-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: rgba(157, 70, 99, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.modal-detail span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.modal-detail p {
    font-weight: 500;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-top: 0.2rem;
}

/* ==== FOOTER ==== */
.footer {
    background-color: var(--bg-card);
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo .dot {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 992px) {
    .name { font-size: 3rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-info { justify-content: center; }
    .hero-actions { justify-content: center; }
    .about-grid, .edu-courses-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .contact-item:hover { transform: translateY(-5px); transform: translateX(0); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .name { font-size: 2.5rem; }
    .role { font-size: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .skill-pill { width: 100%; justify-content: center; }
}
