/* Font Imports - MUST be at the top */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Basic Reset & Typography */
:root {
    --primary-blue: #0052cc; /* A deep, professional blue */
    --light-blue: #4c9aff;   /* A lighter, vibrant blue from logo */
    --accent-blue: #e6f0ff;  /* Very light blue for backgrounds */
    --dark-text: #333;
    --light-text: #f8f9fa;
    --grey-bg: #f4f7f6;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll from animation if any element is too wide briefly */
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--light-blue);
}

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

.highlight {
    color: var(--light-blue);
    font-weight: bold;
}

.highlight-point {
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: 8px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    padding: 0.75rem 0; /* Adjusted padding a bit */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

.logo-brand-group {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjusted for better balance with text */
    vertical-align: middle;
}

/* Animated 4qrious Text */
.animated-logo-text {
    font-family: 'Ubuntu', sans-serif;
    font-size: 3rem; /* Adjusted size */
    font-weight: 1000; /* Ubuntu Bold */
    display: flex;
    align-items: center;
    margin-left: 0px; /* Space from the image logo */
    cursor: default;
    overflow: hidden; /* Helps ensure smooth animation start */
}

.animated-logo-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-70px); /* Initial position set by animation */
    animation-name: dropBounce;
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy easing */
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    padding: 0 0.5px;
}

/* Letter-specific colors and animation delays */
.animated-logo-text span:nth-child(1) { color: #4285F4; animation-delay: 0.3s; }    /* 4 - Blue */
.animated-logo-text span:nth-child(2) { color: #34A853; animation-delay: 0.38s; }   /* q - Green */
.animated-logo-text span:nth-child(3) { color: #EA4335; animation-delay: 0.46s; }   /* r - Red */
.animated-logo-text span:nth-child(4) { color: #FBBC05; animation-delay: 0.54s; }   /* i - Yellow */
.animated-logo-text span:nth-child(5) { color: #0077cc; animation-delay: 0.62s; }   /* o - Darker Blue (for variety) */
.animated-logo-text span:nth-child(6) { color: #FF6D00; animation-delay: 0.70s; }   /* u - Orange */
.animated-logo-text span:nth-child(7) { color: #00A19A; animation-delay: 0.78s; }   /* s - Teal */


@keyframes dropBounce {
    0% {
        opacity: 0;
        transform: translateY(-70px);
    }
    60% {
        transform: translateY(5px);
        opacity: 1; /* Start becoming visible as it drops */
    }
    75% {
        transform: translateY(-10px);
    }
    90% {
        transform: translateY(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--primary-blue);
    font-weight: 500;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

header nav ul li a:hover,
header nav ul li a.active { /* JS will add .active class */
    color: var(--light-blue);
    border-bottom-color: var(--light-blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: top;
    color: var(--light-text);
    text-align: center;
    padding: 160px 0 100px; /* Adjusted top padding for header */
    position: relative;
    min-height: 70vh; /* Ensure it's tall enough */
    display: flex; /* For vertical centering of overlay content */
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background-color: rgba(0, 50, 100, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container { /* Ensure container within overlay is centered */
    position: relative; /* So z-index works if needed, and for layout */
    z-index: 2;
}


.hero-section h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--light-blue);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.4);
}

.cta-button:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 70px 0;
}

.content-section.alt-bg {
    background-color: var(--accent-blue);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 30px;
    align-items: center;
}

.feature-grid.reverse .feature-text {
    order: 2;
}
.feature-grid.reverse .feature-image {
    order: 1;
}

.feature-image img {
    display: block;
    margin: 0 auto;
}

/* Safety Section Specifics */
.safety-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.safety-point {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border-left: 5px solid var(--primary-blue);
}

.safety-point-blue {
    background-color: var(--accent-blue);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border-left: 5px solid var(--light-blue);
}

.safety-point h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 70px 0;
    text-align: center;
}

.contact-section h2 {
    color: var(--light-text);
}
.contact-section p {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.contact-section .cta-button {
    background-color: #fff;
    color: var(--primary-blue);
}
.contact-section .cta-button:hover {
    background-color: var(--accent-blue);
    color: var(--primary-blue);
}


/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive Adjustments */

@media (min-width: 769px) {
  .feature-grid {
    grid-template-columns: 40% 60%;
    gap: 30px;
  }
  
  .feature-grid.reverse .feature-text {
    order: 2;
  }
  
  .feature-grid.reverse .feature-image {
    order: 1;
  }
}

@media (max-width: 992px) { /* Medium devices (tablets, landscape phones) */
    .logo img {
        height: 40px;
    }
    .animated-logo-text {
        font-size: 1.8rem;
        margin-left: 10px;
    }
    header nav ul li {
        margin-left: 18px;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
    .content-section, .contact-section {
        padding: 60px 0;
    }
}


@media (max-width: 768px) { /* Small devices (tablets in portrait, large phones) */
    header {
        padding: 0.5rem 0; /* Slightly reduce header padding */
    }
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* Adjust based on actual header height on mobile. Measure this! */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 5px var(--shadow-color);
        border-top: 1px solid var(--border-color);
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    header nav ul li a {
        padding: 10px 15px; /* Make tap targets larger */
        border-bottom: none; /* Remove bottom border for mobile menu items */
    }
    header nav ul li a:hover,
    header nav ul li a.active {
        background-color: var(--accent-blue); /* Highlight active/hovered mobile item */
        color: var(--primary-blue);
        border-bottom-color: transparent; /* Ensure no border persists */
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem; /* Adjust size of burger icon */
    }

    .logo img {
        height: 38px;
    }
    .animated-logo-text {
        font-size: 1.5rem; /* Smaller on mobile */
        margin-left: 8px;
    }

    .hero-section {
        padding: 120px 0 80px; /* Adjust padding for smaller header */
        min-height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }

    .feature-grid, .safety-points {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .feature-grid.reverse .feature-text,
    .feature-grid.reverse .feature-image {
        order: 0; /* Reset order for stacking */
    }
    .feature-image {
        margin-top: 20px;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) { /* Extra small devices (phones) */
    .animated-logo-text {
        /* Optionally hide it if space is too tight or make it even smaller */
        /* display: none; */
         font-size: 1.3rem;
         margin-left: 6px;
    }
    .logo img {
        height: 35px;
    }
    header nav ul {
        top: 56px; /* Re-adjust if header height changes */
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}