/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif; /* Common font stack */
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
#banner2 {
    background-image: url('image/banner2.jpg');/* --- RESPONSIVE CHANGE --- Background directly on section */
    background-size: cover;
    background-position: center center;
    color: #333;
    text-align: left; /* --- RESPONSIVE CHANGE --- Align content left */
    max-height: 150vh; /* --- RESPONSIVE CHANGE --- Adjusted height */
    display: flex;
    flex-direction: column; /* Stack content and stats */
    justify-content: center; /* Center vertically */
    align-items: flex-start; /* Align items to the start (left) */
    padding: 300px 0; /* Add padding */
    position: relative; /* Needed for potential overlay */
    gap: 40px; /* --- RESPONSIVE CHANGE --- Reduced default gap */
    max-width: 100%; /* --- RESPONSIVE CHANGE --- Allow banner to be full width */
    margin: 0 auto 100px auto;/* Remove top/bottom margin, center if needed */
}

/* #banner2 {
    background-size: cover;
    background-position: center center;
    color: #333; 
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    max-width: 1200px;
    margin: 100px auto 40px auto;
    gap: 527px;
} */

/* #banner2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 900px;
    background-image: url('image/banner2.jpg');
    z-index: 1;
} */


/* Section Navigation */
.hero-stats {
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-evenly; 
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1); 
    z-index: 2; 
    gap: 24px;
    width: calc(100% - 30px); 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative;
    bottom: -360px;
    backdrop-filter: blur(6px);
    border: 1px solid #ffffff;
}

/* .hero-stats {
    border-radius: 16px;
    display: flex;
    padding: 24px;
    background: #FFFFFF;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 180px;
    justify-content: space-evenly;
} */

.section-nav {
    text-align: center;
    /* background: rgba(255, 255, 255, 0.1);  */
    padding: 15px 30px;
    border-radius: 8px;
    min-width: 150px;
}

.nav-line {
    width: 1px;
    height: 40px;
    background-color: #c4c4c4;
}

.section-nav p:hover {
    color:#0055F0;
    cursor: pointer;
}

.section-nav p:focus {
    color:#0055F0;
    /* cursor: pointer; */
}

.section-nav p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Main Content & Sections */
.site-main {
    padding-top: 0; /* Adjust since section-nav overlaps */
}

.portfolio-section {
    margin-bottom: 60px;
}

.pc,.app,.tv,.design {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 0px 24px 0px;
    gap: 16px;
}

.title-icon {
    width: 80px;
    height: 80px;
}

.section-title::after { /* Underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0055F0;
    border-radius: 2px;
}


/* Projects Grid */
.projects-grid {
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); Responsive grid */
    gap: 24px 24px;
    flex-wrap: wrap;
}

.project-card {
    width: 588px;
    height: 522px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 540px;
    height: 354px;
    /* Consider setting a fixed height and object-fit: cover if images vary a lot */
    /* height: 250px; object-fit: cover; */
    /* border-bottom: 1px solid #eee; */
    margin: 24px;
    border-radius: 8px;
}

.project-info {
    padding: 0px 24px;
    position: relative; /* For the arrow */
}

.project-tags {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.project-tags p {
    display: inline-block;
    color: #999999;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px; /* Pill shape */
    border: 1px solid #999999;
}

.project-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.title-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-arrow img {
    width: 32px;
    height: 32px;
    margin: 0;
}

/* .project-info a {
    color: #0055F0;
    display: inline-block; 
    width: 32px;
    height: 32px;
    background-image: url('image/arrow-right-line-focus.svg');
} */
/* .project-card:hover .arrow {
     transform: translateX(5px);
} */

/* Footer */
.site-footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .section-nav ul {
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
    }
     .section-nav li {
        margin: 5px 15px;
    }
    .section-nav li:not(:last-child)::after{
        display: none; /* Hide dividers on wrap */
    }
    .header-container {
        flex-wrap: wrap; /* Allow header items to wrap */
    }
    .main-nav, .contact-info {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .main-nav ul {
        justify-content: center;
    }
    .contact-info span {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
     .hero {
        height: 300px;
    }
    .section-nav {
        padding: 10px 0;
        top: -30px; /* Adjust overlap */
    }
    .section-nav a {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
     .projects-grid {
        grid-template-columns: 1fr; /* Stack to single column */
        gap: 25px;
    }
     .project-card {
         max-width: 450px; /* Optional: limit width in single column */
         margin-left: auto;
         margin-right: auto;
     }
     .contact-info {
        font-size: 0.8rem;
    }
    .main-nav a {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 25px;
    }
     .section-nav li {
        margin: 5px 10px;
    }
     .section-nav a {
        font-size: 0.9rem;
    }
    .contact-info span {
        display: block; /* Stack contact info */
        margin: 5px auto;
    }
    .project-info {
        padding: 15px;
    }
     .project-info h3 {
        font-size: 1.1rem;
    }
}


