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

:root {
    --bg-primary: #050a14;
    --bg-secondary: #0a1628;
    --bg-tertiary: #0f1f3a;
    --bg-card: linear-gradient(145deg, #0c1a30 0%, #0a1225 100%);
    --text-primary: #e8edf5;
    --text-secondary: #8a9bbf;
    --text-tertiary: #4a5f8a;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --accent-glow: #2563eb;
    --border-color: rgba(59, 130, 246, 0.15);
    --border-hover: rgba(59, 130, 246, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --glow-color: rgba(59, 130, 246, 0.06);
    --card-glow: rgba(59, 130, 246, 0.08);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #a78bfa 100%);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    letter-spacing: 0.5px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(30, 64, 175, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0;
    animation: particleFloat 30s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(15px); }
    100% { transform: translateY(0) translateX(0); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    background: rgba(5, 10, 20, 0.85);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.15em;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav-menu a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    transform: scale(1.05);
    background: var(--bg-secondary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    border-color: var(--border-hover);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Main Content Styles */
.main-content {
    margin-top: 80px;
    padding: 20px 0;
    margin-bottom: 120px;
}

/* Page Template Styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-content h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

.content-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text {
    line-height: 1.6;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.content-text h2 {
    font-size: 1.8em;
    margin: 1.5em 0 0.8em;
}

.content-text p {
    margin-bottom: 1em;
}

/* Footer Styles */
footer {
    padding: 30px 0;
    background: rgba(5, 10, 20, 0.9);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.contact-info {
    font-size: 1.1em;
}

.contact-info h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.contact-info h3 {
    font-size: 1em;
    font-weight: 400;
    color: var(--text-secondary);
}

.copyright {
    font-size: 0.85em;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes borderGlow {
    0%, 100% { border-color: rgba(59, 130, 246, 0.15); }
    50% { border-color: rgba(59, 130, 246, 0.35); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4)); }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* =============================== */
/*    RESPONSIVE FOOTER            */
/* =============================== */

@media (max-width: 768px) {
    .logo {
        font-size: 1.4em;
    }
    .nav-menu {
        gap: 4px;
    }
    .nav-menu a {
        font-size: 1em;
        padding: 6px 8px;
    }
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .contact-info h2 {
        font-size: 1.3em;
    }
}
