/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(229, 231, 235, 0.5);
}

/* Dark mode colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #fbbf24;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #374151;
    --border-color: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(17, 24, 39, 0.95);
    --navbar-border: rgba(75, 85, 99, 0.5);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 1001;
}

.theme-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 8rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3), var(--shadow-lg);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.tag {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Journey Section */
.journey {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    padding: 2rem 0;
    gap: 2rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
    align-items: stretch;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 0 0 300px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--bg-primary);
    z-index: 3;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-images {
    margin: 1rem 0;
}

/* Gallery styles */
.image-gallery {
    position: relative;
    margin: 1rem 0;
}

.gallery-container {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 325px; /* Show exactly 2 images: (160px + 5px gap) * 2 = 325px */
    margin: 0 auto;
}

/* Ensure hobby galleries also get the same styling */
.hobby-images .gallery-container {
    width: 325px;
    margin: 0 auto;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    width: 160px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Empty gallery styles */
.empty-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
}

.empty-gallery-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* Gallery navigation removed - using auto-scroll instead */

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.journey-details {
    margin-top: auto;
    padding-top: 1rem;
}

.journey-details .expanded-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
}

.project-stats {
    text-align: right;
}

.stat {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tech span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Contact Section */
.contact {
    padding: 5rem 0 8rem 0;
    background: var(--bg-primary);
}

.contact-content {
    margin-bottom: 5rem;
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hobbies {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
    justify-content: center;
}

.hobbies::-webkit-scrollbar {
    height: 8px;
}

.hobbies::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.hobbies::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.hobby {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 400px;
    min-width: 400px;
}

.hobby:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.hobby-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hobby h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.hobby p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.hobby-images {
    margin: 1rem 0;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Hero section social links */
.hero .social-links {
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.social-link i {
    font-size: 1.25rem;
}

.footer {
    text-align: center;
    padding: 3rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin-top: 2rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 6rem 0 2rem 0;
    }
    
    .timeline {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .timeline-item {
        flex: 0 0 250px;
    }
    
    .timeline-content {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .timeline-content::before {
        top: -1.5rem;
        width: 16px;
        height: 16px;
    }
    
    .gallery-container {
        width: 300px; /* Adjust for tablet: (150px + 5px gap) * 2 = 305px */
    }
    
    .hobby-images .gallery-container {
        width: 300px;
    }
    
    .gallery-image {
        width: 150px;
        height: 168px;
    }
    
    .contact-content {
        margin-bottom: 3rem;
    }
    
    .social-links {
        margin-top: 3rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hobbies {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .hobby {
        flex: 0 0 350px;
        min-width: 350px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 5rem 0 2rem 0;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .timeline-item {
        flex: 0 0 200px;
    }
    
    .timeline-content {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .timeline-content::before {
        top: -1rem;
        width: 14px;
        height: 14px;
    }
    
    .gallery-container {
        width: 280px; /* Adjust for smaller screens: (140px + 5px gap) * 2 = 290px */
    }
    
    .hobby-images .gallery-container {
        width: 280px;
    }
    
    .gallery-image {
        width: 140px;
        height: 157px;
    }
    
    .hobby {
        flex: 0 0 320px;
        min-width: 320px;
        padding: 1rem;
    }
} 