/* --- Google Font Import --- */
/* This line imports custom fonts from Google to be used on the website. */
@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@700&family=Playfair+Display:ital,wght@1,700&family=Roboto:wght@400;500;700&display=swap');

/* --- Root Variables for Color Palette --- */
/* Using CSS variables makes it easy to change the site's color scheme in one place. */
:root {
    --primary-navy: #273b69;
    --accent-orange: #e99f47;
    --secondary-teal: #00A896;
    --text-charcoal: #0D1B2A;
    --bg-offwhite: #F5F7FA;
    --white: #FFFFFF;
    --black: #000000;
    --bubble-grey: #e0e0e0; /* New grey color for background bubbles */
}

/* --- General Body Styles --- */
/* These are the base styles that apply to the entire website. */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--text-charcoal);
    overflow-x: hidden; /* Prevent horizontal scroll from off-screen bubbles */
}

/* --- Header Section --- */
/* Styles for the main header/navigation bar. */
.site-header {
    background-color: var(--primary-navy);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Makes the header stay at the top when scrolling */
    top: 0;
    width: 100%;
    z-index: 1001; /* Ensures the header stays on top of other content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.logo { width: 100px; height: auto; }
.header-brand { flex-grow: 1; }
.brand-name-header { color: var(--bg-offwhite); font-family: 'Agdasima', sans-serif; font-size: 3.2rem; margin: 0; }
.header-nav .nav-list { display: flex; align-items: center; }
.header-nav a { color: var(--bg-offwhite); text-decoration: none; font-weight: 500; padding: 8px 16px; border-radius: 50px; transition: background-color 0.3s, color 0.3s; }
.header-nav a:hover { background-color: var(--accent-orange); color: var(--white); }

/* Brand Name Link Style */
.brand-link, .brand-link:hover {
    text-decoration: none;
    color: inherit;
}

/* --- Hamburger Menu (Mobile) --- */
/* Styles for the mobile menu icon and dropdown. */
.navbar-toggler { border: none; background: transparent; padding: 0; cursor: pointer; }
.toggler-icon { display: block; width: 25px; height: 3px; background-color: var(--white); margin: 5px 0; border-radius: 2px; }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-navy); border-top: 1px solid var(--accent-orange); z-index: 1000; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; color: var(--white); text-decoration: none; padding: 15px 20px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-nav a:hover { background-color: var(--accent-orange); }

/* --- Hero Section --- */
/* Styles for the main landing area at the top of the page. */
.hero-section {
    position: relative;
    background-color: var(--primary-navy);
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 60px 0; }
.hero-title-italic { font-family: 'Agdasima', sans-serif; font-weight: 700; font-style: normal; font-size: 8rem; color: var(--accent-orange); }
.hero-title-italic::after { content: '|'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline { font-size: 1.4rem; color: var(--secondary-teal); margin-top: 10px; min-height: 1.4rem; }
.hero-image { max-width: 100%; height: auto; border-radius: 15px; }
.hero-buttons { display: flex; align-items: center; }

/* --- DEDICATED BUTTON STYLES (CORRECTED) --- */
/* This single style now applies to all primary action buttons for consistency. */
.btn-action-oval {
    background-color: var(--primary-navy);
    color: var(--white) !important; /* !important ensures text is always white */
    border: 2px solid var(--primary-navy);
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}
/* This is the hover effect for the main buttons */
.btn-action-oval:hover {
    background-color: #e99f47; /* A slightly darker orange for hover */
    border-color: #e99f47;
    color: var(--white);
}

/* Key Benefits styles */
.key-benefits { display: flex; flex-wrap: wrap; gap: 20px; color: var(--white); }
.benefit-item { display: flex; align-items: center; font-size: 1rem; font-weight: 500; }
.benefit-item i { color: var(--accent-orange); margin-right: 8px; font-size: 1.2rem; }

/* --- General Section Title Style --- */
.section-title-underline { font-weight: 700; color: var(--text-charcoal); margin-bottom: 1rem; display: inline-block; position: relative; }
.section-title-underline::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50px; height: 4px; background-color: var(--accent-orange); }

/* --- About Us & Founder Section --- */
.about-text { font-size: 1.1rem; line-height: 1.7; color: #555; }

/* NEW: Removes underline from icon links */
#about a {
    text-decoration: none;
}

