/* ========================================
   Academic Portfolio - Main Stylesheet
   Color Theme: Teal/Cyan (#17a2b8)
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #17a2b8;
    --primary-dark: #138496;
    --primary-light: #63d4e5;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Roboto Slab', serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #808080;
    --bg-color: #1a1a2e;
    --bg-light: #16213e;
    --bg-dark: #0f0f1a;
    --border-color: #333355;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-color);
    font-weight: 400;
    border-radius: 4px;
}

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

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icons a, .nav-icons button {
    color: var(--text-light);
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icons a:hover, .nav-icons button:hover {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
    color: white;
    outline: none;
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ========================================
   Main Content - Home Page
   ======================================== */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.home-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* Profile Section */
.profile-section {
    position: sticky;
    top: 100px;
}

.profile-card {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.profile-title {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.profile-institution, .profile-university {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

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

/* Biography Section */
.biography-section {
    max-width: 800px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.biography-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-color);
}

.interests-education {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.interests h3, .education h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.interests ul, .education ul {
    list-style: none;
}

.interests li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interests li i {
    color: var(--primary-color);
}

.education li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.education li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.education li div {
    display: flex;
    flex-direction: column;
}

.education li span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-light);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profile-section {
        position: static;
    }
    
    .interests-education {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        order: 3;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-icons {
        order: 2;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
}
