/* ============================================
   MINIMALIST PORTFOLIO WEBSITE
   Web & App Developer
   ============================================ */

/* ---- ANIMATIONS ---- */
/* Only hide elements that will be animated in */
.section-title,
.project-card,
.about-text,
.experience-item,
.contact-text,
.cta-button,
.contact-links,
.tech-tag,
.skill-tag {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.slide-in {
    animation: slideUp 0.6s ease-out forwards !important;
}

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

/* Stagger effect for multiple elements */
.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}

.tech-tag:nth-child(2) {
    animation-delay: 0.1s;
}

.tech-tag:nth-child(3) {
    animation-delay: 0.2s;
}

.tech-tag:nth-child(4) {
    animation-delay: 0.3s;
}

/* ---- RESET & BASE STYLES ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-weight: 400;
    font-size: 16px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2, h3 {
    font-weight: 600;
}

a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

p {
    margin-bottom: 1em;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
}

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

.logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 3rem;
    margin: 0 auto;
}

.nav a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-link {
    font-size: 12px;
    white-space: nowrap;
    opacity: 1;
}

.contact-link a {
    letter-spacing: 0.3px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0.75rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo {
        flex: 1 0 auto;
        font-size: 12px;
    }

    .nav {
        gap: 1rem;
        order: 3;
        flex: 1 0 100%;
    }

    .nav a {
        font-size: 11px;
    }

    .contact-link {
        order: 2;
        flex: 0 0 auto;
        font-size: 11px;
    }

    .contact-link a {
        font-size: 11px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-top: 120px;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    color: #000000;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

/* ============================================
   SECTION STYLING
   ============================================ */
section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ---- ABOUT SECTION ---- */
.about {
    background-color: #ffffff;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ---- EXPERIENCE SECTION ---- */
.experience {
    background-color: #ffffff;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-item {
    border-left: 2px solid #000000;
    padding-left: 2rem;
    transition: border-color 0.3s ease;
}

.experience-item:hover {
    border-color: #666666;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.job-date {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.company-name {
    font-size: 0.95rem;
    color: #000000;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.job-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #000000;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.7rem;
    border: 1px solid #cccccc;
    color: #666666;
    transition: all 0.3s ease;
}

.experience-item:hover .skill-tag {
    border-color: #000000;
    color: #000000;
}

/* Tablet and Mobile */
@media (max-width: 768px) {
    .experience-item {
        padding-left: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-date {
        font-size: 0.8rem;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .job-description {
        font-size: 0.9rem;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ---- WORK SECTION ---- */
.work {
    background-color: #ffffff;
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.work .section-title {
    margin-bottom: 2rem;
}

/* Swiper Container */
.projects-swiper {
    width: 100%;
    padding-bottom: 60px;
}

.swiper-slide {
    height: auto;
}

.project-card {
    border: 1px solid #f0f0f0;
    padding: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #000000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Project Image */
.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #f5f5f5;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(232, 232, 232, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.project-overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: #000000;
    letter-spacing: -0.5px;
    padding: 2rem;
    line-height: 1.3;
}

/* Project Content */
.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    padding: 2rem 2rem 0 2rem;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #000000;
    padding: 0 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 2rem 2rem 2rem;
    margin-top: auto;
}

.tech-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    border: 1px solid #000000;
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background-color: #000000;
    color: #ffffff;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid #000000;
    border-radius: 0;
    top: auto;
    bottom: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    color: #000000;
    font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #000000;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: #ffffff;
}

.swiper-button-next {
    right: 40px;
}

.swiper-button-prev {
    right: 100px;
    left: auto;
}

/* Swiper Pagination */
.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #cccccc;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #000000;
    width: 24px;
    border-radius: 4px;
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .project-description {
        font-size: 0.9rem;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .project-image {
        aspect-ratio: 16/9;
    }

    .project-title {
        font-size: 1rem;
        padding: 1.5rem 1.5rem 0 1.5rem;
    }

    .project-description {
        font-size: 0.85rem;
        padding: 0 1.5rem;
    }

    .project-tech {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .projects-swiper {
        padding-bottom: 50px;
    }
}

/* ---- CONTACT SECTION ---- */
.contact {
    background-color: #ffffff;
}

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

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: fit-content;
    margin-bottom: 2rem;
    will-change: transform, background-color, color;
}

.cta-button:hover {
    background-color: #ffffff;
    border: 1px solid #000000;
    color: #000000;
}

.contact-links {
    display: flex;
    gap: 2rem;
}

.contact-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .contact-text {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
    }

    .contact-links {
        gap: 1.5rem;
    }

    .contact-links a {
        font-size: 0.9rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid #f0f0f0;
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
    letter-spacing: 0.3px;
}

.footer p {
    margin: 0;
}

/* ============================================
   IMAGE MODAL
   ============================================ */
/* GLightbox customization */
.glightbox-container {
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

.glightbox-container .gslide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glightbox-container .gslide-image img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Scrollable for large images */
.gslide-inner-container {
    overflow: auto;
    max-height: 95vh;
}

/* Close button styling */
.glightbox-container .gclose {
    color: #ffffff;
    font-size: 36px;
    background: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.glightbox-container .gclose:hover {
    opacity: 0.6;
}

/* Navigation arrows */
.glightbox-container .gnext,
.glightbox-container .gprev {
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 10px;
}

.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
    opacity: 1;
}

/* Title styling */
.glightbox-container .gslide-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
}

/* ============================================
   UTILITY & REFINEMENTS
   ============================================ */

/* Vertical spacing adjustments */
section {
    scroll-margin-top: 120px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-button {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Ensure smooth interactions */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
