/* --- CSS Reset & Root Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #0A192F;    /* Main background */
    --secondary-navy: #172A45;  /* Card and element background */
    --accent-yellow: #FFC107;   /* Bright yellow for accents */
    --border-color: #30415A;
    --white: #ffffff;
    --text-primary: #E6F1FF;    /* Light text for headings */
    --text-secondary: #A8B2D1;  /* Lighter text for paragraphs */
    --medium-shadow: 0 8px 24px rgba(0,0,0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-secondary);
    background-color: var(--primary-navy);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-is-open {
    overflow: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p, li {
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--text-secondary);
	margin-bottom: 1rem;
}

.hero-subtitle, .section-subtitle {
    font-size: 1.3rem;
}

/* --- STYLISH TEXT EFFECTS --- */
.text-underline {
    text-decoration: none;
    background-image: linear-gradient(var(--accent-yellow), var(--accent-yellow));
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: 0% 100%;
}

.text-highlight {
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, #ffc20759 50%);
    padding: 0.1em 0.2em;
    margin: -0.1em -0.2em;
}

.about-text-highlight {
    font-weight: 500;
	color: var(--accent-yellow);
	background: var(--secondary-navy);
    padding: 0.1em;
    margin: 0.1em;
	transition: all 0.3s ease;
}

.about-text-highlight:hover {
    color: var(--primary-navy);
    background: var(--accent-yellow);
    transform: scale(1.02);
}

.text-accent  {
    color: var(--accent-yellow);
}

/* --- "Marked Text" style for About Section --- */
.marked-text {
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--accent-yellow);
}

/* --- END OF TEXT STYLES --- */

/* --- HEADER --- */
header {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
}

.logo {
    display: flex;  
    text-decoration: none;  
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    z-index: 1001;
}

.logo .left-part {
    color: var(--accent-yellow);
    font-weight: 700;
}

.logo .right-part {
    color: var(--white);
}

nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-yellow);
    transition: width 0.4s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-yellow);
}

.cta-button {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--primary-navy);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-yellow);
}
.cta-button:hover {
    background: transparent;
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;  
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button .line {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    display: block;
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-navy);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mobile-menu .mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-family: 'Lora', serif;
    font-weight: 500;
}

.mobile-menu .cta-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--primary-navy);
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-container {
    max-width: 1600px;
    margin: 3rem auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.25;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-content .hero-cta {
    margin-top: 4.5rem;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    position: relative;
    background-color: var(--secondary-navy);
    box-shadow: var(--medium-shadow);
    border: 2px solid var(--border-color);
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('/img/hero.png');
    background-size: cover;
    background-position: center;
}

/* --- GENERAL SECTION STYLING --- */
.section {
    padding: 120px 0;
    overflow: hidden;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem; /* Adjusted margin for subtitle */
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem; /* Adjusted margin for subtitle */
}

/* --- ABOUT US SECTION --- */
.about-section {
    background-color: var(--secondary-navy);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 6rem;
    padding: 2rem 0;
}
.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-content .lead {
    font-size: 1.25rem;
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--text-primary);
    margin: 1rem 0 2.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-yellow);
    opacity: 0.9;
}

.about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--medium-shadow);
    border: 1px solid var(--border-color);
    height: 600px;
}
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.about-image-wrapper:hover img {
    filter: grayscale(100%);
    transform: scale(1.05);
}

/* --- WHY US SECTION --- */
.why-us-section {
    background-color: var(--primary-navy);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.why-us-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--secondary-navy);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

 .why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--medium-shadow);
}

.why-us-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--accent-yellow);
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- SERVICES SECTION (ACCORDION) --- */
.services-section {
     background-color: var(--secondary-navy);
     border-top: 1px solid var(--border-color);
}

.accordion {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--primary-navy);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.accordion-item:hover {
    background-color: #193152;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1.75rem;
    margin: 0;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    color: var(--accent-yellow);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease;
}

.accordion-content-inner {
    padding: 0 2rem 2rem 2rem;
}

