/* Base CSS para todas las páginas de Josep CC */

/* OPTIMIZED IMAGE LOADING */
.optimized-image-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.lazy-image.loaded,
.lazy-image:not([data-src]) {
    opacity: 1;
    background: none;
    animation: none;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Ensure proper sizing for responsive images */
.optimized-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}
:root {
    --primary: #FF6B97;     /* Rosa coral */
    --secondary: #00D9C6;   /* Turquesa brillante */
    --accent: #FFCC33;      /* Amarillo dorado */
    --light: #FFFFFF;       /* Fondo blanco */
    --light-blue: #F7F0FA;  /* Lavanda muy claro */
    --dark: #2D0F45;        /* Púrpura oscuro */
    --medium: #8A4FBD;      /* Púrpura medio */
    --text-dark: #333340;   
    --text-light: #555555;  
    --border-color: rgba(45, 15, 69, 0.15); 
    --code-bg: #1e1e2e; 
    --code-text: #00D9C6; 

    --primary-logo: #FF6B97;
    --secondary-logo: #00D9C6;
    --accent-logo: #8A4FBD; 
    
    /* RGB versions for rgba() usage */
    --primary-rgb: 255, 107, 151;
    --secondary-rgb: 0, 217, 198;
    --light-blue-rgb: 247, 240, 250;
    --dark-rgb: 45, 15, 69;
}

body {
    font-family: 'Nunito', sans-serif; 
    font-size: 18px; 
    margin: 0; 
    padding: 0;
    background-color: var(--light); 
    color: var(--text-dark); 
    line-height: 1.7; 
    background-image: 
        linear-gradient(to bottom, rgba(247, 240, 250, 0.85), rgba(255, 255, 255, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238a4fbd' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, .button { 
    font-family: 'Orbitron', sans-serif; 
    letter-spacing: 1px;
    line-height: 1.3; 
    color: var(--dark); 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    overflow-x: clip;
    width: 100%;
    box-sizing: border-box;
}

.article-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.ranking-page-article-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Header Style */
.header {
    background-color: var(--light); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(45, 15, 69, 0.15);
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
}

.header::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%; 
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

.logo-icon-container { 
    width: 40px; 
    height: 40px; 
    position: relative; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-right: 12px; 
}

.logo .wave { 
    position: absolute; 
    border-radius: 50%; 
    border: 2px solid transparent; 
    animation: pulse 1.5s infinite alternate; 
}

.logo .wave-1 { 
    width: 100%; 
    height: 100%; 
    border-top-color: var(--primary-logo); 
    border-left-color: var(--primary-logo); 
    box-shadow: 0 0 10px rgba(255, 107, 151, 0.2); 
}

.logo .wave-2 { 
    width: 70%; 
    height: 70%; 
    top: 15%; 
    left: 15%; 
    border-right-color: var(--secondary-logo); 
    border-bottom-color: var(--secondary-logo); 
    animation-delay: 0.5s; 
    box-shadow: 0 0 10px rgba(0, 217, 198, 0.2); 
}

.logo .wave-3 { 
    width: 40%; 
    height: 40%; 
    top: 30%; 
    left: 30%; 
    border-color: var(--accent-logo); 
    animation-delay: 1s; 
    box-shadow: 0 0 10px rgba(138, 79, 189, 0.2); 
}

@keyframes pulse { 
    from { transform: scale(0.95); opacity: 0.7; } 
    to { transform: scale(1.05); opacity: 1; } 
}

.logo-text { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 22px; 
    font-weight: bold; 
    color: var(--dark); 
    position: relative; 
    text-shadow: 2px 2px 0px rgba(255, 107, 151, 0.1); 
}

.logo-text span { 
    color: var(--primary-logo); 
    position: relative; 
}

.logo-text span::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: -2px;
    width: 100%; 
    height: 2px; 
    background: linear-gradient(to right, var(--primary-logo), var(--secondary-logo));
}

.nav { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.nav-item {
    color: var(--dark); 
    text-decoration: none; 
    font-size: 16px; 
    font-weight: 500;
    font-family: 'Orbitron', sans-serif; 
    position: relative; 
    padding: 5px 0; 
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active { 
    color: var(--primary); 
    text-shadow: 0 0 5px rgba(255, 107, 151, 0.4); 
}

.nav-item::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 100%; 
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.3s;
}

.nav-item:not(.dropdown-toggle):hover::after, .nav-item.active::after { 
    transform: scaleX(1); 
    box-shadow: 0 0 8px rgba(0, 217, 198, 0.5); 
}

/* Search Bar Styles - Exact from Original Design */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid rgba(138, 79, 189, 0.3);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    background-color: rgba(255,255,255,0.8);
    color: var(--dark);
    width: 150px;
    height: 36px;
    box-sizing: border-box;
    transition: width 0.3s ease, border-color 0.3s ease;
}

.search-input::placeholder {
    color: var(--medium);
    opacity: 0.7;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--light);
    width: 200px;
}

