:root {
    --primary-color: #0A2463;
    --secondary-color: #3E92CC;
    --accent-color: #6BFFB8;
    --background-color: #F8F9FA;
    --text-color: #1E1E1E;
    --success-color: #28A745;
    --error-color: #DC3545;
    --font-family: 'Poppins', sans-serif;
    --font-family-secondary: 'Open Sans', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--primary-color);
}

p {
    font-family: var(--font-family-secondary);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
    align-items: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.text-center {
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    /* Changed gradient to be darker for better contrast */
    background: linear-gradient(135deg, var(--primary-color), #0a1a3a);
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.hero .container {
    position: relative; /* To appear above the overlay */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white; /* Explicitly set color */
    /* Add text shadow for better readability */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2; /* Improve line height for better readability */
    font-weight: 700; /* Make font weight heavier */
}

.hero-content .tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    /* Add slight text shadow to tagline as well */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9; /* Slightly reduce opacity for visual hierarchy */
    line-height: 1.5; /* Improve line height */
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 1rem;
    z-index: 999;
}

.project-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-nav .nav-item:hover {
    background: var(--background-color);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.nav-content p {
    font-size: 0.875rem;
    color: #666;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
}

.projects h2 {
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s ease;
}

.button.secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.button.secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Blog Section */
.blog {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card img {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.blog-card h3 {
    margin-bottom: 1rem;
}

.text-link {
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.testimonial {
    background: white;
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-width: 300px;
    box-shadow: var(--shadow);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links img {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .side-panel {
        display: none;
    }

    .project-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        flex-direction: column;
    }
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.live {
    background: var(--success-color);
    color: white;
}

.status-badge.beta {
    background: var(--secondary-color);
    color: white;
}

.status-badge.new {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
}

/* Form Validation Styles */
.form-error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial Navigation */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.testimonial-nav.prev {
    left: -20px;
}

.testimonial-nav.next {
    right: -20px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-dot.active {
    background: var(--accent-color);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .testimonial-nav {
        display: none;
    }

    #backToTop {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}