/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --accent-color: #f4a261;
    --dark-color: #1d3557;
    --light-color: #f1faee;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(244, 162, 97, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(69, 123, 157, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--dark-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #e8935e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

/* ===========================
   Main Content
   =========================== */
.main-content {
    padding: var(--spacing-xl) 0;
}

.article-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl) auto;
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: var(--spacing-xs);
}

.article-content h3 {
    color: var(--secondary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.article-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    background-color: var(--gray-light);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.article-content strong {
    color: var(--dark-color);
    font-weight: 700;
}

/* ===========================
   Features Section
   =========================== */
.features {
    margin-top: var(--spacing-xl);
}

.features h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.page-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-content h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.about-content h3 {
    color: var(--secondary-color);
    margin-top: var(--spacing-md);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.value-card {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.value-card h4 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

/* ===========================
   Team Section
   =========================== */
.team-section {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.team-section h2 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.section-intro {
    color: var(--gray-medium);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.team-member {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-placeholder {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.team-member h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.team-member p {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* ===========================
   Contact Page
   =========================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-form-section,
.contact-info-section {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* ===========================
   Form Styles
   =========================== */
.contact-form {
    margin-top: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: var(--spacing-xs);
    margin-top: 4px;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===========================
   Contact Info Cards
   =========================== */
.contact-info-card {
    background-color: var(--gray-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-info-card:hover {
    background-color: var(--light-color);
    transform: scale(1.02);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info-card h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.contact-info-card p {
    margin-bottom: var(--spacing-xs);
}

.info-description {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    margin-top: var(--spacing-xl);
}

.faq-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.faq-item h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.faq-item p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .article-content {
        padding: var(--spacing-md);
    }
    
    .features-grid,
    .values-grid,
    .team-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .article-content,
    .contact-form-section,
    .contact-info-section,
    .about-content {
        padding: var(--spacing-sm);
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .header,
    .hero,
    .footer,
    .mobile-menu-toggle,
    .btn {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .article-content {
        box-shadow: none;
        padding: 0;
    }
}