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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--light);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 1.05rem;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #60a5fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: #0f172a;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
    padding: 1.5rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 2px solid #1e293b;
    width: 100%;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.navbar h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar a {
    color: #ffffff !important;
    transition: all 0.3s ease;
    font-weight: 700;
}

.navbar a:hover {
    color: #93c5fd !important;
    transform: translateY(-2px);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

/* Main */
main {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-light) 0%, #0f172a 100%);
    color: white;
    padding: 6rem 2rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
    border: 1px solid #334155;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

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

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

.hero h1 {
    color: #60a5fa;
    font-size: 2.5rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
    background: none;
    -webkit-text-fill-color: #60a5fa;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    margin: 1rem 0 0 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    text-decoration: none;
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

/* Card Styles */
.card {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #334155;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Contact Info */
.contact-info {
    background: var(--dark-light);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
    border-left: 5px solid #60a5fa;
    border: 2px solid #334155;
    border-left: 5px solid #60a5fa;
}

.contact-info strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.contact-info a {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    max-width: 700px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--light);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #334155;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--dark-light);
    color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    background: var(--dark-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Turnstile */
.cf-turnstile {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

/* Blog Styles */
.posts {
    display: grid;
    gap: 2rem;
}

.post-summary {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.post-summary:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-summary h2 {
    margin-top: 0;
}

.post-summary a {
    font-weight: 600;
    color: var(--primary-light);
}

.meta {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post {
    max-width: 800px;
}

.post h1 {
    margin-top: 0;
}

.post-content {
    line-height: 1.8;
    margin: 2rem 0;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark-light);
    color: white;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #334155;
    margin-top: 4rem;
}

footer p {
    color: #cbd5e1;
    margin: 0;
}

body.light-mode footer {
    background: #e2e8f0;
    border-top-color: #cbd5e1;
}

body.light-mode footer p {
    color: #0f172a;
}

body.light-mode p {
    color: #0f172a !important;
}

body.light-mode .navbar {
    background: #e2e8f0;
}

body.light-mode .navbar a {
    color: #0f172a !important;
    font-weight: 700;
}

body.light-mode .navbar a:hover {
    color: #2563eb !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .navbar ul {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    main {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .contact-form {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .navbar ul {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
}

.back-to-top:active {
    transform: scale(0.95);
}
