/* Variables & Reset */
:root {
    /* Modern Humanist Palette */
    --primary: #0F172A; /* Deep Navy */
    --primary-foreground: #F8FAFC;
    --secondary: #F5F5F4; /* Warm Sand */
    --secondary-foreground: #0F172A;
    --accent: #D4AF37; /* Muted Gold */
    --accent-foreground: #0F172A;
    --background: #FAFAF9; /* Warm White */
    --foreground: #0F172A;
    --muted: #F5F5F4;
    --muted-foreground: #64748B;
    
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

/* Typography Helpers */
.text-dark {
    color: var(--foreground);
    opacity: 0.8;
}

.text-accent {
    color: var(--accent);
}

.section-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-subtitle.light {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: #1E293B;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.btn-outline:hover {
    background-color: rgba(245, 245, 244, 0.5);
    border-color: var(--primary);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--secondary), var(--background), var(--background));
    opacity: 0.5;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons i {
    margin-left: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 800px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background-color: var(--secondary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.floating-badge {
    position: absolute;
    bottom: 5rem;
    left: -3rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 20rem;
    animation: float 6s ease-in-out infinite;
}

.floating-badge p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.badge-line {
    height: 4px;
    width: 3rem;
    background-color: var(--accent);
    border-radius: 9999px;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: rgba(245, 245, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    order: 2;
}

.image-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/9;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.image-card .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.1);
    mix-blend-mode: multiply;
}

.decorative-blob {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.about-content {
    order: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

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

.service-card {
    background-color: rgba(245, 245, 244, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background-color: rgba(245, 245, 244, 0.4);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--muted-foreground);
}

.service-card.full-width {
    grid-column: span 3;
    display: flex;
    padding: 0;
    overflow: hidden;
}

.service-image {
    width: 33.333%;
    position: relative;
    min-height: 200px;
}

.service-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(245, 245, 244, 0.2));
}

.service-card.full-width .service-content {
    width: 66.666%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-title-row .icon-box {
    margin-bottom: 0;
}

.service-title-row h3 {
    margin-bottom: 0;
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    background-color: var(--primary);
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}

.pattern-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

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

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.philosophy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.philosophy-item {
    display: flex;
    gap: 1rem;
}

.number-circle {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.philosophy-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.philosophy-item p {
    color: rgba(248, 250, 252, 0.8);
}

.philosophy-image {
    position: relative;
    height: 600px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-multiply {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    mix-blend-mode: multiply;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: rgba(245, 245, 244, 0.3);
}

.contact-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-content {
    padding: 4rem;
}

.contact-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.icon-circle {
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-item .label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

.contact-item a, .contact-item .value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

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

.contact-image {
    position: relative;
    min-height: 400px;
}

.contact-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.6);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.8);
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container, .about-container, .philosophy-container, .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 7rem;
        height: auto;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-image {
        height: 500px;
        order: -1;
    }

    .about-image {
        order: -1;
    }

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

    .service-card.full-width {
        grid-column: span 2;
    }

    .floating-badge {
        left: 1rem;
        bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none; /* Mobile menu implementation would go here */
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .service-card.full-width {
        grid-column: span 1;
        flex-direction: column;
    }

    .service-image {
        width: 100%;
        height: 200px;
    }

    .service-card.full-width .service-content {
        width: 100%;
    }

    .contact-content {
        padding: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.logo-degree {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.logo-slogan {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 0.25rem;
    font-weight: 600;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-foreground);
}

.footer-slogan {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 10;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--muted-foreground);
}

.modal-body h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 1rem;
    color: var(--foreground);
    margin: 1rem 0 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-close i {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive Adjustments for Logo */
@media (max-width: 768px) {
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-degree {
        font-size: 0.875rem;
    }
    
    .logo-slogan {
        font-size: 0.65rem;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background-color: var(--background);
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    position: relative;
    min-height: 350px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateX(20px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-card {
    background-color: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.quote-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--muted-foreground);
    opacity: 0.8;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    background: none;
    border: 1px solid rgba(15, 23, 42, 0.1);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1.25rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .testimonial-track {
        min-height: 450px;
    }
}