.search-button {
    padding: 8px 10px;
    border: none;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--secondary);
}

.search-button svg {
    stroke: var(--light);
}

/* Dropdown Menu Styles - Exact from Original Design */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
}

.dropdown-toggle:hover {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(255, 107, 151, 0.4);
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(45,15,69,0.15);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    margin: 5px 0 0 0;
    z-index: 100;
    border: 1px solid rgba(138, 79, 189, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s, transform 0.2s ease;
}

.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown.open > .dropdown-menu,
.nav-item.dropdown > .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s;
}

.dropdown-menu li.dropdown:hover > .dropdown-menu,
.dropdown-menu li.dropdown.open > .dropdown-menu,
.dropdown-menu li.dropdown > .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s;
}

.dropdown-menu.level-2, .dropdown-menu.level-3 {
    top: -11px;
    left: 100%;
    margin-left: 1px;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-blue);
    color: var(--primary);
}

.dropdown-item.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nested-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover > .dropdown-toggle .dropdown-arrow,
.nav-item.dropdown.open > .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li.dropdown:hover > .dropdown-item.dropdown-toggle .nested-arrow,
.dropdown-menu li.dropdown.open > .dropdown-item.dropdown-toggle .nested-arrow {
    transform: rotate(90deg);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for newer browsers */
    background: rgba(45, 15, 69, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure no horizontal overflow and proper viewport handling */
html {
    overflow-x: clip;
    max-width: 100vw;
    height: 100%;
}

body {
    overflow-x: clip;
    max-width: 100vw;
    min-height: 100vh;
    height: auto;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile-specific viewport and overflow fixes */
@media (max-width: 768px) {
    html {
        height: 100%;
        overflow-x: clip;
    }
    
    body {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for newer browsers */
        overflow-x: clip;
        position: relative;
    }
    
    .container {
        overflow-x: clip;
        max-width: 100vw;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for newer browsers */
        max-height: 100vh;
        max-height: 100dvh;
        background: linear-gradient(135deg, var(--light) 0%, rgba(247, 240, 250, 0.95) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        z-index: 1001;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(45, 15, 69, 0.1);
        overflow-y: auto;
        max-width: 300px;
        box-sizing: border-box;
    }
    
    .nav.mobile-open {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(138, 79, 189, 0.1);
        font-size: 18px;
        color: var(--dark);
        transition: all 0.3s ease;
    }
    
    .nav-item:hover {
        color: var(--primary);
        padding-left: 10px;
        background: rgba(255, 107, 151, 0.05);
        border-radius: 8px;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .nav-search {
        width: 100%;
        margin: 20px 0 0 0;
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 16px;
        border: 2px solid rgba(138, 79, 189, 0.2);
    }
    
    .search-button {
        width: 100%;
        border-radius: 8px;
        padding: 12px;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        color: var(--light);
        font-weight: bold;
    }
    
    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(247, 240, 250, 0.5);
        border: none;
        border-radius: 8px;
        margin: 10px 0;
        padding: 10px;
        box-shadow: inset 0 2px 8px rgba(138, 79, 189, 0.1);
    }
    
    .dropdown-menu .dropdown-item {
        padding: 10px 15px;
        border-radius: 6px;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu .dropdown-item:hover {
        background: rgba(255, 107, 151, 0.1);
        color: var(--primary);
    }
    
    /* Show dropdown on click for mobile */
    .nav-item.dropdown:hover > .dropdown-menu,
    .nav-item.dropdown.open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: static;
    }
}

/* Button Style */
.button { 
    display: inline-block; 
    background-color: var(--primary); 
    color: var(--light); 
    padding: 12px 28px;
    text-decoration: none; 
    border: none; 
    border-radius: 4px; 
    font-size: 16px; 
    font-weight: bold;
    transition: all 0.3s; 
    position: relative; 
    overflow: hidden; 
    z-index: 1;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.2); 
    text-shadow: 0 0 5px rgba(255, 107, 151, 0.5); 
    letter-spacing: 1px;
}

.button::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--primary)); 
    transition: left 0.3s; 
    z-index: -1;
}

