* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #8B6F47;
    --secondary-brown: #A0826D;
    --light-beige: #F5F1EB;
    --warm-cream: #E8DDD4;
    --dark-brown: #5C4A37;
    --accent-orange: #D4A574;
    --text-dark: #3A3A3A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow-light: 0 2px 8px rgba(92, 74, 55, 0.1);
    --shadow-medium: 0 4px 16px rgba(92, 74, 55, 0.15);
    --shadow-heavy: 0 8px 24px rgba(92, 74, 55, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--warm-cream) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-brown);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-orange));
    border-radius: 6px;
    position: relative;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.logo h1 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--primary-brown);
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    display: block;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-brown), var(--accent-orange));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav a:hover::before,
.nav a.active::before {
    width: 70%;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-brown);
    background: var(--warm-cream);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.8;
    opacity: 0.95;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-brown);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-brown), var(--accent-orange), var(--primary-brown));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-orange));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: var(--shadow-medium);
    border: 4px solid var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-year:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
}

.timeline-content {
    flex: 1;
    background: var(--light-beige);
    padding: 30px;
    border-radius: 12px;
    margin: 0 40px;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--warm-cream);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: var(--light-beige);
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: var(--light-beige);
    transform: translateY(-50%);
}

.timeline-content h3 {
    color: var(--primary-brown);
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--warm-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-brown), var(--accent-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-orange);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    top: 12px;
    left: 12px;
}

.feature-card:nth-child(2) .feature-icon::before {
    width: 40px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.feature-card:nth-child(2) .feature-icon::after {
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-card:nth-child(3) .feature-icon::before {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
}

.feature-card:nth-child(3) .feature-icon::after {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1px;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-card:nth-child(4) .feature-icon::before {
    width: 48px;
    height: 48px;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,0.1) 4px, rgba(255,255,255,0.1) 8px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(255,255,255,0.1) 4px, rgba(255,255,255,0.1) 8px);
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-card:nth-child(4) .feature-icon::after {
    display: none;
}

.feature-card h3 {
    color: var(--primary-brown);
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    border: 3px solid var(--warm-cream);
    background: var(--warm-cream);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-orange);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 12px;
    background: var(--primary-brown);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 24px;
    font-weight: 700;
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--white);
    color: var(--primary-brown);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-orange);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--white);
    border-color: var(--white);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Content Pages */
.content-page {
    padding: 60px 0;
    min-height: 60vh;
    background: var(--white);
}

.content-page h2 {
    color: var(--primary-brown);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.content-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.content-page h3 {
    color: var(--secondary-brown);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-page p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.content-page ul,
.content-page ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-page li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin: 30px 0;
    border: 3px solid var(--warm-cream);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-grid img {
    margin: 0;
    width: 100%;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-beige);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--warm-cream);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--warm-cream);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

button.btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

#form-message {
    border-radius: 8px;
    font-weight: 500;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    animation: slideDown 0.5s ease-out;
    position: relative;
    border: 2px solid transparent;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-brown);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-toast.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.notification-toast .toast-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.notification-toast .toast-content {
    flex: 1;
}

.notification-toast .toast-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-toast .toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-toast.hiding {
    animation: slideOutRight 0.5s ease-out forwards;
}

@media (max-width: 768px) {
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px 20px;
    }
    
    .notification-toast .toast-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .notification-toast .toast-content {
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer p {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav a {
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--warm-cream);
    }

    .nav a::before {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0.8rem 15px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 60px 0;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
        position: absolute;
        left: 0;
    }

    .timeline-content {
        margin: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        right: auto;
        border-right-color: var(--light-beige);
        border-left-color: transparent;
    }

    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .content-page {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 40px 0;
    }

    .timeline-section,
    .features,
    .gallery-section,
    .cta-section {
        padding: 50px 0;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

