/* ========================
   VARIABLES & RESET
   ======================== */

:root {
    --primary: #0052CC;
    --secondary: #E31B23;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --text: #555555;
    --border: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* ========================
   LAYOUT
   ======================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 3rem;
}

/* ========================
   BUTTONS
   ======================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary); /* CTA buttons use brand red */
    color: var(--white);
}

.btn-primary:hover {
    background-color: #C2171E; /* slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227,27,35,0.18);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Nav CTA: make the Create Account link stand out as a pill button */
.nav-link.btn-primary {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 6px 18px rgba(227,27,35,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227,27,35,0.18);
}

/* Hero CTA small variant for inline use */
.hero .btn-primary {
    border-radius: 28px;
    padding: 12px 26px;
}

/* Create Account page specific styling */
.create-account {
    display: flex;
    justify-content: center;
}
.create-account .contact-form {
    width: 100%;
    max-width: 720px;
    background: linear-gradient(180deg, rgba(0,82,204,0.04), rgba(0,0,0,0));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Improve form group layout on wider screens */
.create-account .form-group {
    margin-bottom: 0.75rem;
}
.create-account fieldset {
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.create-account legend {
    padding: 0 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

/* File input: friendlier appearance */
.create-account input[type="file"] {
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #fff;
}
.create-account input[type="file"]::file-selector-button {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    margin-right: 8px;
}

/* Helpful hint text */
.create-account .hint {
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 0.25rem;
}

/* Centered message look on the create page */
.create-account .message {
    text-align: center;
}

/* Responsive tweaks for the create page */
@media (max-width: 768px) {
    .create-account .contact-form {
        padding: 20px;
        border-radius: 8px;
        box-shadow: none;
    }
    .nav-link.btn-primary {
        display: inline-block;
        padding: 8px 12px;
        border-radius: 20px;
    }
}

/* ========================
   NAVIGATION BAR
   ======================== */

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand h1 {
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-login {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-login:hover {
    background-color: #0041A8;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ========================
   HERO SECTION
   ======================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003D99 100%);
    color: var(--white);
    padding: 100px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 150px;
    color: var(--white);
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ========================
   SERVICES SECTION
   ======================== */

.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--secondary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text);
    font-size: 0.95rem;
}

/* ========================
   FEATURES SECTION
   ======================== */

.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2rem;
    border-left: 4px solid var(--primary);
    background-color: var(--light-gray);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary);
}

.feature-number {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ========================
   STATISTICS SECTION
   ======================== */

.stats {
    background: linear-gradient(135deg, var(--primary) 0%, #003D99 100%);
    color: var(--white);
    padding: 60px 0;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--white);
}

/* ========================
   ABOUT SECTION
   ======================== */

.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.value {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.value i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon {
    font-size: 150px;
    color: var(--primary);
    opacity: 0.2;
}

/* ========================
   NEWSLETTER SECTION
   ======================== */

.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, #003D99 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

/* ========================
   CONTACT SECTION
   ======================== */

.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: var(--primary);
    color: var(--white);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary);
    min-width: 50px;
}

.info-item:hover i {
    color: var(--white);
}

.info-item h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.info-item:hover h4 {
    color: var(--white);
}

.info-item p {
    color: var(--text);
    margin: 0;
}

.info-item:hover p {
    color: var(--white);
}

/* ========================
   MESSAGES
   ======================== */

.message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* ========================
   FOOTER
   ======================== */

.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-icon {
        font-size: 100px;
    }

    /* Services & Features */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-icon {
        font-size: 100px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        min-width: unset;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-brand h1 {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .stats .container {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}