/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --text-color: #333;
    --light-bg: #f8f5f0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8e0d5 100%);
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #6a3a0f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Cowboy Hat Animation - Coming into focus from above */
.hero-hat {
    position: absolute;
    right: 15%;
    top: 10%;
    transform: translateY(-100%);
    width: 300px;
    height: 300px;
    z-index: 1;
    animation: hat-entrance 2s ease-out forwards;
    filter: blur(10px) brightness(1.5);
    opacity: 0;
}

.hat-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.4));
}

.hat-svg {
    width: 100%;
    height: 100%;
    animation: hat-rotate 3s ease-in-out infinite 2s;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hat-decoration {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 180px;
    height: 25px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: band-expand 0.8s ease-out forwards 1.5s;
}

@keyframes hat-entrance {
    0% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
        filter: blur(20px) brightness(2);
    }
    30% {
        opacity: 0.8;
        filter: blur(15px) brightness(1.8);
    }
    70% {
        transform: translateY(0) scale(1.05);
        filter: blur(5px) brightness(1.3);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1);
        opacity: 1;
    }
}

@keyframes hat-rotate {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes band-expand {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}
/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
}

/* Security Section */
.security {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.security h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.security-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.security-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.security-item p {
    color: #666;
}

/* Documentation Section */
.documentation {
    padding: 5rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.documentation h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.doc-content {
    max-width: 600px;
    margin: 0 auto;
}

.doc-content p {
    margin-bottom: 2rem;
    color: #666;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-hat {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 2rem auto;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    .security-grid {
        grid-template-columns: 1fr;
    }
    .security-grid {
        grid-template-columns: 1fr;
    }
    }
}
