/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #1d5d99;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --background-light: #f7fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #e2e8f0;
    --secondary-color: #cbd5e0;
    --accent-color: #63b3ed;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --background-light: #1a202c;
    --background-white: #2d3748;
    --border-color: #4a5568;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-light);
    font-size: 16px;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ==================== HEADER & NAVIGATION ==================== */
.site-header {
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navigation {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: var(--background-light);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    padding: 0;
}

.theme-toggle:hover {
    background-color: var(--background-light);
    border-color: var(--accent-color);
    transform: rotate(20deg);
}

.theme-toggle svg {
    stroke-width: 2;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Language Toggle Button */
.lang-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--background-white);
    padding: 0;
    font-weight: 600;
    font-size: 0.75rem;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.lang-text {
    letter-spacing: 0.5px;
}

/* ==================== MAIN CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--background-white);
    padding: 4rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 0 0 20px 20px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--background-white);
    box-shadow: 0 0 0 4px var(--accent-color), 
                0 15px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    outline: 2px solid transparent;
    outline-offset: 8px;
}

.profile-picture:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 0 4px var(--accent-color), 
                0 0 30px rgba(49, 130, 206, 0.4),
                0 20px 50px rgba(0, 0, 0, 0.4);
    outline: 2px solid var(--accent-color);
}

.profile-info {
    text-align: center;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.25px;
}

/* ==================== SECTION STYLES ==================== */
section {
    margin-bottom: 4rem;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background-color: var(--background-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 1s ease-out;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.introduction,
.mission-statement {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
    font-weight: 400;
}

.introduction {
    color: var(--text-secondary);
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    padding: 3rem 1rem;
}

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

.service-card {
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.service-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background-color: var(--background-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Get Started Button */
.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--background-white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* Social Media Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--background-white);
    text-decoration: none;
    font-size: 1.75rem;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-md);
    background-color: var(--accent-color);
}

.social-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Old contact link styles - keeping for backwards compatibility but not used */
.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background-color: var(--primary-color);
    color: var(--background-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.link-icon {
    font-size: 1.5rem;
}

.link-text {
    letter-spacing: 0.3px;
}

/* Individual contact link colors */
.contact-link.email {
    background-color: #c53030;
}

.contact-link.email:hover {
    background-color: #9b2c2c;
}

.contact-link.whatsapp {
    background-color: #22c55e;
}

.contact-link.whatsapp:hover {
    background-color: #16a34a;
}

.contact-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-link.instagram:hover {
    opacity: 0.9;
}

.contact-link.twitter {
    background-color: #1d9bf0;
}

.contact-link.twitter:hover {
    background-color: #1a8cd8;
}

.contact-link.vcard {
    background-color: #16a34a;
}

.contact-link.vcard:hover {
    background-color: #15803d;
}

.contact-link.wallet {
    background-color: #ea580c;
}

.contact-link.wallet:hover {
    background-color: #c2410c;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--background-white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.site-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.disclaimer {
    opacity: 0.8;
    font-size: 1rem;
    font-style: italic;
    margin-top: 1rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .navigation {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .name {
        font-size: 2.25rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .profile-picture {
        width: 160px;
        height: 160px;
    }

    .section-heading {
        font-size: 1.875rem;
    }

    .about-section,
    .contact-section {
        padding: 2rem 1.5rem;
    }

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

    .container {
        padding: 1rem;
    }

    .hero-section {
        padding: 3rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.875rem;
    }

    .title {
        font-size: 1rem;
    }

    .profile-picture {
        width: 140px;
        height: 140px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .introduction,
    .mission-statement {
        font-size: 1rem;
        text-align: left;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .social-links {
        gap: 1rem;
    }
}

/* ==================== REDIRECT LOADER ==================== */
.redirect-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.redirect-loader.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .site-header,
    .navigation,
    .contact-links {
        display: none;
    }

    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}
