/* ======================  styles.css  ====================== */
/* Reset + Base Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --primary: #0D9488; --primary-dark: #0F766E; --accent: #99F6E4; --light: #F0FDFB; --dark: #134E4A; 
}

/* ======================  Layout ====================== */
.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

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

nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s;
}

nav .nav-links a:hover::after {
    width: 100%;
}

/* Main content */
main {
    flex: 1;
    padding: 4rem 0;
    background: white;
}

/* Hero section (Home page) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Flexbox Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cards / Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--dark);
    color: #ddd;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
}