.button:hover { 
    transform: translateY(-3px); 
    box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.2), 0 0 15px rgba(255, 107, 151, 0.4); 
}

.button:hover::after { 
    left: 0; 
    opacity: 1; 
}

.button:active { 
    transform: translateY(0); 
    box-shadow: rgba(45, 15, 69, 0.2) 2px 2px 0px; 
}

.button.secondary { 
    background-color: transparent; 
    color: var(--dark); 
    border: 2px solid var(--primary); 
    text-shadow: none; 
}

.button.secondary:hover { 
    color: var(--light); 
    text-shadow: 0 0 5px rgba(255, 107, 151, 0.5); 
}

/* Footer Style */
.footer {
    background-color: var(--light-blue); 
    padding: 80px 0 30px;
    position: relative; 
    overflow: hidden;
}

.footer::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%; 
    animation: gradient-shift 5s ease infinite;
}

.footer::after { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    background-image: 
        linear-gradient(to bottom, rgba(247, 240, 250, 0.95), rgba(247, 240, 250, 0.98)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B97' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.footer-content { 
    position: relative; 
    z-index: 1; 
}

.footer-grid {
    display: grid; 
    grid-template-columns: 1.5fr repeat(2, 1fr); 
    gap: 30px; 
    margin-bottom: 40px;
}

.footer-logo {
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; 
    text-decoration: none;
}

.footer-logo .logo-icon-container { 
    width: 30px; 
    height: 30px; 
    margin-right: 10px; 
}

.footer-logo .logo-text { 
    font-size: 18px; 
}

.footer-about { 
    margin-bottom: 20px; 
    color: var(--dark); 
    font-size: 16px; 
}

.footer-social { 
    display: flex; 
    gap: 15px; 
}

.footer-social .social-icon { 
    color: var(--dark); 
    width: 38px; 
    height: 38px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background: var(--light); 
    border-radius: 6px; 
    text-decoration: none; 
    transition: all 0.3s; 
    box-shadow: 2px 2px 0 rgba(45, 15, 69, 0.1); 
} 

.footer-social .social-icon:hover { 
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--light); 
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 5px 5px 0 rgba(45, 15, 69, 0.15);
}

.footer-heading {
    font-family: 'Orbitron', sans-serif; 
    font-size: 18px; 
    font-weight: bold;
    margin-bottom: 25px; 
    color: var(--dark); 
    position: relative; 
    display: inline-block;
}

.footer-heading::after {
    content: ''; 
    position: absolute; 
    width: 30px; 
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -8px; 
    left: 0;
}

