/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo link with button-style implementation matching base.html */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link .logo-icon {
    display: block;
    width: 87px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex: 1;
    justify-content: center;     /* Changed back to center for proper centering */
    position: relative;          /* Add relative positioning for absolute positioning of nav-actions */
    padding-right: 8rem; /* Add right padding */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    /* Remove margin auto since parent is now centered */
}

.nav-actions {
    position: absolute;          /* Position absolutely to move to far right */
    right: 0;                    /* Stick to the right edge */
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu-link {
    text-decoration: none;
    color: #111;
    font-weight: 400;
    font-size: 1.25rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu-link:hover {
    color: #000;
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu-link:hover::after {
    width: 100%;
}

.nav-link {
    color: #666 !important;
    font-weight: 500;
    font-size: 18px;         /* Increased font size for Log in link */
}

.nav-link:hover {
    color: #333 !important;
}

/* Buttons */
.btn-get-started {
    background: #333;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-get-started::after {
    content: "→";
    font-size: 20px;         /* Increased arrow size from 16px to 20px */
    transition: transform 0.3s;
}

.btn-get-started:hover {
    background: #000;
    transform: translateY(-1px);
}

.btn-get-started:hover::after {
    transform: translateX(3px);
}

.btn-primary {
    background: #333;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary::after {
    content: "→";
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::after {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: #333;
    padding: 16px 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary::after {
    content: "→";
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-secondary:hover {
    background: #f8f8f8;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-secondary:hover::after {
    transform: translateX(3px);
}

/* Hero Section */
.hero {
    padding: 140px 0 40px;  /* Increased top padding to account for fixed navbar */
    background: #ffffff;
    min-height: 80vh;      /* Reduced from 100vh to 80vh */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #111;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;     /* Reduced from 1.75rem to 1.25rem */
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

.hero-actions .btn-get-started {
    font-size: 1rem;        /* Reduced from 1.25rem for smaller button */
    padding: 12px 24px;     /* Reduced padding for smaller button */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .logo-link .logo-icon {
        width: 87px;
        height: 40px;
    }
}

/* Add subtle animation */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Features Section */
.features-section {
    padding: 140px 0 80px;
    background: #ffffff;
}

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

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.2;
}

.features-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f8cff, #2563eb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design for Features */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-title {
        font-size: 1.45rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .nav-menu {
        display: none;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0 100px;
    background: #fafafa;
}

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

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-label {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-number {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-item.active .faq-number {
    background: #333;
    color: white;
}

.faq-text {
    flex: 1;
    font-size: 0.975rem;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
}

.faq-icon {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 24px;
    color: #666;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.faq-learn-more {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.faq-learn-more:hover {
    color: #000;
}

/* Responsive Design for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0 80px;
    }
    
    .faq-title {
        font-size: 1.4rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-text {
        font-size: 0.85rem;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
}

/* Footer Section */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer-logo-text {
    font-weight: 400;
    font-size: 18px;
    color: #111;
    letter-spacing: 0.25px;
}

.footer-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-nav-column {
    display: flex;
    gap: 40px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #333;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.social-link:hover {
    color: #333;
    background: #f5f5f5;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav-column {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px; /* Adjust this value based on your navbar height */
}

/* Alternative method for older browsers */
#hero::before,
#features::before,
#faq::before {
    content: "";
    display: block;
    height: 80px; /* Same as navbar height */
    margin-top: -80px;
    visibility: hidden;
}

@media (max-width: 480px) {
    .footer-content {
        gap: 20px;
    }
    
    .footer-nav-column {
        gap: 16px;
    }
    
    .footer-logo-text {
        font-size: 12px;
    }
    
    .footer-logo-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Adjust scroll offset for mobile */
    section[id] {
        scroll-margin-top: 60px;
    }
    
    #hero::before,
    #features::before,
    #faq::before {
        height: 60px;
        margin-top: -60px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 32px;
    font-weight: 300;
    color: #666;
    background: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 1;
    transition: color 0.2s ease;
    border-radius: 0 12px 0 0;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
}

.modal-body {
    padding: 30px 40px 40px 40px;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
    color: #333;
    line-height: 1.7;
}

.modal-body h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    margin-top: 0;
}

.modal-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    margin-top: 30px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.modal-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #555;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #555;
}

.modal-body strong {
    color: #333;
    font-weight: 600;
}

.modal-body em {
    font-style: italic;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 50px);
    }
    
    .modal-body h1 {
        font-size: 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 1.2rem;
    }
    
    .modal-close {
        font-size: 28px;
        padding: 8px 15px;
    }
}