/* CSS Variables for easy theming */
:root {
    --bg-surface: #12100e; /* Dustier dark brown/black for the top */
    --bg-abyss: #05070a; /* Deepest blue/black for the bottom */
    --text-color: #f5f5f5;
    --accent-color: #c19b5e; /* Earth Mother Gold */
    --accent-hover: #e0b675;
    --spirit-glow: rgba(193, 155, 94, 0.4);
}

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    /* The Descent Gradient */
    background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-abyss) 100%);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Typography Updates */
h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fixed header/navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 16, 14, 0.9);
    backdrop-filter: blur(8px); /* Modern frosted glass effect */
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(193, 155, 94, 0.1);
}

.logo {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--spirit-glow);
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: 0.4s;
}

/* Responsive nav toggle */
@media (max-width: 768px) {
  nav ul.menu {
    display: none;
    flex-direction: column;
    background-color: rgba(18, 16, 14, 0.98);
    position: absolute;
    top: 70px;
    right: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(193, 155, 94, 0.2);
  }
  nav ul.menu.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* Navigation links */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--spirit-glow);
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 0 2rem;
    z-index: 1;
}

/* Full-width hero background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/img/hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Darkened to allow text to pop and match the abyss */
    z-index: 0;
}

/* Ash overlay for texture */
.ash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-surface) 100%);
    z-index: 1;
}

/* Background overlay for hero text */
.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(18, 16, 14, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(193, 155, 94, 0.1);
}

.hero h1 {
    font-size: 3rem;
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* About section */
#about {
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    gap: 3rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

#about .about-image,
#about .about-text {
    flex: 1;
}

#about .about-image img {
    border-radius: 8px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 30px var(--spirit-glow); 
}

#about .about-image img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(193, 155, 94, 0.5);
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

#about h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

#about p {
    line-height: 1.7;
    color: #ccc;
}

/* Interactive Feature Cards */
.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #ddd;
}

.feature-list li:hover {
    transform: translateX(10px);
    background: rgba(193, 155, 94, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.feature-list i {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 0.2rem;
    flex-shrink: 0; 
}

.feature-list strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.3rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

/* Demo section */
#demo {
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle, rgba(193, 155, 94, 0.05) 0%, transparent 60%);
}

#demo h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* The Weaver's Thread Button */
.thread-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px var(--spirit-glow);
}

.thread-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-abyss);
    box-shadow: 0 0 30px var(--accent-color);
    transform: translateY(-3px);
}

/* Team section */
#team {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#team h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
    transform: translateY(-10px);
    background-color: rgba(193, 155, 94, 0.05);
    border-color: rgba(193, 155, 94, 0.3);
}

.team-card img {
    border-radius: 50%;
    width: 130px;
    height: 130px;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 3px solid rgba(193, 155, 94, 0.5);
    transition: border-color 0.3s;
}

.team-card:hover img {
    border-color: var(--accent-color);
}

.team-card h3 {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.team-card p {
    font-size: 0.95rem;
    color: #aaa;
}

/* Contact (Footer) section */
footer {
    padding: 3rem 2rem;
    background: rgba(5, 7, 10, 0.9);
    border-top: 1px solid rgba(193, 155, 94, 0.1);
    text-align: center;
}

.social-icons a {
    margin: 0 0.8rem;
    font-size: 1.8rem;
    color: #666;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

footer p {
    color: #555;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #about {
        flex-direction: column;
        padding: 4rem 1.5rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.5rem;
    }
    header {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
}