/* ============================================
   BASE STYLES - Core application styling
   ============================================ */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4338ca;
    --color-secondary: #f8fafc;
    --color-accent: #ec4899;
    --color-accent-light: #f9a8d4;
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-white: #ffffff;
    --color-gray-light: #e2e8f0;
    --color-black: #0f172a;
    --color-gold: #f59e0b;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --header-height: 90px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --color-muted: #374151;
    --color-footer-text: #d1d5db;
    --color-footer-muted: #9ca3af;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text) !important;
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--color-primary) !important;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 14px 28px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-secondary-custom {
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 12px 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-secondary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary-custom:hover {
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

.btn-secondary-custom:hover::before {
    left: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(245, 158, 11, 0.1) 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--color-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-button {
    text-decoration: none;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-weight: 700;
    padding: 18px 36px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.hero-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    color: var(--color-white);
}

.hero-button:hover::before {
    left: 100%;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 80px 0;
    position: relative;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--color-black) 0%, #1e293b 100%);
    color: var(--color-footer-text);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.footer-section h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-size: 1.3rem;
}

.footer-link {
    text-decoration: none;
    color: var(--color-footer-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-muted {
    color: var(--color-muted) !important;
}

footer .text-muted {
    color: var(--color-footer-muted) !important;
}

.lead {
    color: var(--color-muted) !important;
}

.navbar-toggler {
    border: 1px solid var(--color-text) !important;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

html {
    scroll-behavior: smooth;
}

a:focus,
button:focus,
.btn:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .navbar-collapse {
        margin-top: 1rem;
        background: var(--color-white);
        border-radius: var(--border-radius);
        padding: 1rem;
        box-shadow: var(--box-shadow);
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 60px 0;
    }

    footer {
        padding: 60px 0 30px;
    }
}