/* --- Interactive Icon Grid (New About Section) --- */
.about-content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 800px; /* REVERTED: Set to a fixed, wider height */
    margin: 40px 0;
    overflow: hidden; /* Ensures bubbles don't overflow parent */
}
.about-text-center {
    max-width: 65%; /* Adjusted for more space for bubbles */
    text-align: center;
    position: relative;
    z-index: 3; /* Ensure text is above all bubbles */
    padding: 20px;
}
.icon-grid-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Interactive icons over background bubbles */
    pointer-events: none; /* Allow clicks to pass through to text if no icon is there */
}
/* Make service icons interactive */
.service-icon-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto; /* Re-enable pointer events for the interactive icons */
}
.floating-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 3px solid var(--secondary-teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-navy);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    animation: float 5s ease-in-out infinite;
}
.floating-icon:hover {
    transform: scale(1.3) translateY(-8px); /* More pronounced expansion */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: var(--accent-orange);
}
.icon-tooltip {
    position: absolute;
    bottom: 105%;
    background-color: var(--text-charcoal);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}
.service-icon-wrapper:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
/* Positions for 7 interactive icons in a circle-like layout */
.icon-pos-1 { top: 10%; left: 20%; animation-delay: 0s; }
.icon-pos-2 { top: 5%; right: 25%; animation-delay: 1.5s; }
.icon-pos-3 { top: 40%; right: 5%; animation-delay: 0.5s; }
.icon-pos-4 { bottom: 10%; right: 18%; animation-delay: 2s; }
.icon-pos-5 { bottom: 0; left: 35%; animation-delay: 1s; }
.icon-pos-6 { bottom: 15%; left: 8%; animation-delay: 2.5s; }
.icon-pos-7 { top: 40%; left: 0%; animation-delay: 0.2s; }

/* --- Background Bubbles (NEW & UPDATED) --- */
.background-bubble {
    position: absolute;
    background-color: var(--bubble-grey); /* Using the new grey color */
    border-radius: 50%;
    opacity: 0.7; /* Semi-transparent */
    z-index: 1; /* Behind the text and interactive icons */
    pointer-events: none; /* Do not block interaction */
    animation: background-float 10s ease-in-out infinite; /* Subtle floating animation */
}

/* Specific background bubble sizes and positions for About section */
.background-bubble.bubble-large-1 { width: 200px; height: 200px; top: 10%; left: 5%; opacity: 0.4; animation-delay: 0s; }
.background-bubble.bubble-medium-1 { width: 150px; height: 150px; top: 30%; right: 0%; opacity: 0.5; animation-delay: 2s; }
.background-bubble.bubble-small-1 { width: 80px; height: 80px; top: 50%; left: 25%; opacity: 0.6; animation-delay: 4s; }
.background-bubble.bubble-large-2 { width: 250px; height: 250px; bottom: -50px; left: 10%; opacity: 0.3; animation-delay: 1s; } /* Partially off-screen */
.background-bubble.bubble-medium-2 { width: 120px; height: 120px; top: 0; right: 10%; opacity: 0.55; animation-delay: 3s; }
.background-bubble.bubble-small-2 { width: 90px; height: 90px; bottom: 20%; right: 30%; opacity: 0.65; animation-delay: 5s; }
.background-bubble.bubble-large-3 { width: 180px; height: 180px; top: 20%; right: 40%; opacity: 0.4; animation-delay: 0.5s; }
.background-bubble.bubble-medium-3 { width: 100px; height: 100px; bottom: 5%; left: 45%; opacity: 0.5; animation-delay: 2.5s; }
.background-bubble.bubble-offscreen-left { width: 300px; height: 300px; top: 60%; left: -100px; opacity: 0.2; animation-delay: 1.8s; } /* More off-screen */
.background-bubble.bubble-offscreen-right { width: 220px; height: 220px; top: 0%; right: -80px; opacity: 0.3; animation-delay: 3.2s; } /* More off-screen */

@keyframes background-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); } /* Smaller float for background */
    100% { transform: translateY(0px); }
}
/* --- End of Interactive Icon Grid & Background Bubbles --- */

.founder-section {
    border-top: 1px solid #eee;
    position: relative; /* Essential for positioning child absolute bubbles */
    overflow: hidden; /* Hide bubbles overflowing this section */
    padding-top: 60px; /* REVERTED: Use padding instead of flex for centering */
    padding-bottom: 60px;
    z-index: 0;
}
.founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    position: relative;
}
.founder-photo:hover {
    transform: scale(1.10);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.founder-title { font-weight: 700; color: var(--primary-navy); }

/* Specific background bubbles for Founder section */
.background-bubble.founder-bubble-1 {
    width: 180px;
    height: 180px;
    top: -50px;
    left: -30px;
    opacity: 0.25;
    animation-delay: 0.8s;
}
.background-bubble.founder-bubble-2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: 10%;
    opacity: 0.35;
    animation-delay: 2.2s;
}

