/* David Siegler Portfolio - Warm, Handcrafted Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --bg-color: #0f172a;
    --surface-color: rgba(30, 41, 59, 0.85);
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-color: #f97316;
    --accent-light: #fdba74;
    --font-heading: 'Lora', serif;
    --font-body: 'Crimson Pro', serif;
    --transition-smooth: all 0.3s ease-in-out;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: url('assets/aviation_bg_premium.png'); /* Premium aviation blueprint background */
    background-attachment: fixed;
    background-size: cover;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border: 2px solid var(--bg-color);
    border-radius: 5px;
}

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

section {
    padding: 1.5rem 0;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--accent-color);
    /* Removed flashy gradients for a more conservative look */
}

/* Card Style (Replacing Glassmorphism) */
.glass {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 4px 4px 0px var(--border-color);
    transition: var(--transition-smooth);
}

.card {
    padding: 2rem;
    position: relative;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--accent-light);
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

header.scrolled {
    position: fixed;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

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

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

nav a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Hero */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 3rem;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), var(--bg-color)), url('assets/hero_aviation_new.jpg?v=2');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-inline: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Animations - Subtle & Conservative */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Consulting Section Specifics */
#consulting .grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Experience List */
.experience-list .card {
    border-left: 4px solid var(--accent-color);
    padding-left: 2.5rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(166, 93, 58, 0.1);
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* Gallery Styles */
.gallery-section {
    margin-top: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 8px 8px 0px var(--accent-light);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

@media (max-width: 900px) {
    #consulting .grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    nav ul { display: none; }
    section { padding: 4rem 0; }
}
