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

body, html { 
    height: 100%; 
    font-family: "Merriweather", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: #333; 
    line-height: 1.6; 
    background-color: #fdfdfd;
}

/* =========================================================================
   NAVIGATION HEADER (Shared across all pages)
   ========================================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
    background: #111;
}

.logo a { 
    color: #fff; 
    font-size: 1.8rem; 
    font-weight: bold; 
    text-decoration: none; 
    letter-spacing: 2px; 
}

/* Hamburger Menu Icon */
.menu-toggle { 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 30px; 
    height: 21px; 
    cursor: pointer; 
}

.menu-toggle span { 
    height: 3px; 
    width: 100%; 
    background-color: #fff; 
    transition: 0.3s; 
}

/* Dropdown Menu Links */
.nav-menu { 
    position: absolute; 
    top: 70px; 
    right: 40px; 
    background: rgba(255,255,255,0.98); 
    border-radius: 5px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
    display: none; 
    flex-direction: column; 
    padding: 10px 0; 
    min-width: 150px; 
}

.nav-menu a { 
    padding: 10px 20px; 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    transition: 0.2s; 
}

.nav-menu a:hover { 
    background-color: #f0f0f0; 
}

.nav-menu.active { 
    display: flex; 
}

/* =========================================================================
   STANDARD FOOTER (Shared across all pages)
   ========================================================================= */
footer { 
    background: #111; 
    color: #bbb; 
    text-align: center; 
    padding: 20px; 
    font-size: 0.9rem; 
    margin-top: auto;
}

footer a { 
    color: #fff; 
    text-decoration: none; 
    margin: 0 10px; 
}

footer a:hover { 
    text-decoration: underline; 
}

/* =========================================================================
   PAGE 1: HOME PAGE SPECIFIC STYLES
   ========================================================================= */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero-bg.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Transparent override for homepage header only */
.hero-bg header {
    background: transparent;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    flex-grow: 1;
}

.content-box {
    background: #ffffff;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-align: center;
}

.content-box h1 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: #111; 
    font-weight: 400; 
}

.content-box p { 
    color: #666; 
    margin-bottom: 30px; 
}

.highlights { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.highlight-img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-radius: 4px; 
    transition: transform 0.3s; 
}

.highlight-img:hover { 
    transform: scale(1.02); 
}

/* =========================================================================
   PAGE 2: PORTFOLIO CAROUSEL SPECIFIC STYLES
   ========================================================================= */
.portfolio-body {
    background-color: #111; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

.portfolio-body header, .portfolio-body footer {
    background: #000;
}

.portfolio-main { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 20px 0; 
}

.portfolio-main h1 { 
    text-align: center; 
    margin-bottom: 20px; 
    font-weight: 300; 
    letter-spacing: 1px; 
}

.carousel-container { 
    position: relative; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
}
.carousel-track::-webkit-scrollbar { display: none; } 

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.carousel-item img { 
    max-width: 100%; 
    max-height: 65vh; 
    object-fit: contain; 
    border: 4px solid #222; 
    border-radius: 4px; 
}

.caption { 
    margin-top: 15px; 
    color: #aaa; 
    font-style: italic; 
    font-size: 0.95rem; 
    text-align: center; 
}

.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255,255,255,0.2); 
    color: white; 
    border: none; 
    font-size: 2rem; 
    padding: 10px 15px; 
    cursor: pointer; 
    border-radius: 5px; 
    transition: 0.3s; 
    z-index: 10; 
}

.nav-btn:hover { 
    background: rgba(255,255,255,0.5); 
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* =========================================================================
   PAGE 3 & 4: ABOUT, CONTACT, & THANK YOU SPECIFIC STYLES
   ========================================================================= */
.container { 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 20px; 
    flex-grow: 1; 
}

.about-section { 
    display: flex; 
    gap: 40px; 
    margin-bottom: 50px; 
    align-items: center; 
}

.about-img { 
    width: 40%; 
    max-width: 300px; 
    border-radius: 50%; 
    object-fit: cover; 
    aspect-ratio: 1/1; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.about-text { width: 60%; }
.about-text h1 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 400; }

.contact-section { 
    background: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    border: 1px solid #eee; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.contact-section h2 { margin-bottom: 20px; font-weight: 400; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }

.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem; 
}

.form-group input:focus, .form-group textarea:focus { 
    border-color: #111; 
    outline: none; 
}

.hidden-field { display: none !important; }

button.submit-btn { 
    background: #111; 
    color: #fff; 
    border: none; 
    padding: 12px 25px; 
    font-size: 1rem; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: 0.2s; 
}
button.submit-btn:hover { background: #444; }

/* Thank You Screen Custom Card styling */
.main-message { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
}

.card { 
    background: white; 
    padding: 50px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    max-width: 500px; 
}

.card h1 { color: #27ae60; margin-bottom: 15px; }
.card p { color: #555; margin-bottom: 25px; }

.back-btn { 
    background: #111; 
    color: white; 
    text-decoration: none; 
    padding: 12px 25px; 
    border-radius: 4px; 
    font-weight: 600; 
}

/* =========================================================================
   GLOBAL MEDIA QUERIES (Mobile responsiveness)
   ========================================================================= */
@media (max-width: 768px) {
    header { padding: 20px; }
    .nav-menu { right: 20px; }
    
    /* Home Page */
    .content-box { padding: 25px 15px; }
    .content-box h1 { font-size: 1.8rem; }
    .highlights { grid-template-columns: 1fr; }
    
    /* Portfolio Page */
    .carousel-container { padding: 0 10px; }
    .nav-btn { display: none; } /* Rely on touch-swipe swipe natively */
    
    /* About Page */
    .about-section { flex-direction: column; text-align: center; gap: 20px; }
    .about-img { width: 60%; }
    .about-text { width: 100%; }
}