/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}
.logo {
    height: 60px;
    object-fit: contain;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
nav ul li a:hover {
    color: #f0b400;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('images/home/hero/hero_bg_1.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* dark overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    padding: 0.8rem 2rem;
    background-color: #ffcc00;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.hero-content .btn:hover {
    background-color: #e6b800;
}

/* Cards Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px; /* keeps cards from stretching too wide on big screens */
    margin: 0 auto; /* centers grid */
}

.card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden; /* ensures rounded corners cut off overflow images */
}

.card img {
    width: 100%; /* keeps image within card */
    height: 180px; /* sets a consistent height */
    object-fit: cover; /* crops image nicely without distortion */
    border-radius: 8px 8px 0 0; /* matches card corners */
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
/* Fade-in animation for cards */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}



/* Contact Section */
.contact-section {
    padding: 60px 0;
}
.contact-container {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.contact-container h2 {
    text-align: center;
    margin-bottom: 20px;
}
.contact-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.contact-container button {
    display: inline-block;
    background: #f0b400;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.contact-container button:hover {
    background: #d49b00;
}
/* Contact form messages */
#form-messages {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(-10px);
}

/* Show message */
#form-messages.show {
    opacity: 1;
    transform: translateY(0);
}

/* Success style - made more specific */
#form-messages.success {
    color: #28a745 !important; /* green */
}

/* Error style - made more specific */
#form-messages.error {
    color: #dc3545 !important; /* red */
}
/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}