/* =================================================
   GLOBAL RESET & VARIABLES
   ================================================= */
:root {
    --primary-blue: #5ea6d6;
    --primary-gold: #d4af37;
    --light-blue: #a8d5f7;
    --dark-blue: #003d66;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

input, select, textarea, button, a {
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =================================================
   HEADER & NAVIGATION
   ================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #4a94c4 0%, rgba(74, 148, 196, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(94, 166, 214, 0.2);
    transition: var(--transition);
    padding: 0.75rem 0;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

.logo img {
    max-width: 100px;
    height: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-gold) !important;
    color: var(--dark-blue) !important;
    padding: 10px 25px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-cta:hover {
    background: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.nav-cta::after {
    display: none !important;
}

/* =================================================
   MENU TOGGLE BUTTON
   ================================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =================================================
   MOBILE SIDEBAR
   ================================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(94, 166, 214, 0.98) 100%);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    color: var(--primary-gold);
    transform: rotate(90deg);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.sidebar-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
    padding: 0.75rem 0;
}

.sidebar-links a:hover {
    color: var(--primary-gold);
    padding-left: 10px;
}

.sidebar-cta {
    background: var(--primary-gold) !important;
    color: var(--dark-blue) !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    text-align: center !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
}

.sidebar-cta:hover {
    background: white !important;
}

/* =================================================
   SCROLL PROGRESS BAR
   ================================================= */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* =================================================
   HERO SECTION
   ================================================= */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
    overflow: hidden;
}

.hero-background .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-gold);
    color: var(--dark-blue);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    touch-action: manipulation;
}

.cta-button:hover {
    background: #c9a227;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: white;
    font-size: 1rem;
}

/* =================================================
   CALCULATOR SECTION
   ================================================= */
.calculator-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    z-index: 10;
}

.calculator-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.calculator-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.calculator-input-group input,
.calculator-input-group select {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.calculator-input-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prefix {
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.calculator-input-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    cursor: pointer;
}

.calculator-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.calculator-input-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.calculator-input-group input[type="number"] {
    padding: 10px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    touch-action: manipulation;
}

.calculator-input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.calculator-input-group select {
    padding: 10px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ea6d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

.calculator-input-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.result-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(94, 166, 214, 0.2);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(94, 166, 214, 0.3);
}

.result-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* =================================================
   SERVICES SECTION
   ================================================= */
.services-section {
    padding: 80px 0;
    background: white;
    background-image: url('./assets/images/services-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.services-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(94, 166, 214, 0.15);
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 166, 214, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(94, 166, 214, 0.2), rgba(212, 175, 55, 0.2));
    transform: rotate(10deg) scale(1.1);
}

.service-icon svg {
    width: 50px;
    height: 50px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-badge {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--dark-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =================================================
   HOW IT WORKS SECTION
   ================================================= */
.how-it-works {
    padding: 80px 0;
    position: relative;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: white !important;
    text-align: center;
    margin-bottom: 1rem;
}

.how-it-works .section-subtitle {
    color: white !important;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold), var(--primary-blue));
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(94, 166, 214, 0.2);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(94, 166, 214, 0.3);
}

.step-content h3 {
    color: var(--primary-blue) !important;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.step-content p {
    color: var(--text-light) !important;
    line-height: 1.6;
}

.timeline-connector {
    display: none;
}

/* =================================================
   TESTIMONIALS SECTION
   ================================================= */
.testimonials-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    color: white !important;
    text-align: center;
    margin-bottom: 1rem;
}

.testimonials-section .section-subtitle {
    color: white !important;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    overflow: hidden;
}

.testimonial-card {
    background: rgba(94, 166, 214, 0.85);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-gold);
    opacity: 0.3;
}

.testimonial-card:hover {
    background: rgba(94, 166, 214, 0.95);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(94, 166, 214, 0.4);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--primary-gold) !important;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: white !important;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
    transform: scale(1.1);
}

/* =================================================
   ABOUT SECTION
   ================================================= */
