/* 
 * main.css
 * Contains base styles, typography, and layout for the Climbing Giants website
 */

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Base Styles */
body {
    color: var(--light-text);
    line-height: 1.6;
    background-color: var(--body-bg);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(123, 44, 191, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 30%);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 10px var(--glow-secondary);
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--glow-secondary);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--glow-secondary);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--glow-secondary);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Spacing */
section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: var(--navbar-bg);
    box-shadow: 0 0 15px var(--glow-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    text-shadow: 0 0 5px var(--glow-secondary);
}

.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--glow-accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--glow-accent);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--light-text);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

/* About Section */
.about {
    background-color: rgba(18, 4, 88, 0.4);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-light);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

/* Featured Section */
.featured {
    background: var(--gradient-featured);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background: var(--gradient-hero);
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Footer */
footer {
    background: var(--gradient-footer);
    padding: 60px 0 20px;
    border-top: 2px solid var(--secondary-color);
    box-shadow: 0 -5px 20px var(--glow-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted-text);
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--glow-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
