:root {
    --primary-yellow: #FFD700;
    --primary-blue: #1E3A8A;
    --dark-blue: #1a2b5f;
    --light-gray: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-yellow);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    display: block;
    line-height: 1;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-yellow);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    position: relative;
    transition: background-color 0s 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav.open .hamburger { background-color: transparent; }
.nav.open .hamburger::before { transform: rotate(45deg); top: 0; transition: top 0.3s ease, transform 0.3s ease 0.3s; }
.nav.open .hamburger::after { transform: rotate(-45deg); top: 0; transition: top 0.3s ease, transform 0.3s ease 0.3s; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    border-color: var(--primary-yellow);
}

.btn-primary:hover {
    background-color: #ffc700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-cta {
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 1.1rem;
    padding: 15px 40px;
}

.btn-cta:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(30, 58, 138, 0.1));
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    margin-right: 15px;
}

.hero-image {
    max-width: 45%;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.highlight {
    color: var(--primary-yellow);
    background: linear-gradient(to top, transparent 10%, var(--primary-blue) 10% 90%, transparent 90%);
    padding: 0 5px;
}

/* --- Page Hero --- */
.page-hero {
    padding: 150px 0 80px;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.subtitle {
    font-weight: 600;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Services Overview --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    height: 60px;
    margin: 0 auto;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* --- About Overview --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.features-list {
    margin-top: 1.5rem;
    padding-left: 0;
}

.features-list li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.check-icon {
    color: var(--primary-yellow);
    margin-right: 10px;
}

/* --- Portfolio Overview --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.9), transparent);
    color: var(--white);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.portfolio-overlay .link {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-blue);
    background-image: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: var(--primary-yellow);
}

.footer-col a {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-yellow);
}

.social-links img {
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- About Page --- */
.mission-vision .grid-2 {
    gap: 60px;
}

.mission-image img, .team-member img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-yellow);
    box-shadow: var(--shadow);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member h4 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.team-member span {
    color: var(--text-light);
    font-weight: 600;
}

/* --- Services Page --- */
.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-item.reverse .service-item-image {
    order: 2;
}

.service-item-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.service-item-content h3 {
    margin-bottom: 1rem;
}

.service-item-content ul {
    list-style: '✓ ';
    padding-left: 20px;
    margin-top: 1rem;
}

.service-item-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* --- Portfolio Page --- */
.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.portfolio-card .card-content {
    padding: 25px;
}

.portfolio-card .category {
    font-weight: 600;
    color: var(--primary-yellow);
    margin-bottom: 10px;
    display: block;
}

/* --- Blog Page --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.blog-post-card .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.blog-post-card .card-content {
    padding: 25px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-blue);
}

/* --- Contact Page --- */
.contact-form-wrapper, .contact-info-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.contact-details {
    margin-top: 20px;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.map-container {
    margin-top: 30px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .grid-2, .about-container, .service-item, .service-item.reverse {
        grid-template-columns: 1fr;
    }
    
    .service-item.reverse .service-item-image {
        order: 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-image {
        margin-top: 40px;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px; /* header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid, .portfolio-grid-full, .blog-grid {
        grid-template-columns: 1fr;
    }
}
