* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: white;
    --primary-text: black;
    --secondary-text: #3C5EE5;
    --accent-blue: #0088FF;
    --accent-purple: #7C3AED;
    --accent-teal: #0D9488;
    --header-bg: white;
    --header-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    --footer-bg: rgba(0, 0, 0, 0.83);
    --footer-text: white;
    --gradient-bg: linear-gradient(270deg, #80A2ED 0%, #E9F5FF 100%);
    --gradient-blue: linear-gradient(135deg, #0088FF 0%, #3C5EE5 100%);
    --card-bg: white;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --tag-bg: rgba(60, 94, 229, 0.1);
    --tag-text: #3C5EE5;
    --button-primary: #2563EB;
    --button-secondary: transparent;
    --border-color: #2563EB;
    --social-icon-bg: #DFE3E7;
    --dark-mode-bg: #24272C;
    --dark-mode-circle: #E9EAF0;
}

.dark-mode {
    --primary-bg: #121212;
    --primary-text: #E0E0E0;
    --secondary-text: #7C9AFF;
    --accent-blue: #60A5FA;
    --accent-purple: #8B5CF6;
    --accent-teal: #14B8A6;
    --header-bg: #1E1E1E;
    --header-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
    --footer-bg: #0A0A0A;
    --footer-text: #CCCCCC;
    --gradient-bg: linear-gradient(270deg, #4A6BC2 0%, #1A365D 100%);
    --gradient-blue: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --card-bg: #1E293B;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --tag-bg: rgba(96, 165, 250, 0.1);
    --tag-text: #60A5FA;
    --button-primary: #3B82F6;
    --button-secondary: transparent;
    --border-color: #3B82F6;
    --social-icon-bg: #404040;
    --dark-mode-bg: #F0F0F0;
    --dark-mode-circle: #24272C;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: var(--primary-bg);
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    width: 1044.32px;
    height: 1044.32px;
    right: -350px;
    bottom: -450px;
    transform: rotate(-130deg);
    background: var(--gradient-bg);
    box-shadow: 600px 600px 600px;
    filter: blur(300px);
    z-index: 1;
    opacity: 0.7;
    transition: background 0.3s;
}

/* Header */
.header {
    width: 100%;
    height: 90px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--header-shadow);
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    color: var(--secondary-text);
    font-size: 32px;
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--primary-text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a:hover {
    color: var(--secondary-text);
    background: rgba(60, 94, 229, 0.05);
}

.nav-links a.active {
    color: var(--secondary-text);
    background: rgba(60, 94, 229, 0.1);
}

.nav-links a.active::before {
    width: 80%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--primary-text);
    font-size: 20px;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(60, 94, 229, 0.1);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 1199;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: var(--header-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--primary-text);
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1201;
}

.mobile-close:hover {
    background: rgba(60, 94, 229, 0.1);
}

.mobile-nav a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: left;
    border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(60, 94, 229, 0.1);
    color: var(--secondary-text);
    border-color: rgba(60, 94, 229, 0.2);
}

.dark-mode-toggle {
    width: 56px;
    height: 28px;
    background: var(--dark-mode-bg);
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.dark-mode-slider {
    width: 22px;
    height: 22px;
    background: var(--dark-mode-circle);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--dark-mode-bg);
}

.dark-mode .dark-mode-slider {
    transform: translateX(26px);
}

/* Footer */
.footer {
    width: 100%;
    background: var(--footer-bg);
    padding: 80px 80px 30px;
    position: relative;
    z-index: 5;
    transition: background-color 0.4s;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    color: var(--secondary-text);
    font-size: 32px;
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.footer-description {
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 400px;
    opacity: 0.9;
    transition: color 0.3s;
}

.footer-heading {
    color: var(--footer-text);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.9;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-text);
    opacity: 1;
    padding-left: 25px;
}

.footer-links a:hover::before { 
    opacity: 1; 
}

.social-icons {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--social-icon-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary-text);
    text-decoration: none;
    pointer-events: auto;
}

.social-icon:hover {
    background: var(--gradient-blue);
    transform: translateY(-5px);
    color: white;
}

.social-icon i { 
    font-size: 20px; 
}

.copyright {
    text-align: center;
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 400;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    transition: color 0.3s;
}

/* Toast Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.toast-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.toast-info {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header { 
        padding: 0 40px; 
        height: 80px;
    }
    
    .logo { 
        font-size: 28px; 
    }
    
    .nav-links { 
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .footer { 
        padding: 60px 40px 30px; 
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-description { 
        max-width: 600px; 
        margin: 0 auto;
        font-size: 16px;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header { 
        padding: 0 24px; 
        height: 80px; 
    }
    
    .logo { 
        font-size: 26px; 
    }
    
    .dark-mode-toggle {
        margin-right: 10px;
    }
    
    .footer { 
        padding: 50px 24px 30px; 
    }
    
    .footer-logo { 
        font-size: 26px; 
    }
    
    .footer-description { 
        font-size: 15px; 
        line-height: 1.6; 
    }
    
    .footer-heading { 
        font-size: 18px; 
    }
    
    .footer-links a { 
        font-size: 15px; 
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .copyright { 
        font-size: 13px; 
    }
    
    .background-gradient {
        width: 600px;
        height: 600px;
        right: -200px;
        bottom: -200px;
    }
}

@media (max-width: 576px) {
    .header { 
        padding: 0 20px; 
        height: 70px;
    }
    
    .logo { 
        font-size: 24px; 
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer { 
        padding: 40px 20px 25px; 
    }
    
    .footer-logo { 
        font-size: 24px; 
        margin-bottom: 15px;
    }
    
    .footer-description { 
        font-size: 14px; 
    }
    
    .footer-heading { 
        font-size: 17px; 
        margin-bottom: 20px;
    }
    
    .footer-links { 
        gap: 12px; 
    }
    
    .footer-links a { 
        font-size: 14px; 
        padding-left: 18px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon i {
        font-size: 18px;
    }
    
    .copyright { 
        font-size: 12px; 
        padding-top: 20px;
    }
    
    .mobile-nav {
        width: 260px;
    }
}

@media (max-width: 400px) {
    .header { 
        padding: 0 16px; 
    }
    
    .footer { 
        padding: 35px 16px 20px; 
    }
    
    .background-gradient {
        width: 600px;
        height: 600px;
        right: -300px;
        bottom: -200px;
    }
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 1400px) {
    .footer {
        padding-left: calc((100vw - 1400px) / 2 + 80px);
        padding-right: calc((100vw - 1400px) / 2 + 80px);
    }
}

