/* --- 1. Variables & Themes --- */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f9fafb;
    --text-main: #000000;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --accent: #000000;
    --accent-contrast: #ffffff;
    --error: #ef4444;
    --hover-bg: rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-main: #000000;
    --bg-secondary: #09090b;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
    --nav-bg: rgba(0, 0, 0, 0.9);
    --accent: #ffffff;
    --accent-contrast: #000000;
    --hover-bg: rgba(255, 255, 255, 0.1);
}

/* --- 2. Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* --- 3. Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

nav.scrolled {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    line-height: 1;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.theme-toggle, 
.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
    background-color: var(--hover-bg);
}

.mobile-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--bg-main);
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    padding: 1rem 0;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover {
    opacity: 0.7;
}

/* --- 4. Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1600') center/cover;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--accent-contrast);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* --- 5. About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about .section-title {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.vision-mission {
    margin-bottom: 3.5rem;
}

.vision-mission:last-child {
    margin-bottom: 0;
}

.vision-mission h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.vision-mission p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 1rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.25rem;
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Inverted Box */
.inverted-box {
    background-color: #ffffff;
    color: #000000;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.inverted-box .feature h4 { 
    color: #000000; 
}

.inverted-box .feature p { 
    color: #4b5563; 
}

.inverted-box .feature-icon { 
    color: #000000; 
}

body:not(.dark-mode) .inverted-box {
    background-color: #000000;
    color: #ffffff;
}

body:not(.dark-mode) .inverted-box .feature h4 { 
    color: #ffffff; 
}

body:not(.dark-mode) .inverted-box .feature p { 
    color: #9ca3af; 
}

body:not(.dark-mode) .inverted-box .feature-icon { 
    color: #ffffff; 
}

/* --- 6. Parallax Section --- */
.parallax {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

body:not(.dark-mode) .parallax {
    background-color: #000000;
}

.parallax-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    max-width: 500px;
    max-height: 500px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 0;
    transition: opacity 0.3s ease;
    background-image: url('../img/logo-black.png');
}

body:not(.dark-mode) .parallax-logo-bg {
    background-image: url('../img/logo-white.png');
}

.parallax-content {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
    max-width: 800px;
}

.parallax h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #000000;
    transition: color 0.3s ease;
}

.parallax p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #4b5563;
    transition: color 0.3s ease;
}

body:not(.dark-mode) .parallax h3 {
    color: #ffffff;
}

body:not(.dark-mode) .parallax p {
    color: #d1d5db;
}

/* --- 7. Services Section --- */
.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    padding-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: var(--accent);
    color: var(--accent-contrast);
    transition: var(--transition);
}

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

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- 8. Partner Section --- */
.partner-section {
    padding: 6rem 0;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #ffffff;
    color: #000000;
}

body:not(.dark-mode) .partner-section {
    background-color: #000000;
    color: #ffffff;
}

.partner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.partner-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.partner-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.85;
}

.partner-cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #000000;
    color: #ffffff;
}

.partner-cta-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

body:not(.dark-mode) .partner-cta-button {
    background-color: #ffffff;
    color: #000000;
}

/* --- 9. Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--text-main);
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- 10. Form Styling --- */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-form-container input, 
.contact-form-container select, 
.contact-form-container textarea {
    width: 100%;
    padding: 1rem 0;
    background-color: var(--bg-main);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    transition: border-color 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form-container input:focus, 
.contact-form-container select:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-bottom-color: var(--text-main);
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

input.error, 
select.error, 
textarea.error {
    border-color: var(--error) !important;
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    display: none;
    margin-top: 0.25rem;
}

.error-message.active {
    display: block;
}

.submit-button {
    width: 100%;
    padding: 1.25rem;
    border: none;
    outline: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: inherit;
    background-color: var(--accent);
    color: var(--accent-contrast);
    transition: var(--transition);
}

.submit-button:hover {
    opacity: 0.8;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- 11. Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2001;
    cursor: pointer;
}

.modal-container {
    position: relative;
    background-color: var(--bg-main);
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2002;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--hover-bg);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 2rem;
}

.modal-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.partner-form .form-group {
    margin-bottom: 1.5rem;
}

.partner-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.partner-form input,
.partner-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.partner-form input:focus,
.partner-form textarea:focus {
    outline: none;
    border-color: var(--text-main);
}

.partner-form input.error,
.partner-form textarea.error {
    border-color: var(--error);
}

.partner-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent);
    color: var(--accent-contrast);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    font-family: inherit;
}

.modal-submit-button:hover {
    opacity: 0.85;
}

.modal-submit-button:active {
    transform: scale(0.98);
}

.modal-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- 12. Footer --- */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

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

.footer a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-main);
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 100%;
}

/* --- 13. Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.1s; }
.service-card:nth-child(5) { transition-delay: 0.2s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }
.service-card:nth-child(7) { transition-delay: 0.1s; }
.service-card:nth-child(8) { transition-delay: 0.2s; }
.service-card:nth-child(9) { transition-delay: 0.3s; }
.service-card:nth-child(10) { transition-delay: 0.1s; }
.service-card:nth-child(11) { transition-delay: 0.2s; }
.service-card:nth-child(12) { transition-delay: 0.3s; }

/* --- 14. Responsive Design --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
    }
    
    .mobile-nav { 
        display: flex; 
    }
    
    .nav-content { 
        height: 70px; 
    }
    
    .mobile-menu { 
        top: 70px; 
    }

    section { 
        padding: 4rem 0; 
    }
    
    .hero-title { 
        font-size: 2.5rem; 
        padding: 0 1rem;
    }
    
    .section-title { 
        font-size: 2.2rem; 
    }

    .inverted-box {
        padding: 2rem 1.5rem;
    }

    .services-header { 
        margin-bottom: 3rem; 
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .parallax {
        height: 300px;
        background-attachment: scroll;
    }
    
    .parallax-logo-bg {
        width: 70%;
        height: 70%;
        opacity: 0.08;
    }

    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .partner-section {
        padding: 4rem 0;
    }
    
    .partner-cta-button {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .modal-container {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
        border-radius: 4px;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text { 
        font-size: 1.2rem; 
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}