@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #04484E;
    --secondary: #004E89;
    --accent: #F7C948;
    --dark: #1A1A2E;
    --light: #FFFFFF;
    --gray: #64748B;
    --bg-light: #F8FAFC;
    --bg-section: #FFFFFF;
    --gradient: linear-gradient(135deg, #04484E 0%, #F7C948 100%);
    --gradient-blue: linear-gradient(135deg, #004E89 0%, #1A759F 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    touch-action: pan-y;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: var(--light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(4, 72, 78, 0.3);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(4, 72, 78, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    padding: 6rem 2rem 2rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    width: 100%;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-links a {
    font-size: 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    width: 100%;
}

.mobile-nav-links a:hover {
    color: var(--primary);
    background: rgba(4, 72, 78, 0.1);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #04484E 0%, #F7C948 100%);
    padding: 180px 0 100px;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.page-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 1rem;
}

.breadcrumb a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 8rem 1.5rem;
    background: var(--light);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray);
}

.social-contact {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-contact a {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-contact a:hover {
    background: var(--gradient);
    color: var(--light);
    transform: translateY(-5px);
}

.contact-form-wrapper {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-light);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--dark);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(4, 72, 78, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient);
    color: var(--light);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(4, 72, 78, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 72, 78, 0.5);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 8rem 1.5rem;
    background: var(--light);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    background: rgba(4, 72, 78, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

.faq-item {
    border-bottom: 1px solid var(--bg-light);
    padding: 2rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.5rem;
    margin: 0;
}

.faq-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-top: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 8rem 1.5rem;
    background: var(--gradient-blue);
    color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: 100% 100px;
    background-repeat: no-repeat;
    background-position: bottom;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 10px 30px rgba(4, 72, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 72, 78, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--secondary);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 5rem 1.5rem 2rem;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-brand p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-apps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-apps a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-apps a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--light);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 0.2rem 0;
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #04484E 0%, #F7C948 100%);
    color: white;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
    animation: fadeInUp 0.5s ease;
    display: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* ===== RESPONSIVE DESIGN - FIXED ===== */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .page-header {
        padding: 150px 0 80px;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Fix contact items layout on tablet */
    .contact-item {
        flex-direction: row;
        text-align: left;
    }
    
    .social-contact {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 130px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.3rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-contact {
        justify-content: center;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .page-header,
    .contact-section,
    .faq-section,
    .cta-section,
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix section padding on mobile */
    .contact-section,
    .faq-section,
    .cta-section {
        padding: 6rem 1rem;
    }
    
    /* Fix form elements on mobile */
    .form-control {
        padding: 0.9rem 1.2rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-apps {
        flex-direction: column;
    }
    
    .footer-apps a {
        justify-content: center;
    }
    
    .success-message {
        padding: 1.5rem 2rem;
        width: 90%;
        margin: 0 auto;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-info h3,
    .contact-form-wrapper h3 {
        font-size: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 2rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    /* Fix CTA buttons on very small screens */
    .cta-buttons .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Fix contact icons on mobile */
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Fix social contact icons */
    .social-contact a {
        width: 45px;
        height: 45px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .nav-cta:hover {
        transform: none;
    }
    
    .social-contact a:hover {
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
    }
    
    .footer-apps a:hover {
        transform: none;
    }
    
    .footer-social a:hover {
        transform: none;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-cta,
    .menu-toggle,
    .social-contact,
    .footer-apps,
    .footer-social,
    .success-message {
        display: none !important;
    }
    
    .page-header {
        background: #04484E !important;
        color: black !important;
    }
}