/* Color Palette */
:root {
    --primary-blue: #00005a; /* Matching exact logo blue */
    --primary-orange: #f06e1e; /* Matching exact logo orange */
    --light-bg: #f8f9fa;
    --dark-bg: #1c2331;
    --text-color: #333333;
    --text-light: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--text-light) !important; }

.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--text-light); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--text-light); }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-orange), #b31b00);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(213, 32, 0, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(213, 32, 0, 0.6);
    color: #fff;
}

.btn-large {
    font-size: 1.1rem;
    padding: 18px 40px;
}

/* Floating WhatsApp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.94);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 50px;
}

.logo-container {
    margin-bottom: 40px;
}

.main-logo {
    width: 50%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.05));
}

.logo-fallback {
    display: none;
    padding: 20px;
}

.logo-fallback h1 {
    font-size: 5rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.logo-orange { color: var(--primary-orange); }
.logo-blue { color: var(--primary-blue); }

.logo-tagline {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-color);
    margin-top: -10px;
}

/* Brain over P styling */
.logo-p-container {
    position: relative;
    display: inline-block;
}

.logo-brain-icon {
    position: absolute;
    top: -0.45em;
    left: 45%;
    transform: translateX(-50%);
    font-size: 0.65em;
    color: var(--primary-blue);
    /* Adjusting to match the drawn style of the original logo */
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* Identity Section */
.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.identity-box {
    padding: 40px 30px;
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.identity-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.identity-box h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
}

.code-blue h3 { color: var(--primary-blue); }
.code-orange h3 { color: var(--primary-orange); }

.highlight-text {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-style: italic;
}

/* About Section */
.intro-text {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-inline: auto;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.vision-col {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.vision-col::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), #3b5998);
}

.encounter {
    background: linear-gradient(135deg, var(--primary-blue), #183159);
    color: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: 0 15px 40px rgba(10, 22, 40, 0.4);
}

.encounter h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.encounter p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.flex-reverse {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    min-height: 400px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-orange-bg {
    background-color: #fffdfc;
    border-left: 6px solid var(--primary-orange);
}

.flex-reverse .code-orange-bg {
    border-left: none;
    border-right: 6px solid var(--primary-orange);
}

.code-blue-bg {
    background-color: #fafbfc;
    border-left: 6px solid var(--primary-blue);
}

.service-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.code-orange-bg h3 { color: var(--primary-orange); }
.code-blue-bg h3 { color: var(--primary-blue); }

.service-list {
    margin-top: 25px;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
}
.code-orange-bg .service-list i {
    color: var(--primary-orange);
}

/* Modality Layout */
.modality-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.icon-box {
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.icon-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.icon-box i {
    font-size: 3.5rem;
    color: var(--primary-orange);
    margin-bottom: 25px;
}

.icon-box h4 {
    font-size: 1.4rem;
}

.icon-box p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: #fff;
    padding: 50px 0 30px;
    border-top: 5px solid var(--primary-orange);
}

.social-links {
    margin-bottom: 30px;
}

.social-links p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.6;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* Media Queries */
@media (max-width: 992px) {
    .identity-grid, .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card, .flex-reverse {
        flex-direction: column;
    }

    .flex-reverse .code-orange-bg {
        border-right: none;
        border-left: 6px solid var(--primary-orange);
    }
    
    .service-img {
        min-height: 300px;
    }
    
    .modality-icons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero { min-height: 600px; }
    .main-logo {
        width: 80%;
    }
    .logo-fallback h1 { font-size: 3.5rem; }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: 60px 0;
    }
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 50px; height: 50px; font-size: 25px;
    }
    .service-content {
        padding: 40px 20px;
    }
    .encounter {
        padding: 30px 20px;
    }
}
