@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    /* Classical Palette inspired by Apple */
    --primary-dark: #1C1C1E; /* Very dark charcoal grey for main backgrounds */
    --secondary-dark: #2C2C2E; /* Slightly lighter dark grey for cards/sections */
    --tertiary-dark: #3A3A3C; /* Even lighter dark grey for input fields, etc. */
    --accent-primary: #007AFF; /* Classic Apple Blue for highlights */
    --accent-secondary: #8E8E93; /* Muted grey for subtle borders/secondary text */
    --text-light: #F2F2F7; /* Off-white for primary text */
    --text-muted: #AEAEC0; /* Muted grey for secondary text */
    --white: #FFFFFF;
    --black: #000000;
    --border-color: #444446; /* Subtle, slightly lighter border */

    /* Subtler Shadows */
    --shadow-depth-1: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-depth-2: 0 5px 15px rgba(0, 0, 0, 0.5);
    --text-shadow: none; /* No strong text glow for classical look */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--primary-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: var(--white);
    /* For links, a subtle change is usually enough */
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: var(--text-shadow); /* Now set to none */
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Section Backgrounds */
.dark-bg {
    background-color: var(--primary-dark);
}

.light-bg {
    background-color: var(--secondary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-primary); /* Solid color for buttons */
    color: var(--white); /* White text on blue button */
    padding: 12px 28px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease; /* Simpler, elegant transition */
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-depth-1);
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--accent-primary); /* Keep color, but increase brightness */
    filter: brightness(1.15); /* Subtle brightness increase on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: var(--shadow-depth-2); /* Slightly deeper shadow */
}

.btn-primary {
    /* Uses default .btn styles */
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary); /* Thinner border */
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-depth-1); /* Add shadow on hover */
    filter: brightness(1.15);
}

.btn-tertiary {
    background-color: var(--tertiary-dark);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    box-shadow: var(--shadow-depth-1);
    border: 1px solid var(--border-color); /* Add border for definition */
}

.btn-tertiary:hover {
    background-color: var(--accent-secondary); /* Hover to a muted grey */
    color: var(--white);
    box-shadow: var(--shadow-depth-2);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-header {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: var(--accent-primary);
    color: var(--white);
}
.btn-header:hover {
    filter: brightness(1.15);
    box-shadow: var(--shadow-depth-1);
    transform: translateY(-1px);
}

/* Card Hover Effect - More subtle */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-depth-1);
}

.card-hover-effect:hover {
    transform: translateY(-5px); /* Moderate lift */
    box-shadow: var(--shadow-depth-2); /* Deeper, but not glowing shadow */
    background-color: var(--tertiary-dark); /* Slightly lighter background on hover */
}


/* Header */
header {
    background-color: var(--secondary-dark);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color); /* Subtle border */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-depth-1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 2.5em;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
    text-shadow: none; /* No text shadow for classical look */
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: var(--text-light);
    font-weight: 500; /* Less bold than fancy version */
    font-size: 1.1em;
    position: relative;
}

header nav ul li a.active,
header nav ul li a:hover:not(.btn) {
    color: var(--accent-primary); /* Accent blue for active/hover */
}

header nav ul li a.active::after,
header nav ul li a:hover:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px; /* Thinner underline */
    background-color: var(--accent-primary);
    border-radius: 1px;
    transition: width 0.3s ease;
}

header nav ul li a:hover:not(.btn)::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(28, 28, 30, 0.8), rgba(28, 28, 30, 0.8)), url('hero_background.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 180px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    /* Remove previous fancy background overlay effect */
    &::before {
        content: none;
    }
}

.page-hero { /* For internal pages */
    background: linear-gradient(rgba(28, 28, 30, 0.9), rgba(28, 28, 30, 0.9)), url('page_hero_background.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 120px 0 90px;
    color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-depth-1);
}

.hero-content h1 {
    font-size: 3.8em; /* Slightly smaller than previous */
    margin-bottom: 25px;
    letter-spacing: 1px; /* Less aggressive letter-spacing */
    line-height: 1.1;
    text-shadow: none; /* No strong text shadow for classical look */
}

