/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Yachasun App Color Palette */
    --primary-color: #512275;      /* Main Purple */
    --secondary-color: #7b1d7c;    /* Secondary Purple */
    --accent-color: #ffcc00;       /* Yellow/Gold */
    --success-color: #10b981;      /* Green */
    --info-color: #06b6d4;         /* Cyan */
    --warning-color: #f59e0b;      /* Orange */
    --danger-color: #ef4444;       /* Red */
    
    /* Neutral Colors */
    --dark-color: #1a0b2e;         /* Dark Purple */
    --text-color: #2d1b69;         /* Dark Purple Text */
    --light-text: #6b7280;         /* Light Text */
    --background: #ffffff;         /* White */
    --section-bg: #faf5ff;         /* Light Purple Background */
    --border-color: #e9d5ff;       /* Light Purple Border */
    --shadow: 0 4px 6px -1px rgba(81, 34, 117, 0.1), 0 2px 4px -1px rgba(81, 34, 117, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(81, 34, 117, 0.1), 0 10px 10px -5px rgba(81, 34, 117, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* Custom Bootstrap Color Classes */
.text-purple {
    color: var(--secondary-color) !important;
}

.bg-purple {
    background-color: var(--secondary-color) !important;
}

/* Override Bootstrap primary color */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Add padding for fixed navbar */
}

.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="stars" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="0.8" fill="white" opacity="0.1"/><circle cx="90" cy="90" r="0.3" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

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

.stat-item {
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* App Preview Styles */
.app-preview-container {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: var(--transition);
}

.app-preview-container:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.app-screen {
    width: 280px;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.world-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.world-item.active {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid var(--accent-color);
}

.world-item.coming-soon {
    opacity: 0.7;
}

.world-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon i {
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Custom Button Styles */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    padding: 12px 24px;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Worlds Section */
.worlds-section {
    background: var(--section-bg);
    padding: 120px 0;
}

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

.world-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.world-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.world-item:hover::before {
    transform: scaleX(1);
}

.world-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.world-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.world-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Updated World Cards with Images */
.world-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.world-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.world-visual {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.world-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.world-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.world-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.world-card:hover .world-overlay {
    opacity: 1;
}

.world-overlay i {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.world-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.world-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.world-stats .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Responsive adjustments for world cards */
@media (max-width: 768px) {
    .world-visual {
        height: 150px;
    }
    
    .world-card .p-4 {
        padding: 1.5rem !important;
    }
    
    .world-stats {
        justify-content: center;
    }
    
    .worlds-section {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .world-visual {
        height: 120px;
    }
    
    .world-card .p-4 {
        padding: 1rem !important;
    }
    
    .world-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .world-stats .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .worlds-section {
        padding: 80px 0;
    }
}

/* Enhanced spacing utilities */
.mt-6 {
    margin-top: 4rem !important;
}

.g-5 {
    gap: 3rem !important;
}

/* Worlds Slider Styles */
.worlds-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.worlds-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.world-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.world-slide.active {
    display: block;
}

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

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 2rem;
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Impact Section - Card Style (like "Cómo Funcionan los Mundos") */
.impact-info {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin: 3rem 0;
}

.impact-info h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.impact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.impact-info .col-md-4:hover .impact-icon {
    transform: scale(1.1);
}

.impact-info h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.impact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive Impact Section */
@media (max-width: 768px) {
    .impact-info {
        padding: 2rem !important;
        margin: 2rem 0;
    }
    
    .impact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .impact-info h4 {
        font-size: 2rem;
    }
    
    .impact-info h5 {
        font-size: 1rem;
    }
    
    .impact-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Slider responsive adjustments */
    .worlds-slider-container {
        max-width: 100%;
    }
    
    .slider-nav {
        gap: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .impact-info {
        padding: 1.5rem !important;
    }
    
    .impact-info h3 {
        font-size: 1.3rem;
    }
    
    .impact-info h4 {
        font-size: 1.8rem;
    }
    
    .impact-info h5 {
        font-size: 0.9rem;
    }
    
    .impact-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Slider responsive adjustments */
    .slider-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Worlds Info Section */
.worlds-info {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.worlds-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.worlds-info h3 {
    color: var(--dark-color);
    font-weight: 700;
}

.worlds-info .fa-2x {
    margin-bottom: 1rem;
}

.worlds-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.worlds-info .small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive adjustments for worlds info */
@media (max-width: 768px) {
    .worlds-info .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .worlds-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .worlds-info {
        padding: 1.5rem !important;
    }
    
    .worlds-info .fa-2x {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .worlds-info h5 {
        font-size: 1rem;
    }
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    width: 280px;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-section {
    background: var(--section-bg);
    padding: 120px 0;
}

.contact-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.contact-section .col-lg-5 {
    flex: 0 0 41.666667% !important;
    max-width: 41.666667% !important;
}

.contact-section .col-lg-7 {
    flex: 0 0 58.333333% !important;
    max-width: 58.333333% !important;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
}

/* Media & Recognition Section */
.media-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.media-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="media-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23media-pattern)"/></svg>');
    opacity: 0.3;
}

.media-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.media-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow);
}

.media-card h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.media-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

.media-card .text-dark {
    color: var(--text-color) !important;
}

/* Responsive adjustments for media section */
@media (max-width: 768px) {
    .media-section {
        padding: 80px 0;
    }
    
    .media-card {
        margin-bottom: 1rem;
    }
    
    .media-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .media-section {
        padding: 60px 0;
    }
    
    .media-section h2 {
        font-size: 2rem;
    }
    
    .media-card {
        padding: 1.5rem;
    }
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-control {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
}

footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%) !important;
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

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

footer hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Footer hover effects */
footer .hover-opacity {
    transition: opacity 0.3s ease;
}

footer .hover-opacity:hover {
    opacity: 1 !important;
    color: var(--accent-color) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
    text-decoration: none;
}

.footer-logo-text {
    color: var(--primary-color);
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

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

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

@keyframes float {
    0%, 100% { 
        transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(0px); 
    }
    50% { 
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-10px); 
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px 0; /* More top padding on mobile */
    }
    
    .app-preview-container {
        transform: none;
        margin-top: 2rem;
    }
    
    .app-screen {
        width: 250px;
        height: 450px;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-nav {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile hero improvements */
    .hero-section h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-section .lead {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Mobile stats improvements */
    .hero-stats .row {
        justify-content: center;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px 0; /* Adequate top padding for small mobile */
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .display-6 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .app-screen {
        width: 220px;
        height: 400px;
    }
    
    /* Mobile form improvements */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile feature cards */
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .world-card {
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .app-screen {
        width: 200px;
        height: 360px;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .app-preview-container {
        transform: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Prevents content from being hidden under fixed navbar */
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--section-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Notification styles */
.notification {
    border-radius: 12px;
    font-weight: 500;
}

/* Hover effects for interactive elements */
.navbar-nav .nav-link {
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Enhanced shadows and depth */
.shadow-custom {
    box-shadow: 0 10px 25px -5px rgba(81, 34, 117, 0.1), 0 10px 10px -5px rgba(81, 34, 117, 0.04);
}

.shadow-custom:hover {
    box-shadow: 0 20px 25px -5px rgba(81, 34, 117, 0.1), 0 10px 10px -5px rgba(81, 34, 117, 0.04);
}

/* Minimalist Educational Design */
.feature-card {
    border: 2px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.world-card {
    border: 2px solid transparent;
    transition: var(--transition);
}

.world-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Custom scrollbar with app colors */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--section-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

/* Focus states with app colors */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.navbar-nav .nav-link,
.btn,
.feature-card,
.world-card,
.contact-form {
    transition: var(--transition);
}

/* Hover effects for navigation */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar height and positioning */
.navbar {
    min-height: 80px;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Ensure content doesn't get hidden under navbar */
main {
    padding-top: 80px; /* Match navbar height */
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Form focus effects */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(81, 34, 117, 0.1);
}

/* Responsive adjustments for contact section */
@media (max-width: 991px) {
    .contact-section .col-lg-5,
    .contact-section .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
}

/* Section Headers - Reduced Font Sizes */
.section-header h2,
section h2,
.display-4 {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
}

.section-header h3,
section h3 {
    font-size: 1.5rem !important;
    font-weight: 600;
    line-height: 1.3;
}

/* Hero Section Title */
.hero h1.display-1 {
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.1;
}

/* Download Section Title */
#descargar h2.display-4 {
    font-size: 2.8rem !important;
    font-weight: 700;
    line-height: 1.2;
}

/* Contact Section Title */
#contacto h2.display-4 {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
}

/* Media Section Title */
.media-section h2.display-4 {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
}

/* Worlds Section Title */
#mundos h2.display-4 {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
}

/* Features Section Title */
#caracteristicas h2.display-4 {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 1.2;
}

/* Responsive Font Sizes for Section Titles */
@media (max-width: 768px) {
    .section-header h2,
    section h2,
    .display-4 {
        font-size: 2rem !important;
    }
    
    .section-header h3,
    section h3 {
        font-size: 1.2rem !important;
    }
    
    .hero h1.display-1 {
        font-size: 2.8rem !important;
    }
    
    #descargar h2.display-4,
    #contacto h2.display-4,
    .media-section h2.display-4,
    #mundos h2.display-4,
    #caracteristicas h2.display-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .section-header h2,
    section h2,
    .display-4 {
        font-size: 1.8rem !important;
    }
    
    .section-header h3,
    section h3 {
        font-size: 1rem !important;
    }
    
    .hero h1.display-1 {
        font-size: 2.2rem !important;
    }
    
    #descargar h2.display-4,
    #contacto h2.display-4,
    .media-section h2.display-4,
    #mundos h2.display-4,
    #caracteristicas h2.display-4 {
        font-size: 1.8rem !important;
    }
}
