/* global.css - Core styles, Header, Footer, Variables */

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

:root {
    /* Base Colors - Light Mode (Default) */
    --primary: #ff0000;
    --primary-dark: #d30000;
    --accent: #252e3b;
    
    --text-primary: #000000;
    --text-secondary: #626f87;
    
    --bg-light: #ffffff;      /* Main background */
    --bg-subtle: #f9fafb;     /* Section background */
    --bg-card: #ffffff;       /* Card background */
    --bg-dark-footer: #1f2937;
    
    --border: #e5e7eb;
    --success: #2ec15d;
    
    --shadow-color: rgba(0, 0, 0, 0.05);
    --hero-gradient-start: rgba(255, 0, 0, 0.2);
    --hero-gradient-end: rgba(255, 255, 255, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    --bg-light: #111827;      /* Main background (Darker) */
    --bg-subtle: #1f2937;     /* Section background */
    --bg-card: #374151;       /* Card background */
    --bg-dark-footer: #0f172a;
    
    --border: #374151;
    
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hero-gradient-start: rgba(127, 29, 29, 0.4); /* Darker Red */
    --hero-gradient-end: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container for nav items + toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 0.8rem;
    width: auto;
}

/* The container for the logo */
.logo-main {
    height: 2.5rem; /* Increased from 1rem. Adjust this number (e.g. 3rem) to make it larger */
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Ensure the image fits strictly within the height defined above */
.logo-main img {
    height: 100%;
    width: auto;
    object-fit: contain; /* Prevents the logo from looking squished */
    display: block;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    
    /* Font settings for the Emoji */
    font-size: 1.5rem; 
    line-height: 1;
}

.theme-toggle:hover {
    background: var(--bg-subtle);
    color: var(--primary); /* Optional: Highlight on hover */
}

/* --- Shared Buttons --- */
.cta-button {
    background: var(--primary);
    color: white;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    padding: 0.8rem 1.5rem;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background: var(--bg-dark-footer);
    color: #d1d5db;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}