:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #ff6b35;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.nav-logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #404040 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--accent-color);
    animation: slideUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease 0.4s both;
}

.hero-years {
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 1px;
    animation: fadeIn 1s ease 0.6s both;
}

.cta-button {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 1px;
    animation: slideUp 0.8s ease 0.8s both;
}

.cta-button:hover {
    background-color: #ff5722;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Filter Section */
.filter-section {
    padding: 3rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.filter-container {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-right: 1rem;
    color: var(--text-dark);
}

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

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

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

/* Portfolio Section */
.portfolio {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

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

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.project-image.placeholder {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    font-size: 2rem;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-image-emoji {
    font-size: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-year {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-details {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.view-details:hover {
    color: #ff5722;
}

/* About Section */
.about {
    background-color: var(--light-bg);
    padding: 4rem 2rem;
}

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

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    margin-bottom: 3rem;
}

.about-content > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

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

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.6;
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.close {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-meta-item {
    display: flex;
    flex-direction: column;
}

.modal-meta-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-list {
    margin-bottom: 1.5rem;
}

.modal-list-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-list ul {
    list-style: none;
    padding-left: 1rem;
}

.modal-list li {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.modal-list li:before {
    content: "• ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Modal Gallery */
.modal-gallery {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.gallery-main {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.gallery-main img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: contain;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--accent-color);
}

.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Image Viewer */
.image-viewer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.image-viewer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: white;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
}

.image-viewer-close:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.portfolio-credit {
    opacity: 0.7;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-item {
        padding: 1rem 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        padding: 2rem 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .portfolio h2 {
        font-size: 2rem;
    }

    .about h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
    }

    .modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: none;
    }
}
