/* Import Lato from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-font:  'Lato', sans-serif;
    --text-color: #2c3e50;
    --accent-color: #3498db;
    --background: #ffffff;
    --secondary-bg: #f8f9fa;
    --border-color: #e0e0e0;
}

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

body {
    font-family: var(--primary-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    height: 350px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.tag:hover {
    transform: scale(1.05);
}

/* Tag Filters */
.tag-filters {
    margin: 2rem 0;
    text-align: center;
}

.tag-filter-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: white;
    color: var(--text-color);
    margin: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

/* Project Detail */
.project-detail-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
}

.project-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-image {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Page */
.about-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 1rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
}

.social-links {
    text-align: center;
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .project-card {
        height: 280px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-detail-hero {
        height: 40vh;
    }

    .about-container {
        padding: 1rem;
        margin: 2rem auto;
    }
}

/* Tablet and up */
@media (min-width: 769px) {
    .about-container {
        padding: 2rem 3rem;
    }
}

/* Desktop and up */
@media (min-width: 992px) {
    .about-container {
        padding: 2rem 4rem;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .about-container {
        padding: 2rem 5rem;
    }
}