.hero-content p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.hero-buttons .btn {
    margin: 0 15px;
}

/* Shared Section Styling */
.mission-vision, .usp-section, .featured-services, .content-section, .team-section, .service-detail, .contact-section, .blog-content {
    padding: 100px 0;
    text-align: center;
}

h2 {
    font-size: 2.8em; /* Slightly smaller */
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.8px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* Thinner underline */
    height: 3px; /* Thinner underline */
    background-color: var(--accent-primary); /* Solid accent color */
    border-radius: 1px;
}

/* Card Grids */
.mv-grid, .usp-grid, .service-grid, .blog-posts-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Slightly smaller gap */
    margin-top: 40px;
}

.mv-card, .usp-card, .service-card, .blog-post-card, .team-member {
    background-color: var(--secondary-dark);
    padding: 35px; /* Slightly less padding */
    border-radius: 10px; /* Slightly less rounded corners */
    border: 1px solid var(--border-color);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.mv-card h3, .usp-card h3, .service-card h3, .blog-post-card h3 {
    color: var(--accent-primary); /* Primary accent for headings */
    font-size: 1.6em; /* Slightly smaller */
    margin-bottom: 15px;
    text-shadow: none;
    letter-spacing: 0.3px;
}

.mv-card p, .usp-card p, .service-card p, .blog-post-card p {
    color: var(--text-light);
    font-size: 1em; /* Slightly smaller body text */
    flex-grow: 1;
}

.service-card .btn {
    margin-top: 25px; /* Slightly less margin */
    align-self: flex-start;
}

/* About Us Specifics */
.content-section {
    text-align: left;
}

.content-section p {
    font-size: 1.1em; /* Slightly smaller */
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.team-section {
    padding-top: 80px;
}

.team-member {
    align-items: center;
    background-color: var(--primary-dark);
    padding: 40px; /* Less padding */
}

.team-photo {
    width: 160px; /* Slightly smaller */
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid var(--accent-primary); /* Thinner border */
    box-shadow: var(--shadow-depth-1); /* More subdued shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.03); /* Less pronounced zoom */
    box-shadow: var(--shadow-depth-2); /* Slightly deeper shadow on hover */
}

.team-member h3 {
    font-size: 2.2em; /* Slightly smaller */
    margin-bottom: 10px;
}

.team-member .title {
    color: var(--accent-primary);
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.team-member p {
    font-size: 1em;
    max-width: 850px;
    text-align: justify;
    color: var(--text-muted);
}

/* Services Page Details */
.service-detail {
    text-align: left;
    padding: 70px 0; /* Less padding */
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail h2 {
    font-size: 2.5em; /* Slightly smaller */
    margin-bottom: 30px;
    text-align: center;
}

.service-detail h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.service-detail h3 {
    color: var(--accent-primary);
    margin-top: 30px;
    margin-bottom: 18px;
    font-size: 1.8em; /* Slightly smaller */
    text-shadow: none;
}

.service-detail p, .service-detail ul {
    font-size: 1.1em; /* Slightly smaller */
    color: var(--text-light);
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.service-detail ul {
    list-style: disc;
    padding-left: 40px;
    color: var(--text-muted);
}

.service-detail ul li {
    margin-bottom: 10px;
}

/* Blog Page */
.blog-content {
    padding-top: 70px;
}

.search-bar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px; /* Less margin */
    gap: 15px; /* Less gap */
}

#blogSearch {
    padding: 12px 18px; /* Slightly less padding */
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    border-radius: 6px; /* Less rounded */
    background-color: var(--tertiary-dark);
    color: var(--text-light);
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); /* Subtler inset shadow */
    transition: all 0.3s ease;
}

#blogSearch::placeholder {
    color: var(--text-muted);
}

#blogSearch:focus {
    border-color: var(--accent-primary);
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 0 10px rgba(0, 122, 255, 0.3); /* Subtle glow on focus */
    outline: none;
}

