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

:root {
    --primary-color: #0A192F;
    --secondary-color: #64FFDA;
    --accent-color: #FF6F61;
    --highlight-color: #F8F9FA;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff8a80);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ff5722, var(--accent-color));
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

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

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--accent-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #1a2a4a);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8), rgba(26, 42, 74, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .highlight {
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color), #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

/* Features Section */
.features-section {
    background: var(--highlight-color);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Login/Register Sections */
.login-section,
.register-section {
    background: var(--white);
}

/* Login Section - Side by Side Layout */
.login-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.login-section .section-content {
    max-width: none;
    margin: 0;
    text-align: left;
}

.login-section .section-content h2 {
    text-align: left;
}

.login-section .section-content p {
    text-align: left;
}

.login-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Register Section - Keep centered */
.register-section .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.register-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.register-images img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    box-sizing: border-box;
}

.register-images img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.login-benefits,
.register-benefits {
    margin: 2rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.login-benefits ul,
.register-benefits ul {
    list-style: none;
    padding: 0;
}

.login-benefits li,
.register-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-light);
}

.login-benefits li::before,
.register-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    background: var(--highlight-color);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Games Section */
.games-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="games-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2364FFDA" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23FF6F61" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%2364FFDA" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23FF6F61" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%2364FFDA" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23games-pattern)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.game-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), rgba(255, 111, 97, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(100, 255, 218, 0.3);
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    padding: 10px;
    box-sizing: border-box;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
}

.game-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.game-card:hover h3::after {
    width: 50px;
}

.game-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.game-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ff8a80);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.game-card-play-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #4dd0e1);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(100, 255, 218, 0.5);
}

.game-card-play-btn::before {
    content: '▶';
    margin-left: 2px;
}

/* Benefits Section */
.benefits-section {
    background: var(--highlight-color);
}

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

.benefit-item {
    text-align: center;
    padding: 2rem;
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
}

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

.testimonial-card {
    background: var(--highlight-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #1a2a4a);
    color: var(--white);
}

.stats-section .section-title {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0A192F 0%, #1a2a4a 50%, #0A192F 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%2364FFDA" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23FF6F61" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%2364FFDA" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23FF6F61" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%2364FFDA" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #64FFDA, #FF6F61);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
    animation: cta-glow 3s ease-in-out infinite alternate;
}

@keyframes cta-glow {
    from { filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 111, 97, 0.5)); }
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, #FF6F61, #ff8a80);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(255, 111, 97, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.cta-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-section .btn-primary:hover::before {
    left: 100%;
}

.cta-section .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 111, 97, 0.6);
    background: linear-gradient(135deg, #ff5722, #FF6F61);
}

.cta-section .btn-outline {
    background: transparent;
    color: #64FFDA;
    border: 3px solid #64FFDA;
    padding: 15px 37px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.cta-section .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #64FFDA;
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-section .btn-outline:hover::before {
    width: 100%;
}

.cta-section .btn-outline:hover {
    color: #0A192F;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.5);
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-feature {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-feature:hover {
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
    border-color: #64FFDA;
}

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

.cta-feature h4 {
    color: #64FFDA;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.cta-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(255, 111, 97, 0.1));
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 15px;
    animation: cta-float 8s ease-in-out infinite;
}

.cta-floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cta-floating-card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.cta-floating-card:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.cta-floating-card:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes cta-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff5722;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 111, 97, 0.3);
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #00ffff;
        --accent-color: #ff0000;
        --text-light: #333333;
    }
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #1a2a4a);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.content-section {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-wrapper h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.content-wrapper h4 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.content-wrapper ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* About page specific styles */
.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.mission, .vision {
    background: var(--highlight-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.values-section {
    margin: 4rem 0;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-section {
    margin: 4rem 0;
}

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

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-color);
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    margin-bottom: 0.5rem;
}

.achievements-section {
    margin: 4rem 0;
    background: var(--highlight-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.achievement-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.achievement-label {
    color: var(--text-light);
    font-weight: 500;
}

.commitment-section {
    margin: 4rem 0;
}

.commitment-list {
    list-style: none;
    padding: 0;
}

.commitment-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 2rem;
}

.commitment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact page specific styles */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

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

.contact-method {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form-section {
    margin: 4rem 0;
    background: var(--highlight-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--accent-color);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.support-topics {
    margin: 4rem 0;
}

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

.topic-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.topic-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.response-times {
    margin: 4rem 0;
    background: var(--highlight-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

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

.response-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.response-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.business-hours {
    margin: 4rem 0;
}

.business-hours ul {
    list-style: none;
    padding: 0;
}

.business-hours li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* FAQ page specific styles */
.faq-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-categories {
    margin: 3rem 0;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--highlight-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-contact {
    text-align: center;
    margin: 4rem 0;
    background: var(--highlight-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.faq-contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* 404 page specific styles */
.error-section {
    padding: 6rem 0;
    text-align: center;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.error-illustration img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-color);
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-suggestions {
    text-align: left;
    margin: 2rem 0;
    background: var(--highlight-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.error-suggestions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.error-suggestions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.popular-pages-section {
    background: var(--highlight-color);
    padding: 4rem 0;
}

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

.page-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.page-card img {
    margin-bottom: 1rem;
}

.page-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.search-section {
    padding: 4rem 0;
    text-align: center;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-input-group input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-input-group button {
    padding: 1rem 1.5rem;
    border: none;
    background: var(--accent-color);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-input-group button:hover {
    background: #ff5722;
}

/* Disclaimer specific styles */
.disclaimer-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.disclaimer-warning h2 {
    color: #856404;
    margin-bottom: 1rem;
}

.disclaimer-warning p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

.disclaimer-footer {
    background: var(--highlight-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    text-align: center;
}

.disclaimer-footer p {
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Screen reader only class */
.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;
}

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