:root {
    --primary-color: #4a6984; /* Elegant slate blue */
    --primary-light: #7995ae;
    --secondary-color: #f0f4f8; /* Soft icy cream */
    --text-dark: #2c2c2c;
    --text-light: #5a5a5a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s ease-in-out;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Language Selector */
.lang-selector {
    padding: 0.3rem;
    border-radius: 5px;
    border: 1px solid var(--primary-light);
    background-color: var(--glass-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.lang-selector:hover, .lang-selector:focus {
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 105, 132, 0.3);
}

.btn-primary:hover {
    background-color: #364f66;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 105, 132, 0.4);
}

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

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8ef 100%);
}

.hero-content {
    flex: 1;
    padding-right: 5%;
    animation: fadeUp 1s ease-out forwards;
}

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

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeIn 1.5s ease-in forwards;
}

.hero-image-container {
    position: relative;
    width: 300px;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 8px solid var(--white);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image-container img, .hero-image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections Common */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.showcase-item {
    display: block;
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.showcase-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.showcase-image {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 105, 132, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.showcase-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.showcase-info {
    padding: 1.5rem;
    text-align: center;
}

.showcase-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.showcase-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA */
.cta {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 6rem 5%;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
}

footer .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    nav ul {
        display: none; /* simple mobile fallback */
    }
}

/* Image Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Modal Styles */

.modal-form-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-contact-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-contact-modal:hover,
.close-contact-modal:focus {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

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

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Custom Speech Bubble Tooltip */
.tooltip-trigger {
    position: relative;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 100;
}

.tooltip-trigger::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
}

.tooltip-trigger:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-trigger:hover::before {
    opacity: 1;
    visibility: visible;
}
