/* 
 * Inferno45 - 2026 Design System 
 * Theme: "Forged in Fire & Data"
 */

:root {
    /* Color Palette */
    --color-bg-dark: #0a0a0f;
    --color-bg-card: #14141d;
    --color-bg-card-glass: rgba(20, 20, 29, 0.7);

    --color-primary: #FF4500;
    /* Inferno Orange */
    --color-primary-glow: rgba(255, 69, 0, 0.5);
    --color-secondary: #00E5FF;
    /* Cyber Blue */
    --color-secondary-glow: rgba(0, 229, 255, 0.5);

    --color-text-main: #ffffff;
    --color-text-muted: #a0a0b0;
    --color-border: #2a2a35;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 20px var(--color-primary-glow);
    --shadow-glow-secondary: 0 0 20px var(--color-secondary-glow);
    --backdrop-blur: blur(12px);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    margin-top: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: var(--transition-smoth);
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff6b35);
    color: white;
    box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--shadow-glow-secondary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    padding: 0;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: var(--color-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger div {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.15), transparent 70%);
    z-index: -1;
}

/* Use the existing background image but with a dark overlay */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.8), var(--color-bg-dark)), url('inferno45back.webp') no-repeat center/cover;
    z-index: -2;
    filter: brightness(0.6);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(to right, var(--color-secondary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Box/Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-primary);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* About Section Layout */
.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.cols-2 img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 350px;
    background: var(--color-bg-card-glass);
    backdrop-filter: var(--backdrop-blur);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    border: 1px solid var(--color-border);
}

.testimonial-logo {
    height: 90px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    opacity: 1;
    transition: var(--transition-fast);
}

.testimonial-card:hover .testimonial-logo {
    filter: none;
    opacity: 1;
}

/* Contact Section - Premium */
.contact-hero {
    background: linear-gradient(135deg, rgba(20, 20, 29, 0.4), rgba(10, 10, 15, 0.9));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.1), transparent 60%);
    pointer-events: none;
}

.contact-form-wrapper {
    padding: 5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modern Form Styles */
.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--color-secondary);
    /* Changed to secondary for better visibility */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    background-color: transparent !important;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    font-family: var(--font-body);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Input Focus State */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    background: linear-gradient(to right, rgba(255, 69, 0, 0.05), transparent) !important;
}

/* Fix Autocomplete White Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    border-bottom: 2px solid var(--color-primary);
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0f inset;
    /* Match bg color */
    transition: background-color 5000s ease-in-out 0s;
}

/* Placeholder Color */
::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    /* Firefox */
}

/* Footer */
footer {
    background: #050508;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .cols-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-card);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}