.footer-links { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.footer-link {
    color: var(--dark); 
    text-decoration: none; 
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif; 
    font-size: 15px; 
    font-weight: 500;
    position: relative; 
    padding-left: 15px;
}

.footer-link::before {
    content: '>'; 
    position: absolute; 
    left: 0; 
    top: 0; 
    color: var(--primary);
    font-family: 'VT323', monospace; 
    font-size: 18px; 
    opacity: 0.7; 
    transition: all 0.3s;
}

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

.footer-link:hover::before { 
    color: var(--secondary); 
    transform: translateX(3px); 
}

.footer-bottom {
    border-top: 1px solid rgba(45, 15, 69, 0.1); 
    padding-top: 25px;
    text-align: center; 
    color: var(--medium); 
    font-size: 14px;
    position: relative; 
    z-index: 1;
}

/* Responsive - Header adjustments for mobile */
@media (max-width: 768px) { 
    .header-content { 
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide desktop nav elements on mobile - handled by hamburger menu */
    .nav {
        /* Mobile nav styles already defined above in Mobile Menu Styles */
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .footer-logo, .footer-social { 
        justify-content: center; 
    }
    
    .footer-heading::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }
    
    .footer-links { 
        align-items: center; 
    }
    
    .footer-link::before { 
        display: none; 
    } 
    
    .footer-link { 
        padding-left: 0; 
    }
}

/* ==========================================
   HOMEPAGE SPECIFIC STYLES
   ========================================== */

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    background: var(--light-blue);
    background-image: linear-gradient(135deg, 
                       rgba(255, 107, 151, 0.1), 
                       rgba(138, 79, 189, 0.05), 
                       rgba(0, 217, 198, 0.1));
    max-height: none;
    box-sizing: border-box;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.retro-grid { 
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(var(--secondary) 1px, transparent 1px),
        linear-gradient(90deg, var(--secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 1; 
    pointer-events: none;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) scale(1.5) translateZ(-50px);
}

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

.hero-pretitle {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--light);
    padding: 6px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    border-radius: 4px;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.2);
}

.hero-title {
    font-size: 42px;
    margin: 0 0 20px;
    line-height: 1.2;
    color: var(--dark);
    text-shadow: 4px 4px 0 rgba(45, 15, 69, 0.1);
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    box-shadow: 0 0 10px rgba(0, 217, 198, 0.5);
}

.hero-description {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 40px;
    max-width: 90%;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

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

.hero-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 10px 10px 0 rgba(45, 15, 69, 0.15), 0 0 20px rgba(0, 217, 198, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transform: rotate(-2deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(110%) saturate(120%);
}

/* Features Section */
.features {
    padding: 80px 0 120px 0;
    background-color: var(--light);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--medium);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--light);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.08), 0 0 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 10px 10px 0 rgba(45, 15, 69, 0.08), 0 0 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 107, 151, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
    color: var(--primary);
    transition: all 0.3s;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.feature-icon svg { 
    width: 40px; 
    height: 40px; 
} 

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--secondary);
    background-color: rgba(0, 217, 198, 0.1);
}

.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -5px;
    left: 0;
}

.feature-text {
    color: var(--dark);
    margin-bottom: 25px;
}

.feature-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

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

.feature-link:hover::after {
    transform: scaleX(1);
    box-shadow: 0 0 5px rgba(0, 217, 198, 0.5);
}

/* Author Section */
.author-section {
  padding: 100px 0;
  position: relative;
  background: var(--light-blue); 
  overflow: hidden;
}

.author-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.author-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.author-image-container {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-image {
  width: 320px;
  height: 320px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 15px 15px 0 rgba(45, 15, 69, 0.15);
  background: white; 
  transform: rotate(-3deg);
  border: 1px solid rgba(255, 107, 151, 0.2);
  transition: all 0.5s;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-image:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 20px 20px 0 rgba(45, 15, 69, 0.1);
}

.author-social {
  display: flex;
  margin-top: 25px;
  gap: 15px;
}

.author-social .social-icon { 
    width: 45px; 
    height: 45px;
    background-color: var(--light);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 rgba(45, 15, 69, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 151, 0.1); 
}

.author-social .social-icon svg { 
    position: relative;
    z-index: 1;
    width: 22px; 
    height: 22px;
}

.author-social .social-icon:hover {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--light);
    transform: translateY(-5px) rotate(5deg); 
    box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.15);
}

.author-info {
  flex: 1;
}

