/* Om Modular Araria - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #0066cc;
    --accent-color: #FFD700;
    --white-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --shadow-light: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn_primary {
    background: var(--secondary-color);
    color: var(--white-color);
}

.btn_primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

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

.btn_accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn_accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

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

.section_title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section_title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

/* Forms */
.form_group {
    margin-bottom: 25px;
}

.form_label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form_input,
.form_select,
.form_textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form_input:focus,
.form_select:focus,
.form_textarea:focus {
    border-color: var(--secondary-color);
}

.form_textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert_success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert_error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert_warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert_info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text_center { text-align: center; }
.text_left { text-align: left; }
.text_right { text-align: right; }

.mb_10 { margin-bottom: 10px; }
.mb_20 { margin-bottom: 20px; }
.mb_30 { margin-bottom: 30px; }
.mb_40 { margin-bottom: 40px; }
.mb_50 { margin-bottom: 50px; }

.mt_10 { margin-top: 10px; }
.mt_20 { margin-top: 20px; }
.mt_30 { margin-top: 30px; }
.mt_40 { margin-top: 40px; }
.mt_50 { margin-top: 50px; }

.p_10 { padding: 10px; }
.p_20 { padding: 20px; }
.p_30 { padding: 30px; }
.p_40 { padding: 40px; }
.p_50 { padding: 50px; }

.d_flex { display: flex; }
.d_block { display: block; }
.d_inline { display: inline; }
.d_inline_block { display: inline-block; }
.d_none { display: none; }

.justify_center { justify-content: center; }
.justify_between { justify-content: space-between; }
.justify_around { justify-content: space-around; }

.align_center { align-items: center; }
.align_start { align-items: flex-start; }
.align_end { align-items: flex-end; }

.flex_wrap { flex-wrap: wrap; }
.flex_column { flex-direction: column; }

.w_100 { width: 100%; }
.h_100 { height: 100%; }

.text_primary { color: var(--primary-color); }
.text_secondary { color: var(--secondary-color); }
.text_accent { color: var(--accent-color); }
.text_light { color: var(--text-light); }
.text_white { color: var(--white-color); }

.bg_primary { background: var(--primary-color); }
.bg_secondary { background: var(--secondary-color); }
.bg_accent { background: var(--accent-color); }
.bg_light { background: var(--bg-light); }
.bg_white { background: var(--white-color); }

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .section_title h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section_title h2 {
        font-size: 28px;
    }
    
    .section_title p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .section_title h2 {
        font-size: 24px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    .no-print {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0000ff;
        --text-light: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}