/* --- Basic Reset & Defaults --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #82b5e8;
    --secondary-color: #e782e3;
    --dark-text: #333;
    --medium-text: #555;
    --light-text: #888;
    --light-bg: #f9f9f9;
    --border-color: #eee;
    --emphasis-color: #D32F2F;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 { 
    font-size: 4rem; 
    text-transform: uppercase;
    font-weight: lighter;
}

h2 { 
    font-size: 2rem; 
    text-align: center; 
    margin-top: 40px; 
    margin-bottom: 30px;
    color: var(--medium-text);
    font-weight: lighter;
    letter-spacing: 1px;
}

h3 { 
    font-size: 1.5rem; 
}

p { 
    margin-bottom: 1em; 
}

ul { 
    list-style: none; 
}

section {
    padding: 60px 0;
}

/* --- Header --- */
.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 3.8rem;
    font-weight: lighter;
    color: var(--dark-text);
    text-decoration: none;
}

.logo:hover { 
    text-decoration: none; 
}

.logo img {
    height: 150px;
    width: auto;
    margin-right: 10px;
}

.logo-light {
    font-weight: lighter;
    color: var(--medium-text);
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--medium-text);
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav ul li a:hover, .nav ul li a.active {
    color: var(--primary-color);
}

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

.nav ul li a:hover:after, .nav ul li a.active:after {
    width: 100%;
}

.button.book-appointment {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.button.book-appointment:hover {
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav-toggle { 
    display: none; 
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #3a5d83;
    background-image: url('images/stars-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-button {
    display: inline-block;
    color: white;
    background-color: rgba(130, 181, 232, 0.3);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 25px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.hero-button:hover {
    background-color: rgba(130, 181, 232, 0.5);
    text-decoration: none;
}

/* Dropdown for Data Analysis Platform */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: white;
    min-width: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-content a {
    color: var(--medium-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    text-align: left;
    border: 1px solid var(--border-color);
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.service-card h3 {
    margin-bottom: 15px;
    text-align: center;
    color: var(--dark-text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--medium-text);
    margin-bottom: 20px;
    min-height: 100px;
}

.learn-more {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
}

.learn-more:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* --- Philosophy Section --- */
.philosophy {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(to top right, transparent 49.5%, white 50%);
}

.philosophy::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(to bottom right, transparent 49.5%, white 50%);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.philosophy-pillar {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-circle img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.philosophy-pillar h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: normal;
    letter-spacing: 2px;
}

.philosophy-pillar p {
    font-size: 0.95rem;
    color: var(--medium-text);
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    padding-right: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info address {
    font-style: normal;
    margin-top: 30px;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #5a0b8d;
}

/* --- Privacy Policy Content --- */
.privacy-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.privacy-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.privacy-content strong { 
    color: var(--emphasis-color);
}

.privacy-content ol { 
    margin: 20px 0 20px 20px;
    list-style: decimal; 
}

.privacy-content ol li { 
    margin-bottom: 15px; 
}

/* --- Footer --- */
.footer {
    background-color: #f8f8f8;
    color: var(--medium-text);
    padding: 60px 0 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.footer h4 {
    color: var(--dark-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer p { 
    margin-bottom: 10px; 
}

.footer a { 
    color: var(--medium-text);
    transition: color 0.2s ease;
}

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

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-date {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--light-text);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: #f1f1f1;
    font-size: 0.85rem;
}

/* --- Consulting Services Page --- */
.page-hero {
    background-color: #3a5d83;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 10px;
}

.page-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.service-detail {
    padding: 60px 0;
}

.service-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-text);
}

.approach-section,
.services-section,
.principles-section,
.experience-section {
    margin-bottom: 60px;
}

.approach-grid,
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.approach-item,
.principle-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.approach-item h3,
.principle-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-group {
    margin-bottom: 40px;
}

.service-group h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-group ul,
.experience-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 15px;
}

.service-group li,
.experience-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.cta-box {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.cta-box p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#appointment-button-secondary {
    display: inline-block;
}
@media (max-width: 992px) {
    .logo img {
        height: 60px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .service-card p {
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
        background-color: white;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav.active { 
        display: block; 
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav ul li { 
        margin: 10px 0; 
    }

    .mobile-nav-toggle {
        display: block;
        order: 2;
    }
    
    .button.book-appointment {
        margin-left: auto;
        order: 1;
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .hero-links a { 
        display: block; 
        margin: 10px auto; 
        width: fit-content;
    }

    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .service-card p {
        min-height: auto;
    }
    
    .philosophy-pillars {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}