/* --- 1. General Setup & Vibrant Color Variables --- */
:root {
    --primary-color: #0052D4; /* Vibrant Blue */
    --secondary-color: #4364f7; /* Lighter Gradient Blue */
    --accent-color: #FF4E50; /* Vibrant Red/Coral */
    --dark-color: #2c3e50; /* Dark Slate Blue */
    --light-color: hsla(149, 36%, 70%, 0.952); /* Lighter, softer Gray */
    --text-color: #34495e; /* Dark Text */
    --white-color: #4af009;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.7;
    background-color: var(--light-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: var(--dark-color);
    font-weight: 700;
}

/* --- 2. Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content {
    animation: fadeIn 0.8s ease-in-out;
}

/* --- 3. Header & Navigation (No Changes) --- */
.navbar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .logo { color: var(--white-color); text-decoration: none; font-size: 1.8rem; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-links li { margin-left: 25px; }
.nav-links a { color: var(--white-color); text-decoration: none; font-size: 1.1rem; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.nav-links a:hover { border-bottom: 2px solid var(--accent-color); text-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }

/* --- 4. Hamburger Menu (No Changes) --- */
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--white-color); transition: all 0.3s ease-in-out; }

/* --- 5. Home Page Hero Grid --- */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 35vh);
    gap: 1rem;
    padding: 1rem;
}

.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-item:hover img {
    transform: scale(1.05);
}

.hero-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white-color);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-text-overlay h1 { color: var(--white-color); margin-bottom: 0.5rem; font-size: 2.5rem; }

/* --- 6. Welcome Section on Home Page --- */
.welcome-section {
    text-align: center;
    padding: 2rem 0;
}
.welcome-section h2 { font-size: 2.2rem; }
.welcome-section p { max-width: 800px; margin: 1rem auto; font-size: 1.1rem; }

/* --- 7. Responsive Card Grid System (No Changes) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.content-card {
    background-color: var(--white-color); border-radius: 12px; box-shadow: 0 8px 16px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; display: flex; flex-direction: column;
}
.content-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.card-image { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 1.5rem; flex-grow: 1; }

/* --- 8. Seamless Contact Page --- */
.contact-container {
    display: flex;
    background-color: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    margin-top: 2rem;
    min-height: 500px; /* Ensures container has height */
}

.form-column {
    flex-basis: 55%;
    padding: 3rem;
    background: linear-gradient(to right, var(--white-color) 70%, rgba(255,255,255,0.8));
    z-index: 10;
}

.image-column {
    flex-basis: 45%;
    background-image: url('../images/14.jpg');
    background-color: #e9ecef; /* Fallback color if image doesn't load */
    background-size: cover;
    background-position: center;
}

.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: bold; }
.contact-form input, .contact-form textarea {
    width: 100%; box-sizing: border-box; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; background-color: #f8f9fa; transition: all 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-color); background-color: var(--white-color); box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.2);
}

.btn { /* Button styles are mostly the same */
    display: inline-block; background-color: var(--accent-color); color: var(--white-color); padding: 12px 25px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 1.1rem; font-weight: bold; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.btn:hover { background-color: #d94244; transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }

/* --- 9. Footer --- */
footer { text-align: center; padding: 2rem; background-color: var(--dark-color); color: var(--light-color); margin-top: 3rem; }

/* --- 10. Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 30vh); }
    .hero-item-large { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 768px) {
    /* Hamburger Menu Logic */
    .hamburger-menu { display: block; }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-links { position: fixed; left: -100%; top: 70px; background: var(--dark-color); flex-direction: column; width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1rem 0; }
    
    .card-grid { grid-template-columns: 1fr; }

    /* Stack contact form and HIDE image on mobile */
    .contact-container { flex-direction: column; }
    .image-column { display: none; }
    .form-column { background: none; padding: 2rem; }

    .hero-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 30vh); }
    .hero-item-large { grid-column: span 1; grid-row: span 2; }
}