/* General Styles */
:root {
    --primary-blue: #0051A1;
    --secondary-blue: #2C7FC3;
    --accent-yellow: #FFC800;
    --gold-gradient: #F2B100;
    --white: #FFFFFF;
    --shadow-navy: #002F5D;
    --soft-gray: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--shadow-navy);
    background-color: var(--white);
    padding-top: 100px; /* Adjust based on your header height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-yellow);
    color: var(--shadow-navy);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--gold-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

/* Header */
header {
    background-color: var(--white);
    color: var(--shadow-navy);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: auto;
}

header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.95);
    height: 50px;
}

/* Adjust logo size when scrolled */
header.scrolled .logo img {
    max-height: 40px;
}

/* Header container alignment when scrolled */
header.scrolled .header-container {
    height: 50px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-height: 60px;
}

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

nav ul li a {
    color: var(--shadow-navy);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}
nav.active ul li a {
    color: var(--white);
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--shadow-navy);
    margin: 3px 0;
    transition: all 0.3s ease;
}
.active .bar{
    background-color: var(--white);
}

/* Hero Section - Now separate from header */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--shadow-navy));
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 100px 0 50px;
    margin-top: 0; /* Remove the top margin as body already has padding-top */
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-pattern.png');
    background-size: 500px;
    opacity: 0.1;
    animation: shimmer 60s linear infinite;
}

.hero-section.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: relative;
    z-index: 2;
    transform: translateY(30px);
    animation: fade-in-up 0.8s ease forwards;
}

/* Hero content styles */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--shadow-navy));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.85;
    transform: translateY(20px);
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.6s ease;
}

.cta-section.animated {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-pattern.png');
    background-size: 300px;
    opacity: 0.1;
    animation: shimmer 60s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.cta-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    transform: translateY(30px);
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
}

@keyframes fade-in-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: var(--accent-yellow);
    color: var(--shadow-navy);
    font-size: 1.1rem;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    animation: pulse 2s infinite;
}

.cta-section .btn:hover {
    background-color: var(--white);
    transform: scale(1.05);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Media query for responsive CTA section */
@media screen and (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-section .btn {
        font-size: 1rem;
        padding: 12px 30px;
    }
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-blue);
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-yellow);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Responsive grid layout for services */
@media screen and (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: #f9f9f9;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-card .icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.service-card ul {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.service-card ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-yellow);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 10px;
}

/* Contact Section */
.contact {
    background-color: #f4f8fb;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-yellow);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

.contact-info {
    padding: 20px;
}

.professional {
    margin-bottom: 30px;
}

.professional h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.professional p {
    margin-bottom: 10px;
}

.professional p i {
    color: var(--secondary-blue);
    margin-right: 10px;
}

.map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--shadow-navy);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--soft-gray);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(44, 127, 195, 0.1);
}

#formMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}

.success-message {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.error-message {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Footer */
footer {
    background: var(--shadow-navy) url('../images/bg-pattern.png');
    background-size: 500px;
    background-blend-mode: multiply;
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--white);
}

.footer-logo h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

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

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

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

.social-links a:hover {
    background-color: var(--accent-yellow);
    color: var(--shadow-navy);
    transform: translateY(-3px);
}

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

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* Official WhatsApp green color */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: whatsapp-pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #128C7E; /* Darker WhatsApp green on hover */
    animation: none;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-blue);
        z-index: 100;
        transition: all 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Media query for smaller screens */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }

    .logo img {
        max-height: 50px;
    }

    .hero {
        padding: 60px 10px;
    }

    .service-card {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button svg {
        height: 28px;
        width: 28px;
    }
}