/* ============================================
   GLOBAL RESET AND BASE STYLES
   ============================================ */

/* Reset default browser margins and padding, set consistent box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles - sets default font and text color */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d2d2d; /* Main text color - dark gray */
    background-color: #ffffff; /* White background */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

/* Main navigation container - sticky to top of page */
.navbar {
    background: rgba(255, 255, 255, 0.98); /*Slightly transparent white */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensures nav stays above other content */
    padding: 0.5rem 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

/* Inner container for nav content - centers and limits width */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Logo container and styling */
.logo {
    display: flex;
    align-items: center;
}

/* Logo image - recommended size: 180px x 60px PNG with transparent background */
.logo img {
    width: 100px;
    height: auto; /* Adjust this value to scale your logo up/down */
    transform: scale(1.2);
    transform-origin: center;
    display: block;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: 2.5rem; /* Space between menu items */
    align-items: center;
    list-style: none;
}

/* Individual navigation links */
.nav-links a {
    text-decoration: none;
    color: #2d3a4a; /* Navy blue for nav text */
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Hover effect for navigation links */
.nav-links a:hover {
    color: #1787ac; /* Primary brand color on hover */
}

/* Call-to-action button styling (Contact button) */
.cta-button {
    background: #3b89ae; /* CTA blue color */
    color: #ffffff !important; /* White text, !important overrides link color */
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* CTA button hover effect */
.cta-button:hover {
    background: #1787ac; /* Darker blue on hover */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 5px 15px rgba(59, 137, 174, 0.3);
}

/* Mobile hamburger menu button - hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2d3a4a;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Main hero section - large banner at top of page */
.hero {
    background: linear-gradient(135deg, #1787ac 0%, #2d3a4a 100%);
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Overlay for background image - add your image URL here */
.hero-overlay {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    /* Uncomment and add your image URL below */
    /* background: url('hero-image.jpg') center/cover; */
    /* opacity: 0.15; /* Makes image subtle behind content */ 
    /* z-index: 0; */
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.5;
    filter: brightness(0.7);
}

/* Hero content container - sits above overlay */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 1200px;
}

/* Main hero heading */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Adds depth to text */
}

/* Hero subheading text */
.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* ============================================
   FEATURE CARDS (in hero section)
   ============================================ */

/* Grid container for the three floating cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual feature card styling */
.feature-card {
    background: rgba(255, 255, 255, 0.98); /* Almost solid white with slight transparency */
    backdrop-filter: blur(10px); /* Blur effect for glassmorphism */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: #2d2d2d;
    position: relative; /* For positioning the link */
    padding-bottom: 3.5rem; /* Extra space for the link at bottom */
}

/* Card hover effect - lifts up */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Card heading */
.feature-card h3 {
    color: #1787ac; /* Primary brand color */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Card description text */
.feature-card p {
    color: #2d2d2d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* "Find out more..." link at bottom right of cards */
.card-link {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    color: #3b89ae; /* CTA color */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Card link hover effect */
.card-link:hover {
    color: #1787ac;
    text-decoration: underline;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

/* About section - white background with padding */
.about-section {
    background: #ffffff;
    padding: 5rem 2rem;
}

/* Container to limit content width and center it */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* About section heading */
.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2d3a4a; /* Navy color */
    text-align: center;
}

/* About section paragraphs */
.about-section p {
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

/* Contact section - light gray background */
.contact-section {
    background: #f8f9fa;
    padding: 5rem 2rem;
}

/* Contact form container */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact section heading */
.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3a4a;
}

/* Subtitle under heading */
.contact-section .subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* White card containing the form */
.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form field container */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form field labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3a4a;
}

/* Text inputs and textarea styling */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    color: #2d2d2d;
}

/* Input focus state - highlights with brand color */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b89ae; /* CTA blue when focused */
}

/* Textarea specific styling */
.form-group textarea {
    resize: vertical; /* Allows user to resize vertically only */
    min-height: 150px;
}

/* Form submit button */
.submit-btn {
    background: #3b89ae; /* CTA blue */
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* Submit button hover effect */
.submit-btn:hover {
    background: #1787ac; /* Darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 137, 174, 0.4);
}

/* Disabled submit button state */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error messages (hidden by default) */
.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none; /* JavaScript shows these when needed */
}

/* Success message (hidden by default) */
.success-message {
    background: #48bb78;
    color: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none; /* JavaScript shows this after successful submission */
}


/* ============================================
   FOOTER
   ============================================ */

/* Footer section - dark navy background */
.footer {
    background: #2d3a4a;
    color: #ffffff;
    padding: 3rem 2rem 2rem 2rem;
}

/* Footer content container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Footer navigation links */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Wraps on smaller screens */
}

/* Footer navigation link styling */
.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Footer link hover effect */
.footer-nav a:hover {
    color: #3b89ae; /* CTA blue on hover */
}

/* Company address section in footer */
.footer-address {
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Address text styling */
.footer-address p {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Copyright section */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   FOOTER RESPONSIVE - MOBILE
   ============================================ */

/* Stack columns on mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Single column */
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-nav {
        align-items: center; /* Center links on mobile */
    }
}


/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

/* Styles for screens 768px wide or smaller (tablets and phones) */
@media (max-width: 768px) {
    
    /* Show hamburger menu button on mobile */
    .menu-toggle {
        display: block;
    }

    /* Hide navigation links by default on mobile */
    .nav-links {
        display: none; /* Hidden until menu is toggled */
        position: absolute;
        top: 100%; /* Positions below navbar */
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column; /* Stacks links vertically */
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 0; /* Remove gap for vertical layout */
    }

    /* Show menu when 'active' class is added by JavaScript */
    .nav-links.active {
        display: flex;
    }

    /* Mobile menu item spacing */
    .nav-links li {
        padding: 0.75rem 2rem;
        width: 100%;
    }

    /* Full width links on mobile */
    .nav-links a {
        display: block;
        width: 100%;
    }

    /* Smaller hero heading on mobile */
    .hero h1 {
        font-size: 2.2rem;
    }

    /* Smaller hero subheading on mobile */
    .hero p {
        font-size: 1.2rem;
    }

    /* Single column for feature cards on mobile */
    .feature-cards {
        grid-template-columns: 1fr;
    }

    /* Reduced padding for contact form on mobile */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Smaller section headings on mobile */
    .about-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    /* Stack footer navigation vertically on mobile */
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
