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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
    border-radius: 5px;
}

.logo p {
    font-size: 2rem;
    opacity: 0.9;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-2px);
}

nav a:link {
    color: white;
}

nav a.current {
    background-color: rgba(255,255,255,0.3);
    border-color: white;
}

/* Main Content Styles */
main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border-left: 5px solid #fff;
    padding-left: 20px;
    border-radius: 3px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: #e17055;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 3px solid #e17055;
}

.cta-button:hover {
    background-color: transparent;
    border-color: white;
    transform: scale(1.05);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border-bottom: 3px solid white;
    display: inline-block;
    padding-bottom: 10px;
    border-radius: 5px;
}

/* Section Dividers */
.section-divider {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 3rem 0;
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3436;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border-bottom: 2px solid #667eea;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature h3 {
    color: #667eea;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
    border-radius: 3px;
}

/* Two Column Layout */
.two-column {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.column {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.column h3 {
    color: #2d3436;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
    border-radius: 3px;
}

/* List Styles */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.service-list li {
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.nested-list, .nested-numbered {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.nested-list li, .nested-numbered li {
    color: #636e72;
    font-size: 0.9rem;
}

.numbered {
    list-style-type: decimal;
}

.numbered .nested-numbered {
    list-style-type: lower-alpha;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

table caption {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2d3436;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.bordered-table {
    border: 2px solid #667eea;
}

.bordered-table th,
.bordered-table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
}

.borderless-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e3f2fd;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Form Styles */
form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.submit-btn,
.reset-btn {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-right: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.submit-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: white;
}

.reset-btn {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

/* Multimedia Styles */
.multimedia-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 2rem 0;
}

.media-content {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

video,
audio {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer Styles */
footer {
    background: #2d3436;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #74b9ff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #74b9ff;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    /* Header adjustments */
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Hero section adjustments */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        border-left: none;
        border-bottom: 3px solid white;
        padding-left: 0;
        padding-bottom: 10px;
    }
    
    /* Two column layout becomes single column */
    .two-column {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Table responsiveness */
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    /* Form adjustments */
    .radio-group {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Media content stacking */
    .media-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #fff;
        --accent-color: #0000ff;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    nav,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
}

/* Additional utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}