.author-pretitle { 
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--light);
    padding: 6px 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    border-radius: 4px;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.2);
}

.author-name { 
  font-size: 42px;
  margin: 0 0 10px;
  line-height: 1.2;
  color: var(--dark);
  font-family: 'Orbitron', sans-serif;
  position: relative;
  display: inline-block; 
}

.author-name::after { 
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  box-shadow: 0 0 10px rgba(0, 217, 198, 0.5);
}

.author-title-text {
  font-size: 18px;
  color: var(--medium);
  margin-bottom: 30px;
  font-style: italic;
}

.author-bio {
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.author-stats {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  font-family: 'Orbitron', sans-serif;
}

.stat-label {
  font-size: 14px;
  color: var(--medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  position: relative;
  padding: 10px 0;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

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

.contact-link:hover::after {
  transform: scaleX(1);
  box-shadow: 0 0 5px rgba(0, 217, 198, 0.5);
}

/* Blog Section Preview */
.blog-section-preview {
    padding: 80px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.blog-section-preview::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFCC33' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4; 
    z-index: -1; 
}

.blog-section-preview .section-header .section-title::after {
     width: 100px; 
     bottom: -10px; 
     left: 50%;
     transform: translateX(-50%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px; 
}

.blog-card {
  background-color: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.08), 0 0 20px rgba(0, 0, 0, 0.05); 
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.8); 
  position: relative;
  height: 100%; 
  display: flex; 
  flex-direction: column; 
}

.blog-card:hover {
  transform: translateY(-10px) rotate(1deg); 
  box-shadow: 10px 10px 0 rgba(45, 15, 69, 0.08), 0 0 25px rgba(0, 0, 0, 0.1); 
}

.blog-card-image {
  position: relative;
  height: 200px; 
  overflow: hidden;
}

.blog-card-image .image-placeholder { 
  width: 100%;
  height: 100%;
  background-color: var(--light-blue); 
}

.blog-card-image .image-overlay { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(45, 15, 69, 0.1), transparent);
  z-index: 1;
}

.blog-category { 
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--light);
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 3px 3px 0 rgba(45, 15, 69, 0.15);
}

.blog-card-content { 
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date { 
  color: var(--medium);
  font-size: 14px;
  margin-bottom: 10px;
  font-family: 'VT323', monospace; 
  letter-spacing: 1px;
}

.blog-title { 
  color: var(--dark);
  font-size: 18px; 
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 10px;
  line-height: 1.4;
  position: relative;
  display: inline-block; 
}

.blog-card:hover .blog-title { 
  color: var(--primary);
}

.blog-excerpt { 
  color: var(--dark);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1; 
}

.blog-link { 
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  transition: all 0.3s;
  letter-spacing: 1px;
  align-self: flex-start; 
}

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

.blog-view-more { 
  text-align: center;
  margin-top: 30px;
}

.view-more-link { 
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s;
  position: relative;
  letter-spacing: 1px;
  padding-bottom: 3px;
}

.view-more-link::after { 
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.view-more-link:hover { 
  color: var(--secondary);
}

.view-more-link:hover::after { 
  transform: scaleX(1);
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: var(--light);
    position: relative;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.1), 0 0 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 40px;
}

.newsletter-title {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
    text-shadow: 4px 4px 0 rgba(45, 15, 69, 0.1);
    font-family: 'Orbitron', sans-serif;
}

.newsletter-subtitle {
    color: var(--medium);
    font-size: 18px;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 0;
}

.newsletter-form-standalone {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(138, 79, 189, 0.2);
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
    color: var(--dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 107, 151, 0.2);
    background-color: white;
}

.form-input::placeholder {
    color: var(--medium);
    opacity: 0.7;
}

.envelope-icon, .user-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}

.checkbox-container {
    margin: 10px 0;
    text-align: left;
    line-height: 1.5;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 24px;
    width: 24px;
    top: 1px;
    left: 0;
}

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(138, 79, 189, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
}

