:root {
    --light-gray: rgba(235, 235, 235, 0.7);
    --purple: #735D78;
    --pink: #A57982;
    --teal: #588B8B;
    --dark: #011627;
}

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

body {
    font-family: 'Jost', sans-serif;
    background-color: white;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Andada Pro', serif;
    font-weight: 600;
    color: var(--dark);
}

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

.btn {
    display: inline-block;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 12px 30px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.7;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0) scale(1);
}

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

.btn-primary:hover {
    background-color: #634d68;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(115, 93, 120, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-secondary:hover {
    background-color: var(--purple);
    color: white;
    transform: translateY(-2px);
}

/* Header styles */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Andada Pro', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 32px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--teal);
    display: inline-block;
    transition: all 0.3s ease;
}

.logo:hover span {
    transform: translateY(-2px);
    color: var(--purple);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

nav ul li::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--purple);
    transition: width 0.3s ease;
}

nav ul li:hover::after {
    width: 70%;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

nav ul li:hover a {
    color: var(--purple);
    background-color: rgba(115, 93, 120, 0.1);
}

nav ul li:last-child::after {
    display: none;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 1000;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 2px;
    position: relative;
    width: 100%;
    display: block;
}

.dropdown-menu li::after {
    display: none !important;
}

.dropdown-menu li:hover::after {
    display: none !important;
}

.dropdown-menu li {
    margin: 4px 0;
}

.dropdown-menu li:first-child {
    margin-top: 0;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu li a {
    display: block;
    width: calc(100% - 16px);
    padding: 12px 18px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    margin: 0 8px;
    background-color: transparent;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--purple);
    transform: translateX(4px);
}

.dropdown-menu li a:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--purple);
    border-radius: 0 3px 3px 0;
}

.cta-button {
    background: linear-gradient(90deg, var(--purple), var(--teal));
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    margin-left: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(115, 93, 120, 0.2);
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(115, 93, 120, 0.3);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure it's above other elements */
    padding: 10px;
    margin-right: -10px; /* Offset the padding */
    will-change: transform; /* Optimize for animations */
}

/* Replace rotation with a scale effect for hover */
.mobile-menu-btn:hover {
    transform: scale(1.1);
    color: var(--purple);
}

/* Specific styling for active state */
.mobile-menu-btn.active {
    color: var(--teal);
    transform: scale(1);
}

.mobile-menu-btn:focus {
    outline: none;
}

/* Footer styles */
footer {
    background-color: var(--dark);
    color: var(--light-gray);
    padding: 60px 0 30px;
    background-color: #051321;
    border-top: none;
    margin-top: 0;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    font-weight: 600;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #ccc;
}

.footer-col ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    color: #ccc;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--teal);
    color: white;
    padding-left: 5px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul li i {
    width: 20px;
    color: white;
    margin-right: 10px;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.social-links a:hover {
    background-color: var(--teal);
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-col.contact-col ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-col.contact-col ul li i {
    min-width: 20px;
    color: white;
    margin-right: 10px;
}

.footer-col.contact-col ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-col.contact-col ul li a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    color: #ccc;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(235, 235, 235, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        padding: 20px;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        display: flex !important; /* Override any display:none */
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
    }

    nav ul li a {
        width: 100%;
        display: block;
        padding: 12px 15px;
    }

    nav ul li:last-child {
        margin-top: 20px;
    }

    nav ul li a.cta-button {
        margin-left: 0;
        text-align: center;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(115, 93, 120, 0.2);
        background: rgba(248, 249, 250, 0.9);
        border-radius: 6px;
        margin-top: 8px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        list-style: none;
        margin-left: 0;
        margin-right: 0;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px 0;
    }

    .dropdown-menu li {
        margin: 2px 0;
    }

    .dropdown-menu li a {
        padding: 10px 16px;
        font-size: 14px;
        color: var(--dark);
        position: relative;
        margin: 0 4px;
        border-radius: 4px;
        background-color: transparent;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(115, 93, 120, 0.1);
        transform: translateX(2px);
    }

    .dropdown-menu li a:hover::before {
        display: none;
    }

    .dropdown-toggle i {
        margin-left: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Alert styles */
.messages-container {
    padding: 15px;
    margin: 20px auto;
    max-width: 1200px;
    position: fixed;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 80px; /* Position below the fixed header */
    padding-left: 20px;
    padding-right: 20px;
    z-index: 999; /* High z-index to appear above content but below header */
    pointer-events: none; /* Allow clicks to pass through to content below */
}

.messages-container .alert {
    pointer-events: auto; /* Re-enable pointer events for the alerts themselves */
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    animation: slideDown 0.5s ease forwards;
    transform-origin: top;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    background-color: rgba(46, 204, 113, 0.15);
    border-left: 4px solid #2ecc71;
    color: #27ae60;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    background-color: rgba(52, 152, 219, 0.15);
    border-left: 4px solid #3498db;
    color: #2980b9;
}

.close-alert {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-alert:hover {
    opacity: 1;
}

/* Add entrance animation for page content */
main {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    padding-top: 80px; /* Space for fixed header */
    min-height: calc(100vh - 80px);
}

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

/* Footer animations */
.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px);
}
