/* CSS Variables */
:root {
    --primary-blue: #253BAB;
    --dark-navy: #102B4E;
    --accent-gold: #FEC272;
    --bg-light: #FAFAFA;
    --text-body: #333333;
    --text-light: #666666;
    --white: #FFFFFF;

    --font-main: 'Plus Jakarta Sans', sans-serif;

    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 5rem;
    /* 80px */

    --container-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.text-white {
    color: var(--white);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.button-primary:hover {
    background-color: var(--dark-navy);
    transform: translateY(-2px);
}

.button-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.button-white:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--white);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-navy);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-button:hover {
    background-color: var(--dark-navy);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
    overflow: hidden;
    background-image: url('images/bg-geometric.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-content {
    flex: 1;
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
}

/* Placeholders & Decor */
.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    color: #999;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.decorative-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1;
}

.dots-hero {
    bottom: -30px;
    left: -30px;
    background-image: url('images/dots-corner.svg');
    width: 150px;
    height: 150px;
}

.dots-about {
    top: -30px;
    right: -30px;
    background-image: url('images/dots-vertical.svg');
    width: 100px;
    height: 200px;
}

/* Contact Ribbon */
.contact-ribbon {
    background-color: var(--white);
    padding: var(--spacing-md) 0;
    margin-top: -50px;
    /* Overlap effect */
    position: relative;
    z-index: 10;
}

.ribbon-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.ribbon-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 280px;
}

.ribbon-icon {
    font-size: 2rem;
}

.ribbon-text h3 {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--dark-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ribbon-text p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--dark-navy);
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.about-content {
    flex: 1;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-navy);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 800;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    background: #eef2ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-container p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {

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

    .hero-image-wrapper,
    .about-image-wrapper {
        width: 100%;
        max-width: 500px;
    }

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

@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* Mobile menu implementation usually goes here */
    }

    h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .ribbon-container {
        flex-direction: column;
    }
}

/* --- Animations --- */

/* Base Transitions */
.hero-content,
.hero-image-wrapper,
.contact-ribbon,
.header {
    opacity: 0;
    /* Start hidden for JS to trigger */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Keyframe Animations classes applied by JS */
.animate-fade-in {
    opacity: 1 !important;
}

.animate-fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Initial States for animations */
.hero-content,
.hero-image-wrapper {
    transform: translateY(30px);
}

/* Scroll Reveal */
.scroll-hidden {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-hidden.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Card Hover Effects - Refinement */
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    /* Slight scale up + lift */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button & Link Hover States */
.button {
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    box-shadow: 0 4px 12px rgba(37, 59, 171, 0.3);
}

.nav-link {
    transition: color 0.2s ease;
}