.custom-checkbox:hover .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: var(--dark);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 18px 20px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary);
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.2);
    text-shadow: 0 0 5px rgba(255, 107, 151, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transition: left 0.3s;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.2), 0 0 15px rgba(255, 107, 151, 0.4);
}

.submit-btn:hover::after {
    left: 0;
    opacity: 1;
}

.loading-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    animation: spin 1s linear infinite;
}

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

.submit-btn.loading .loading-icon {
    display: block;
}

.submit-btn.loading .button-text {
    opacity: 0.7;
}

.privacy-note {
    font-size: 14px;
    color: var(--medium);
    margin-top: 10px;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
}

.success-message {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 217, 198, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 198, 0.3);
}

.success-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.success-message h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 24px;
}

.success-message p {
    color: var(--medium);
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-blue);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.testimonials-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B97' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    background-color: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.1);
    text-align: center;
    position: relative;
    display: none;
    z-index: 2;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    position: relative;
    border: 3px solid var(--light-blue);
    box-shadow: 0 0 0 2px rgba(255, 107, 151, 0.3);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-text {
    background-color: var(--light-blue);
    padding: 25px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 25px;
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: rgba(138, 79, 189, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(45, 15, 69, 0.1);
    padding-top: 20px;
}

.testimonial-name, .author-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.testimonial-position, .author-role {
    color: var(--medium);
    margin-bottom: 10px;
    font-size: 15px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.1);
    z-index: 10;
    transition: all 0.3s;
    border: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

.slider-nav:hover,
.slider-nav:focus {
    background-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.1);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.slider-nav:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

.slider-nav svg {
    stroke-width: 2;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 rgba(45, 15, 69, 0.2);
}

.slider-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(45, 15, 69, 0.2);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slider-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(138, 79, 189, 0.2);
    transition: all 0.3s;
}

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

.slider-dot:hover::before,
.slider-dot:focus::before {
    background-color: var(--primary);
    opacity: 0.7;
}

.slider-dot:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 250, 0.95));
}

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

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(45, 15, 69, 0.1), 0 0 20px rgba(0, 0, 0, 0.05);
    background-color: var(--light);
    overflow: hidden;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.faq-item:nth-child(odd) {
    border-left-color: var(--primary);
}

.faq-item:nth-child(even) {
    border-left-color: var(--secondary);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 6px 6px 0 rgba(45, 15, 69, 0.1), 0 0 25px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 20px 25px;
    background-color: rgba(247, 240, 250, 0.5);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: var(--dark);
}

.faq-item:hover .faq-question {
    background-color: rgba(247, 240, 250, 0.8);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    color: var(--light);
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 2px 2px 0 rgba(45, 15, 69, 0.2);
    flex-shrink: 0;
}

.faq-toggle::before {
    content: '+';
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: linear-gradient(to right, var(--secondary), var(--primary));
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    border-top: 1px solid rgba(138, 79, 189, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 20px 25px;
    color: var(--dark);
    line-height: 1.6;
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
        overflow-x: clip;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .author-image-container {
        flex: none;
    }
    
    .author-image {
        width: 250px;
        height: 250px;
    }
    
    .author-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-container {
        padding: 30px 20px;
    }
    
    .newsletter-title {
        font-size: 26px;
    }
    
    .newsletter-subtitle {
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 15px 18px;
        font-size: 16px;
    }
    
    .newsletter-container {
        padding: 30px 20px;
    }
    
    .newsletter-title {
        font-size: 30px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }
    
    .faq-answer {
        font-size: 15px;
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 18px 20px;
    }
}

/* Footer Dynamic Newsletter Styles */
.footer-dynamic-newsletter {
    transition: all 0.3s ease;
}

.footer-dynamic-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
}

.footer-dynamic-container.expanded {
    max-height: 200px;
    margin-bottom: 10px;
}

.footer-email-input:focus + .footer-dynamic-container,
.footer-email-input.expanded ~ .footer-dynamic-container {
    max-height: 200px;
    margin-bottom: 10px;
}

/* Form validation error styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.field-error {
    animation: fadeIn 0.3s ease;
}