/* ===== ROOT & VARIABLES ===== */
:root {
    --primary-color: #ff0000;
    --primary-dark: #cc0000;
    --primary-light: #ff3333;
    --secondary-color: #f0f0f0;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #ffffff;
    --bg-dark: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

body.dark-mode {
    --text-dark: #ffffff;
    --text-light: #b0b0b0;
    --bg-light: #1a1a1a;
    --bg-dark: #2a2a2a;
    --border-color: #404040;
    --secondary-color: #333;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo-link:hover .logo {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-btn {
    background: none;
    border: 2px solid var(--border-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.theme-btn:hover {
    transform: scale(1.15) rotate(20deg);
    background-color: var(--bg-dark);
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger:hover span {
    background-color: var(--primary-color);
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    text-align: center;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero:hover .subtitle {
    color: var(--text-dark);
}

.downloader-card {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease 0.1s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.downloader-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.15);
    transform: translateY(-5px);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    transform: scale(1.02);
}

.url-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.download-btn {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.35);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.helper-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    animation: fadeIn 0.6s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESULTS SECTION ===== */
.results-section {
    margin: 3rem 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.thumbnail-item {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.thumbnail-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.thumbnail-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--bg-dark);
    transition: all 0.3s ease;
}

.thumbnail-item:hover .thumbnail-preview {
    transform: scale(1.05);
}

.thumbnail-info {
    padding: 1rem;
    text-align: center;
}

.thumbnail-quality {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.download-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.download-link:hover {
    background-color: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.download-link:active {
    transform: scale(0.98);
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    background-color: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    border-left: 4px solid #c33;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(200, 50, 50, 0.2);
}

/* ===== LOADING SPINNER ===== */
.loading {
    text-align: center;
    padding: 2rem;
    animation: slideIn 0.3s ease;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background-color: var(--bg-dark);
    transition: all 0.3s ease;
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    animation: fadeInDown 0.6s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    cursor: pointer;
    animation: slideInUp 0.6s ease;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.1s; }
.feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--bg-light), rgba(255, 0, 0, 0.03));
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(255, 0, 0, 0.3));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.feature-card:hover p {
    color: var(--text-dark);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.how-it-works h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.step::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.step:first-child::before {
    display: none;
}

.step:hover::before {
    opacity: 1;
    height: 50px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.15) rotateZ(10deg);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.step:hover h3 {
    color: var(--primary-color);
    transform: scale(1.1);
}

.step p {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step:hover p {
    color: var(--text-dark);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 1rem;
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
}

.footer-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-section:hover h4 {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom:hover {
    color: var(--text-dark);
}

/* ===== CONTENT PAGES ===== */
.content-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    animation: fadeInDown 0.6s ease;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.content-section h2:hover::before {
    width: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.content-section h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.content-section h3:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.content-section p:hover {
    color: var(--text-dark);
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-section li {
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
    padding-left: 0.5rem;
}

.content-section li:hover {
    color: var(--text-dark);
    transform: translateX(5px);
    padding-left: 1rem;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 700;
    transition: all 0.3s ease;
}

.content-section li:hover strong {
    color: var(--primary-color);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1.2rem 2rem;
    background-color: #4caf50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    font-size: 1rem;
    z-index: 9999;
    animation: slideInRight 0.4s ease, slideOutRight 0.4s ease 3.6s forwards;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 400px;
}

.toast.success {
    background-color: #4caf50;
    border-left: 5px solid #45a049;
}

.toast.error {
    background-color: #f44336;
    border-left: 5px solid #da190b;
}

.toast.info {
    background-color: #2196F3;
    border-left: 5px solid #0b7dda;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@media (max-width: 768px) {
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar {
        z-index: 1000;
    }

    .navbar .container {
        padding: 0.75rem 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    main {
        margin-top: 0;
        scroll-margin-top: 60px;
    }

    .hero {
        padding: 40px 0;
        margin-top: 0;
        scroll-margin-top: 60px;
    }

    /* Add scroll padding to body to account for sticky navbar */
    html {
        scroll-padding-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .theme-btn {
        padding: 0.4rem 0.6rem;
        font-size: 1.2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .content-section h1 {
        font-size: 1.8rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 1rem 15px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .downloader-card {
        padding: 1.5rem;
    }

    .url-input,
    .download-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .features h2,
    .how-it-works h2 {
        font-size: 1.8rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .content-section h1 {
        font-size: 1.8rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}

/* ===== 404 ERROR PAGE ===== */
.error-section {
    padding: 100px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 100%);
    animation: fadeInDown 0.6s ease;
}

.error-container {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease 0.1s both;
}

.error-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    animation: slideInUp 0.6s ease 0.2s both;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease 0.3s both;
}

.error-suggestions {
    margin: 2rem 0;
    animation: slideInUp 0.6s ease 0.4s both;
}

.error-suggestions p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.error-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.error-link-btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.error-link-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.error-illustration {
    margin-top: 2rem;
    animation: slideInUp 0.6s ease 0.5s both;
}

/* ===== CONTACT PAGE ===== */
.section-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease 0.2s both;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-form-section,
.contact-info-section {
    animation: slideInUp 0.6s ease;
}

.contact-form-section {
    animation-delay: 0.1s;
}

.contact-info-section {
    animation-delay: 0.2s;
}

.contact-form {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group:hover label {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    transform: scale(1.01);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.35);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.contact-card {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--bg-light), rgba(255, 0, 0, 0.03));
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover h3 {
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-card:hover p {
    color: var(--text-dark);
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.inline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.inline-link:hover {
    color: var(--primary-dark);
}

.inline-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.15) rotate(10deg);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.faq-section {
    background-color: var(--bg-dark);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.faq-section h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    animation: slideInLeft 0.6s ease;
}

.faq-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    animation: slideInUp 0.6s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-left-width: 8px;
}

.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover h3 {
    color: var (--primary-color);
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.faq-item:hover p {
    color: var(--text-dark);
}

/* ===== RESPONSIVE CONTACT PAGE ===== */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-container h1 {
        font-size: 2rem;
    }

    .error-links {
        grid-template-columns: 1fr;
    }

    .error-link-btn {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-info-section {
        order: -1;
    }

    .faq-section {
        padding: 2rem 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 1.5rem 0;
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Prevent scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

/* ===== AD CONTAINERS ===== */
.ad-container {
    padding: 20px;
    margin: 30px 0;
    background-color: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.ad-container ins {
    width: 100% !important;
    display: block !important;
}

.ad-top {
    margin-top: 0;
    border-top: 3px solid var(--primary-color);
}

.ad-middle {
    margin: 40px auto;
    max-width: 100%;
}

.ad-section {
    margin: 40px 0;
}

.ad-footer {
    margin: 40px 0 0 0;
    border-bottom: 3px solid var(--primary-color);
}

/* Ad container hover effect */
.ad-container:hover {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

/* Responsive ad sizing */
@media (max-width: 768px) {
    .ad-container {
        padding: 15px;
        margin: 20px 0;
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .ad-container {
        padding: 10px;
        margin: 15px 0;
        min-height: 70px;
    }
    
    .ad-top,
    .ad-footer {
        border-width: 2px;
    }
}