.search-bar-container button {
    padding: 12px 25px; /* Slightly less padding */
    font-size: 1em;
    background-color: var(--accent-primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-depth-1);
}

.search-bar-container button:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-depth-2);
}

.blog-post-card {
    padding: 30px; /* Less padding */
}

.blog-post-card h3 {
    font-size: 1.8em; /* Slightly smaller */
    margin-bottom: 12px;
}

.blog-post-card .post-meta {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.blog-post-card p {
    margin-bottom: 20px;
}

.blog-post-card .read-more {
    font-weight: 500; /* Less bold */
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-primary);
}

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px; /* Less padding */
    margin: 0 5px;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-depth-1);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.pagination a:hover, .pagination a.active {
    background-color: var(--accent-primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-depth-2);
}

/* Contact Page */
.contact-section {
    padding-top: 70px;
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Less gap */
    align-items: stretch;
}

.contact-form-container, .contact-info {
    padding: 40px; /* Less padding */
    border-radius: 10px;
    background-color: var(--secondary-dark);
    box-shadow: var(--shadow-depth-2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.contact-form-container h2, .contact-info h2 {
    font-size: 2em; /* Slightly smaller */
    margin-bottom: 30px;
    text-align: center;
    text-shadow: none;
    color: var(--accent-primary); /* Primary accent color */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px; /* Less padding */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--tertiary-dark);
    color: var(--text-light);
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 0 10px rgba(0, 122, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px; /* Less min-height */
}

.contact-form-container .btn {
    width: 100%;
    padding: 15px; /* Less padding */
    font-size: 1.1em;
    margin-top: 15px;
}

.form-message {
    margin-top: 20px;
    text-align: center;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1em;
    text-shadow: none;
}

.contact-info p {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-light);
}

.contact-info ul li strong {
    color: var(--white);
    font-weight: 600;
}

.contact-info .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.contact-info .social-link-item {
    background-color: var(--tertiary-dark);
    color: var(--accent-primary);
    padding: 10px 20px; /* Less padding */
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-secondary); /* Muted border */
    box-shadow: var(--shadow-depth-1);
}

.contact-info .social-link-item:hover {
    background-color: var(--accent-primary);
    color: var(--white);
    box-shadow: var(--shadow-depth-2);
    transform: translateY(-1px);
    filter: brightness(1.15);
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    color: var(--text-muted);
    text-align: center;
    padding: 35px 0; /* Less padding */
    font-size: 0.95em;
    border-top: 1px solid var(--border-color);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3); /* More subtle inset shadow */
}

footer .social-links {
    margin-top: 15px;
}

footer .social-links a {
    color: var(--text-muted);
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    header nav ul li {
        margin-left: 15px;
    }

    .mv-grid, .usp-grid, .service-grid, .blog-posts-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .mv-card, .usp-card, .service-card, .blog-post-card, .contact-form-container, .contact-info, .team-member {
        padding: 25px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .team-photo {
        width: 130px;
        height: 130px;
    }

    .team-member p {
        text-align: left;
    }

    .search-bar-container {
        flex-direction: column;
        align-items: center;
    }

    #blogSearch, .search-bar-container button {
        max-width: 90%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        margin-bottom: 15px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 8px 0;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-buttons .btn {
        display: block;
        margin: 12px auto;
        max-width: 250px;
    }

    .mission-vision, .usp-section, .featured-services, .content-section, .team-section, .service-detail, .contact-section, .blog-content {
        padding: 50px 0;
    }

    h2 {
        font-size: 2em;
    }

    .team-member h3 {
        font-size: 1.8em;
    }

    .contact-form-container h2, .contact-info h2 {
        font-size: 1.6em;
    }

    .contact-info .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .mv-card, .usp-card, .service-card, .blog-post-card, .contact-form-container, .contact-info, .team-member {
        padding: 18px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .team-photo {
        width: 90px;
        height: 90px;
    }
    .team-member h3 {
        font-size: 1.4em;
    }
}