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

/* CSS Variables for Color Palette */
:root {
    --bg-cream: #F5F0E8;
    --text-dark: #212121;
    --accent-coral: #FF6B6B;
    --accent-teal: #4ECDC4;
    --border-color: #212121;
    --card-shadow: 0 4px 8px rgba(33, 33, 33, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

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

a:hover {
    color: var(--accent-teal);
}

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

.section {
    padding: 4rem 0;
}

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

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

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

.nav-links a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--accent-coral);
    color: white;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-cream);
        border-top: 2px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 2rem;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Cards */
.card {
    background-color: var(--bg-cream);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 33, 33, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
}

.btn-primary:hover {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-cream);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero h2 {
    color: var(--accent-coral);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Project Cards */
.project-card {
    background-color: var(--bg-cream);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(33, 33, 33, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-category {
    display: inline-block;
    background-color: var(--accent-teal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Filter Buttons */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
}

/* Skills Tags */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.skill-tag {
    background-color: var(--accent-teal);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Cards */
.experience-item {
    border-left: 4px solid var(--accent-coral);
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.job-title {
    font-size: 1.5rem;
    color: var(--accent-coral);
    margin-bottom: 0.5rem;
}

.company-info {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-dates {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.job-responsibilities ul {
    padding-left: 1.5rem;
}

.job-responsibilities li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.contact-item h3 {
    color: var(--accent-coral);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--bg-cream);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .experience-item {
        padding-left: 1rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    background-color: var(--bg-cream);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-coral);
    transform: scale(1.1);
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.lightbox-caption {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

/* Video lightbox responsive wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Removed: course lightbox styles */

/* Lightbox animations */
.lightbox.show {
    display: block;
    animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox.show .lightbox-content {
    animation: lightboxSlideIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        margin: 10% auto;
        max-width: 95%;
        max-height: 80%;
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    #lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-caption {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.hidden {
    display: none !important;
}
