/*
 * Global styles for Rifo Ahmad Genadi's profile site.
 * Elegant black and white minimalist design with clean typography
 * and subtle spacing for maximum readability and sophistication.
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', 'Georgia', serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

/* Navigation Header */
.nav-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s ease;
    padding-bottom: 0.25rem;
}

.nav-menu a:hover {
    border-bottom: 2px solid #1a1a1a;
}

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

.dropdown-toggle {
    cursor: pointer;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.75rem;
    display: none;
}

.dropdown:hover::before {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0;
    min-width: 220px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1a1a1a;
    border-bottom: none !important;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    border-bottom: none !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        background-color: #f9f9f9;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown .dropdown-menu {
        display: block;
    }
}

a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}
a:hover {
    border-bottom: 1px solid #000000;
}



/* Main container */
.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
    padding: 0 2rem;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.75rem;
    font-weight: 400;
    font-family: 'Georgia', serif;
}

/* About section with photo */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-photo {
    flex-shrink: 0;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1a;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-top: 0;
}

/* Timeline styles for education */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.timeline-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.timeline-date {
    font-size: 0.9rem;
    color: #6a6a6a;
    margin-bottom: 0.75rem;
    display: block;
    font-style: italic;
}

/* Experience entries */
.experience-entry {
    margin-bottom: 2.5rem;
    border-left: 2px solid #f0f0f0;
    padding-left: 1.5rem;
}
.experience-entry h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.experience-entry ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}
.experience-entry li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
}
.experience-entry li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #4a4a4a;
    font-weight: bold;
}

/* Projects grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.project-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}
.project-card:hover {
    border-color: #1a1a1a;
}
.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 500;
}
.project-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
}

/* Publications & Awards lists */
.list {
    list-style: none;
    padding-left: 0;
}
.list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}
.list li::before {
    content: '◦';
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-size: 1.2rem;
}

/* Resume download section */
.resume-download {
    text-align: center;
    margin: 2rem 0;
}
.resume-btn {
    display: inline-block;
    background-color: #1a1a1a;
    color: #ffffff !important;
    padding: 1rem 2rem;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: none !important;
}
.resume-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a !important;
    border-bottom: none !important;
}

/* Contact section */
.contact-icons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #f9f9f9;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: none !important;
}

.contact-icon:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-icon .contact-text {
    font-size: 0.95rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .contact-icons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .contact-icon {
        justify-content: flex-start;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #e8e8e8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 2rem 0;
    }
    
    section {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .about-text {
        text-align: left;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-list {
        grid-template-columns: 1fr;
    }
}