/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0A0F1C;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
.label {
    color: #22D3EE;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: #22D3EE;
    color: #0A0F1C;
}

.btn-primary:hover {
    background-color: #06B6D4;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #22D3EE;
    border: 2px solid #22D3EE;
}

.btn-secondary:hover {
    background-color: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    background-color: #0A0F1C;
    padding: 120px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
}

.hero-content .label {
    font-size: 16px;
}

.headline {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    color: #FFFFFF;
}

.subline {
    font-size: 24px;
    line-height: 1.5;
    color: #94A3B8;
    margin-bottom: 48px;
}

.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Projects Section ===== */
.projects-section {
    background-color: #0F172A;
    padding: 80px;
}

.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #94A3B8;
    max-width: 800px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== Project Cards ===== */
.project-card {
    background-color: #1E293B;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-image-container {
    flex-shrink: 0;
}

.project-image {
    width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.thumbnail {
    width: 118px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: #22D3EE;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.project-year {
    color: #22D3EE;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.project-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.project-company {
    font-size: 16px;
    color: #64748B;
    font-weight: 500;
    font-style: italic;
}

.project-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #94A3B8;
}

.tech-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: #0F172A;
    color: #64748B;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== View All Button ===== */
.view-all-container {
    text-align: center;
    margin-top: 48px;
}

/* ===== About Section ===== */
.about-section {
    background-color: #0A0F1C;
    padding: 100px 80px;
}

.about-grid {
    display: flex;
    gap: 80px;
}

.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.about-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #94A3B8;
}

.about-right {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
}

.contact-value {
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value.link {
    color: #22D3EE;
}

.contact-value:hover {
    color: #22D3EE;
}

/* ===== Footer ===== */
.footer {
    background-color: #0F172A;
    padding: 40px 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 14px;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 15, 28, 0.95);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

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

.modal-content {
    background-color: #0F172A;
    margin: 40px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 1px solid #1E293B;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #22D3EE;
}

.modal-body {
    padding: 40px;
}

.all-projects-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.year-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.year-heading {
    font-size: 24px;
    font-weight: 700;
    color: #22D3EE;
    padding-bottom: 12px;
    border-bottom: 2px solid #1E293B;
}

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

.compact-card {
    background-color: #1E293B;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.compact-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.compact-content {
    padding: 20px;
}

.compact-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.compact-company {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 8px;
    font-style: italic;
}

.compact-tech {
    font-size: 13px;
    color: #94A3B8;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #FFFFFF;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #22D3EE;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 18px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 8px;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-section {
        padding: 80px 40px;
    }

    .headline {
        font-size: 56px;
    }

    .subline {
        font-size: 20px;
    }

    .projects-section {
        padding: 60px 40px;
    }

    .project-card {
        flex-direction: column !important;
        padding: 30px;
    }

    .project-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .thumbnail-gallery {
        justify-content: center;
    }

    .about-section {
        padding: 80px 40px;
    }

    .about-grid {
        flex-direction: column;
        gap: 60px;
    }

    .about-right {
        width: 100%;
    }

    .footer {
        padding: 30px 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        min-height: auto;
    }

    .headline {
        font-size: 40px;
    }

    .subline {
        font-size: 18px;
    }

    .cta-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .projects-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .project-card {
        padding: 24px;
        gap: 24px;
    }

    .project-image {
        height: 250px;
    }

    .thumbnail {
        width: calc(25% - 6px);
        height: 60px;
    }

    .project-title {
        font-size: 24px;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-title {
        font-size: 32px;
    }

    .about-desc {
        font-size: 16px;
    }

    .footer {
        padding: 24px 20px;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-header {
        padding: 24px 20px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-body {
        padding: 20px;
    }

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

    .lightbox-close {
        right: 20px;
        font-size: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .headline {
        font-size: 32px;
    }

    .subline {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .project-title {
        font-size: 20px;
    }

    .about-title {
        font-size: 26px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}