.accordion-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-top: 1rem;
}

.accordion-content li {
    margin-bottom: 0.75rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

/* --- HOW IT WORKS SECTION --- */
.process-section {
    background-color: var(--primary-navy);
    border-top: 1px solid var(--border-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    text-align: center;
}

.process-step {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.process-step .number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    background-color: var(--accent-yellow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-line {
    position: absolute;
    top: 55px;
    left: 17%;
    right: 17%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: var(--secondary-navy);
    border-top: 1px solid var(--border-color);
}
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--primary-navy);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--medium-shadow);
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

/* --- Shared styles for all form fields --- */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-navy);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* --- Styles ONLY for the select dropdown --- */
.contact-form select {
    /* Removes default system appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Adds the custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23A8B2D1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;

    /* Handles the placeholder color */
    color: var(--text-secondary);
}

.contact-form select:valid {
    color: var(--text-primary);
}

/* --- Placeholder styles for input and textarea ONLY --- */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

/* --- Focus styles for all fields --- */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.contact-form .cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- SIGNUP SECTION --- */
.signup-section {
    background-color: var(--primary-navy);
    padding: 80px 0;
    text-align: center;
}
.signup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.signup-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.signup-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.signup-form input {
    flex-grow: 1;
    padding: 1rem;
    background-color: var(--secondary-navy);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.signup-form input::placeholder {
    color: var(--text-secondary);
}
.signup-form input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}
.signup-form .cta-button {
    white-space: nowrap;
    cursor: pointer;
}

.field-shift {
    position: absolute;
    left: -9999px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-navy);
    color: var(--text-secondary);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.footer-section h3 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    line-height: 1.8;
    max-width: 350px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-section a.text-accent {
    color: var(--accent-yellow);
	transition: color 0.3s ease;
}

.footer-section a.text-accent:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    margin-bottom: 2rem;
}
.footer-bottom p {
    font-size: 0.9rem;
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--secondary-navy);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--medium-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    border: 1px solid var(--border-color);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-navy);
}

/* --- REFINED ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.fade-in-up:nth-child(5) { transition-delay: 0.5s; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    nav, .header-container > .cta-button {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
}

@media (max-width: 992px) {
    .hero-visual, .about-image-wrapper {
        display: none;
    }
    .about-container, .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-content .hero-subtitle, .about-content {
        margin-left: auto;
        margin-right: auto;
    }
     .about-content .lead {
        text-align: left; /* Keep blockquote aligned left even in center mode */
     }
    .hero-content h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .why-us-grid, .process-grid { grid-template-columns: 1fr; }
    .process-line { display: none; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }
    nav, .header-container > .cta-button { 
        display: none;  
    }
    .mobile-menu-button {
        display: block;
    }

    /* --- ENHANCED SPACING & FONT SIZES FOR MOBILE --- */
    p, li {
        font-size: 1rem; /* Base paragraph size */
        line-height: 1.7;
    }
    .section {
        padding: 70px 0;
    }
    .hero {
        padding-top: 120px;
        padding-bottom: 70px;
    }
    .hero-container, .section-container, .footer-container { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle, .section-subtitle { font-size: 1.15rem; }
    .section-title { 
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }
    .section-subtitle {
        margin-top: -2rem;
        margin-bottom: 3rem;
    }

    .about-content h2 { font-size: 2.25rem; }
    .about-content .lead { font-size: 1.15rem; }

    .why-us-card h3, .process-step h3 { font-size: 1.3rem; }

    .accordion-header h3 { font-size: 1.25rem; }
    .accordion-header { padding: 1.5rem; }
    .accordion-content-inner { padding: 0 1.5rem 1.5rem 1.5rem; }
    
    .signup-content h2 { font-size: 2rem; }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 4rem 0;
    }
    .footer-section p { margin-left: auto; margin-right: auto; }
    
    .contact-form-container {
        padding: 2rem;
    }

    .signup-form {
        flex-direction: column;
    }
}