/* Start of style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-primary: 'Outfit', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --sidebar-width: 280px;
    
    /* Light Mode Palette */
    --bg: #fcfdfa;
    --surface: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent: #059669;
    --accent-hover: #047857;
    --border: #e9ecef;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
    --radius: 12px;
}

body.dark-mode {
    /* Dark Mode Palette */
    --bg: #121212;
    --surface: #1e1e1e;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent: #10b981;
    --accent-hover: #34d399;
    --border: #2e2e2e;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

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

/* Base Styles & Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--surface);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 100;
}

.sidebar-header {
    display: none;
}

.nav-menu {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: hidden;
}

.nav-item {
    padding: 0 1rem;
    margin-bottom: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    color: var(--text-secondary);
    border-radius: 6px;
    font-weight: 500;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--accent);
}

.dark-mode .nav-link:hover, .dark-mode .nav-link.active {
    background-color: rgba(129, 140, 248, 0.1);
}

/* Theme Toggle & Social */
.sidebar-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--border);
}

.theme-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0;
}

.theme-toggle-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.dark-mode .slider {
    background-color: #475569;
}

.slider i {
    font-size: 12px;
    color: #fff;
    z-index: 1;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.social-links {
    display: flex;
    justify-content: space-between;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.mobile-header .logo {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-cursive);
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0 4rem;
    max-width: 1200px;
}

/* Sections */
.section {
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border);
}
.section:last-child {
    border-bottom: none;
}
.section-title {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 3.5rem;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
}
.dark-mode .btn-primary {
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}
.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Home */
.home-section {
    display: flex;
    align-items: center;
    border-bottom: none;
}
.home-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.home-text .badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.dark-mode .home-text .badge {
    background-color: rgba(129, 140, 248, 0.1);
}
.home-text h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.home-text h1 span {
    color: var(--accent);
    font-family: var(--font-cursive);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-top: 0.5rem;
}
.home-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.home-actions {
    display: flex;
    gap: 1rem;
}
.home-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.home-image img {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.5s;
}
.home-image:hover img {
    transform: scale(1.05);
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent);
}
.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.dark-mode .card-icon {
    background-color: rgba(129, 140, 248, 0.1);
}
.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 0 0 2rem 60px;
    position: relative;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent);
    border-radius: 50%;
    left: 13px;
    top: 0;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}
.dark-mode .timeline-dot {
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}
.timeline-content {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--bg);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}
.tab-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.tab-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}
.dark-mode .tab-btn.active {
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.pub-item {
    background-color: var(--surface);
    padding: 1.8rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}
.pub-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}
.pub-year {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    min-width: 60px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
}
.contact-info-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.contact-info-item .icon {
    width: 55px;
    height: 55px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dark-mode .contact-info-item .icon {
    background-color: rgba(129, 140, 248, 0.1);
}
.contact-form {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.dark-mode .form-control:focus {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 3rem;
    }
    .home-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .home-image {
        max-width: 450px;
        order: -1;
    }
    .grid-cards[style*="1.5fr"] {
        grid-template-columns: 1fr !important;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-header {
        display: flex;
    }
    .main-content {
        margin-left: 0;
        padding: 5rem 1.5rem 2rem;
    }
    .section {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .home-text h1 {
        font-size: 2.8rem;
    }
    .home-image {
        max-width: 100%;
    }
    .timeline::before {
        left: 20px;
    }
}