.social-icons .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-offwhite); color: var(--primary-navy); text-decoration: none; margin-right: 10px; transition: background-color 0.3s, color 0.3s; font-size: 1.1rem; }
.social-icons .social-icon:hover { background-color: var(--accent-orange); color: var(--white); }

/* --- Services Section --- */
#services { background-color: var(--bg-offwhite); }
.service-category-title { font-size: 1.6rem; font-weight: 700; color: var(--primary-navy); margin-bottom: 1rem; }
.service-card { background-color: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; height: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-icon { font-size: 2.5rem; color: var(--secondary-teal); margin-bottom: 15px; }
.service-title { font-size: 1.4rem; font-weight: 700; color: var(--primary-navy); margin-bottom: 10px; }
.service-description { font-size: 1rem; color: #666; }
.other-services-note { font-style: italic; color: var(--secondary-teal); }

/* --- Satisfaction Guarantee Section --- */
#guarantee { background-color: var(--primary-navy); color: var(--white); }
.guarantee-text { font-weight: 700; font-size: 1.5rem; margin: 0; }
.guarantee-text .fa-check-circle { color: #28a745; margin-right: 10px; }

/* --- Contact Section --- */
.contact-info { padding: 0; }
.contact-info li { display: flex; align-items: center; font-size: 1.1rem; margin-bottom: 20px; color: var(--text-charcoal); }
.contact-info i { font-size: 1.5rem; color: var(--accent-orange); margin-right: 20px; width: 30px; text-align: center; }
.contact-form .form-control { border-radius: 5px; padding: 12px; border: 1px solid #ddd; }
.contact-form .form-control:focus { border-color: var(--primary-navy); box-shadow: 0 0 0 0.25rem rgba(11, 61, 145, 0.25); }

/* --- Footer --- */
.site-footer-new { background-color: var(--text-charcoal); color: var(--bg-offwhite); padding: 25px 0; text-align: center; }
.site-footer-new p { margin: 0; font-size: 0.9rem; }
.social-icons-footer .social-icon { color: var(--bg-offwhite); font-size: 1.3rem; margin: 0 10px; transition: color 0.3s; text-decoration: none; }
.social-icons-footer .social-icon:hover { color: var(--accent-orange); }

/* --- Scroll Animation --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsiveness --- */
/* These styles apply to screens 992px wide or smaller (tablets and phones). */
@media (max-width: 992px) {
    .hero-section { text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-text-content { margin-top: 30px; }
    .hero-title-italic { font-size: 2.5rem; }
    .hero-tagline { font-size: 1.1rem; }
    .key-benefits { justify-content: center; }
    .section-title-underline { text-align: center; }
    .section-title-underline::after { left: 50%; transform: translateX(-50%); }

    /* About Section Responsive Styles */
    .about-content-wrapper {
        position: relative; /* UPDATED: Needed for absolute positioning of bubbles */
        display: flex;
        flex-direction: column;
        min-height: auto; /* Revert from 100vh on mobile */
        padding: 40px 0;
        overflow: hidden; /* UPDATED: Keep bubbles contained */
    }
    .about-text-center {
        max-width: 100%;
        order: 1;
        padding: 10px;
    }
    .icon-grid-desktop {
        display: none; /* UPDATED: Hide interactive icons on mobile */
    }

    /* UPDATED: Show background bubbles on mobile but hide most to prevent clutter */
    .background-bubble {
        display: block;
        animation: none; /* Turn off floating animation for performance */
    }
    /* Hide most desktop bubbles */
    .bubble-small-1, .bubble-large-2, .bubble-medium-2, .bubble-small-2, .bubble-large-3, .bubble-medium-3, .bubble-offscreen-left, .bubble-offscreen-right {
        display: none;
    }
    /* Reposition the remaining few for mobile layout */
    .bubble-large-1 { top: 5%; left: -25%; width: 180px; height: 180px; opacity: 0.15; }
    .bubble-medium-1 { bottom: 5%; right: -20%; width: 150px; height: 150px; opacity: 0.2; }
    
    .founder-section {
        text-align: center;
        min-height: auto; /* Revert from 100vh on mobile */
        padding: 40px 15px;
    }
    /* Reposition founder bubbles for mobile */
    .founder-bubble-1 { top: 0; left: -20%; width: 120px; height: 120px; opacity: 0.1; }
    .founder-bubble-2 { bottom: 0; right: -15%; width: 100px; height: 100px; opacity: 0.15; }
    
    .brand-name-header { font-size: 1.5rem; }
}