/* Base Styles */
:root {
    --primary-color: #a30000;
    --primary-dark: #8a0000;
    --primary-light: #c30000;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --animation-duration: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--animation-duration) ease;
    border: none;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 0.5rem;
}

.btn i.fa-arrow-right {
    margin-right: 0;
    margin-left: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-animated {
    position: relative;
    z-index: 1;
}

.btn-animated::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-animated:hover::after {
    left: 100%;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--animation-duration) ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    border-radius: 0.375rem;
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.nav-menu {
    display: none;
}

.nav-link {
    margin: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--animation-duration) ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--animation-duration) ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    padding: 0.75rem 0;
    margin: 0;
}

.mobile-menu .btn {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-text p {
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img.app-screenshot {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 600px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover img.app-screenshot {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    color: var(--gray-600);
}

/* Features Section */
.features {
    background-color: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(163, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: rgba(163, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(163, 0, 0, 0.2);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.feature-card > p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(163, 0, 0, 0.02), rgba(255, 255, 255, 0));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-card:hover::before {
    opacity: 1;
}

.team-image {
    height: 180px;
    width: 180px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.team-card:hover .team-image {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(163, 0, 0, 0.2);
}

.team-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(163, 0, 0, 0) 70%, rgba(163, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card:hover .team-image::after {
    opacity: 1;
}

.team-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-card h3 {
    padding: 0 1rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.team-role {
    padding: 0 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.team-bio {
    padding: 0 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* About Section - Modified to move values to right side */
.about {
    background-color: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* New styles for the about sidebar */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.values-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.values-list li {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.values-list li:hover {
    transform: translateX(5px);
}

.values-list li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.impact-stats {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-stats:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.impact-stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
}

.impact-stat p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.cta h2 {
    margin-bottom: 1.5rem;
    position: relative;
}

.cta > p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    position: relative;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
}

.contact-info {
    margin-top: 4rem;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-card p:last-child {
    opacity: 0.8;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-address {
        grid-column: span 2;
    }
}

/* Footer - Updated with improved social media links */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-about p {
    color: var(--gray-400);
    margin: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--gray-400);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 1rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.newsletter-form button {
    margin-top: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-400);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form button {
        margin-top: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    
    .newsletter-form input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        flex: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-when-visible {
    visibility: hidden;
}

.animate-when-visible.visible {
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Modal Styles for Privacy Policy and Terms of Service */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
    margin: 30px auto;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    border-left: 5px solid var(--primary-color);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: linear-gradient(to right, #ffffff, #f9f9f9);
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-date {
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.policy-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.policy-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
}

/* Show modal when active */
.modal.active {
    display: block;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}