/* --- styles.css (V2 - ENHANCED) --- */

/* 1. Global Styles & Variables */
:root {
    --primary-color: #0d2c4b; /* Deep Navy Blue */
    --secondary-color: #14a098; /* Vibrant Teal */
    --accent-color: #fca311; /* Bold Gold/Orange for CTAs */
    --light-gray: #f4f6f9;
    --dark-gray: #333333;
    --text-color: #4a4a4a;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.7;
    background-color: var(--white);
    color: var(--text-color);
}

/* 2. Header and Navigation */
header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
nav .logo {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav ul li { margin-left: 1.5rem; }
nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
nav ul li a:hover { color: var(--secondary-color); }
nav ul li a:hover::after { width: 100%; }

/* 3. Hero Section with Animation */
.hero {
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(13, 44, 75, 0.9), rgba(13, 44, 75, 0.8)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    z-index: -1;
    animation: zoom-in 20s ease-out infinite;
}

@keyframes zoom-in {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* 4. Buttons */
.cta-button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.4);
}
.cta-button:hover {
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.5);
    transform: translateY(-3px);
}

/* 5. General Section Styling */
main { padding: 0; }
section { padding: 5rem 2rem; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* 6. Enhanced Service Cards & Features */
.core-services { background-color: var(--light-gray); }
.services-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card, .feature {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}
.service-card:hover, .feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-top-color: var(--secondary-color);
}
.service-card h3, .feature h3 {
    margin-top: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
}
.feature .icon { font-size: 3rem; color: var(--secondary-color); }
.service-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}
.service-card a::after { content: " →"; }

/* 7. Footer (Redesigned) */
footer {
    padding: 4rem 2rem;
    background: var(--primary-color);
    color: var(--white);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}
.footer-column h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.footer-column p, .footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.footer-column a:hover { color: var(--white); }
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}


/* All other styles remain largely the same, but are included for completeness */
/* 8. Pages (Services, About, Contact) */
.page-header { background-color: var(--primary-color); color: var(--white); text-align: center; padding: 4rem 2rem; }
.page-header h1 { font-family: var(--font-heading); font-size: 2.8rem; }
.service-detail, .about-content-container { max-width: 900px; margin: 0 auto; padding: 2rem; }
.service-detail-card { background: var(--white); padding: 2.5rem; margin-bottom: 2rem; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.service-detail-card h2 { font-family: var(--font-heading); color: var(--primary-color); border-left: 4px solid var(--secondary-color); padding-left: 1rem; }
.service-detail-card ul { list-style-type: '✓ '; padding-left: 20px; }
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.about-image img { max-width: 100%; border-radius: 50%; }
.about-text h2 { color: var(--primary-color); margin-top: 0; }
.policy-content { max-width: 800px; margin: 0 auto; padding: 2rem; }
.policy-content h2, .policy-content h3 { font-family: var(--font-heading); color: var(--primary-color); }

/* 9. Contact Form */
.contact-form-section { max-width: 700px; margin: 0 auto; padding: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; border: 1px solid #ccc; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(20, 160, 152, 0.2); }
#form-status { text-align: center; margin-top: 1.5rem; padding: 1rem; border-radius: 8px; font-weight: 600; display: none; }

/* 10. Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 12. Blog List Page */
.blog-list-section {
    max-width: 900px;
    margin: 0 auto;
}
.post-summary-card {
    display: block;
    background: var(--white);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.post-summary-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}
.post-summary-card p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* 13. Single Post Page */
.post-content-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
}
.post-container {
    max-width: 800px;
    margin: 0 auto;
}
#post-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-color);
    line-height: 1.3;
}
#post-date {
    font-size: 1rem;
    color: #777;
    margin-bottom: 2rem;
}
#post-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 2.5rem;
}
#post-content p {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
#post-content a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav { flex-direction: column; }
    nav ul { margin-top: 1rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; margin-bottom: 2rem; }
}