.about-section {
    padding: 80px 0;
    background-image: url('./assets/images/about-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: var(--transition);
    cursor: pointer;
    border-radius: 10px;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* =================================================
   CONTACT SECTION
   ================================================= */
.contact-section {
    padding: 80px 0;
    background: white;
    background-image: url('./assets/images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: linear-gradient(135deg, rgba(94, 166, 214, 0.1), rgba(212, 175, 55, 0.1));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(94, 166, 214, 0.2);
    transform: translateY(-5px);
}

.contact-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-title {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--primary-gold);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* =================================================
   FOOTER
   ================================================= */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.footer-content a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

.footer-content a:hover {
    color: white;
    text-decoration: underline;
}

/* =================================================
   VIDEO BACKGROUNDS
   ================================================= */
.section-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.how-it-works,
.testimonials-section {
    position: relative;
}

.how-it-works .container,
.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.how-it-works::before,
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* =================================================
   IMAGE LIGHTBOX MODAL
   ================================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--primary-gold);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.modal-close:hover {
    color: white;
}

/* =================================================
FUNDING CALCULATOR BUTTONS
 ================================================= */
 .button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.term-type-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--primary-blue);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--primary-blue);
}

.term-type-btn:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.term-type-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.term-type-btn.active:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}

/* =================================================
   SOCIAL LINKS
   ================================================= */
.social-links-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(3px);
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


/* =================================================
   RESPONSIVE DESIGN
   ================================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        grid-template-columns: 1fr;
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .testimonials-carousel {
        grid-template-columns: 1fr;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .sidebar-overlay {
        display: block;
    }

    .nav-container {
        height: 60px;
    }

    .hero {
        margin-top: 60px;
        min-height: 80vh;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .calculator-section {
        padding: 60px 0;
    }

    .calculator-wrapper {
        padding: 2rem;
        grid-template-columns: 1fr;
    }

    .calculator-results {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .services-section {
        padding: 60px 0;
    }

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

    .how-it-works {
        padding: 60px 0;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-carousel {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section {
        padding: 60px 0;
    }

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

    h2 {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .timeline-step {
        padding: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: -20px;
    }

    .step-content h3 {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-top: 60px;
    }

    .logo img {
        max-width: 70px;
    }

    .nav-container {
        padding: 0 10px;
        height: 60px;
        width: 100%;
    }

    .mobile-sidebar {
        width: 100%;
    }

    .hero {
        min-height: 50vh;
        padding: 1rem 0;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        padding: 0 10px;
        gap: 1.5rem;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        gap: 0.75rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    .calculator-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .calculator-section .container {
        width: 100%;
        padding: 0 10px;
    }

    .calculator-wrapper {
        width: 100%;
        padding: 1rem 10px;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .calculator-input-group {
        width: 100%;
    }

    .calculator-input-group label {
        font-size: 0.9rem;
    }

    .calculator-input-group input[type="number"],
    .calculator-input-group select {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        touch-action: manipulation;
    }

    .calculator-input-group input[type="range"] {
        touch-action: pan-x;
        width: 100%;
    }

    .calculator-results {
        gap: 1rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 1rem;
    }

    .result-label {
        font-size: 0.85rem;
    }

    .result-value {
        font-size: 1.3rem;
    }

    .services-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .services-section .container {
        width: 100%;
        padding: 0 10px;
    }

    .services-grid {
        gap: 1rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1rem;
        width: 100%;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .how-it-works {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .how-it-works .container {
        width: 100%;
        padding: 0 10px;
    }

    .process-timeline {
        gap: 1rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .timeline-step {
        padding: 1rem;
        width: 100%;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        top: -18px;
    }

    .step-content h3 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }

    .testimonials-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .testimonials-section .container {
        width: 100%;
        padding: 0 10px;
    }

    .testimonials-carousel {
        gap: 1rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1rem;
        width: 100%;
    }

    .testimonial-card::before {
        font-size: 2rem;
    }

    .testimonial-stars {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .testimonial-author {
        font-size: 0.85rem;
    }

    .about-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .about-section .container {
        width: 100%;
        padding: 0 10px;
    }

    .about-content {
        gap: 1.5rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        width: 100%;
    }

    .contact-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-section .container {
        width: 100%;
        padding: 0 10px;
    }

    .contact-grid {
        gap: 1rem;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1rem;
        width: 100%;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .contact-card p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .footer {
        width: 100%;
        overflow-x: hidden;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    section {
        width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* =================================================
   ANIMATIONS & TRANSITIONS
   ================================================= */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.service-card,
.testimonial-card,
.contact-card,
.timeline-step {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(3) { animation-delay: 0.2s; }
.timeline-step:nth-child(5) { animation-delay: 0.3s; }

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

/* =================================================
   UTILITY CLASSES
   ================================================= */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* =================================================
   PRINT STYLES
   ================================================= */
@media print {
    header,
    footer,
    .carousel-controls,
    .cta-button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}