@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap');

/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --accent-color: #00c2ff;
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    padding: calc(0.75rem + 10px) 0;
    transition: all 0.3s ease;
}

.navbar.navbar-hidden {
    transform: translateY(-120%);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0;
}

.navbar-brand small {
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    padding-top: 76px; /* Height of navbar */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    height: 840px;
    max-height: 840px;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero_background.webp') top center/cover no-repeat;
    filter: blur(4px) brightness(1.0);
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 3px 3px 1px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    margin-top: 140px;
}

.hero-section .container {
    padding-top: 400px !important;
}

/* Tablet */
@media (max-width: 991.98px) {
    .hero-section .container {
        padding-top: 50px !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero-section {
        align-items: flex-start !important;
    }
    .hero-section .container {
        padding-top: 30px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        white-space: normal;
    }
}

.hero-section .lead {
    text-shadow: 3px 3px 1px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.store-badge {
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.hero-phone-img {
    bottom: -80px;
    filter: none;
}

.hero-phone-img img {
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    max-height: 780px !important;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 66px;
        height: auto;
        max-height: none;
    }
    
    .hero-phone-img {
        bottom: -40px;
        max-width: 90vw;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.25rem !important;
    }
}

/* Features Section */
.features-section {
    background-color: #f7f8fa;
    padding: 5rem 0;
}

.feature-card {
    border-radius: 1.5rem !important;
    box-shadow: 0 4px 24px 0 rgba(30,34,40,0.08), 0 1.5px 4px 0 rgba(30,34,40,0.04);
    transition: box-shadow 0.2s;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-card img {
    width: 61px;
    height: 61px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.feature-card p {
    font-size: 1.05rem;
    color: #6c757d;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .feature-card {
        min-height: 0;
        padding: 2rem 1rem;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.newsletter-form .form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem 0 0 0.25rem;
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Footer */
.site-footer {
    background: #232943;
    color: #fff;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    font-family: 'Urbanist', Arial, sans-serif;
}
.site-footer h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.site-footer ul {
    padding-left: 0;
    list-style: none;
}
.site-footer .footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.site-footer .footer-link:hover {
    color: #4ade80;
}
.site-footer .footer-social {
    color: #fff;
    transition: color 0.2s;
}
.site-footer .footer-social:hover {
    color: var(--accent-color);
}
.site-footer .fa-envelope {
    color: #fff;
    margin-right: 0.5rem;
}
.site-footer .text-white-50 {
    color: #e0e6f7 !important;
}
.site-footer .small {
    font-size: 0.95rem;
}
.site-footer .text-white-50 .footer-link {
    display: inline !important;
}
.site-footer .text-white-50 i,
.site-footer .text-white-50 a.footer-link {
    vertical-align: middle;
}
.site-footer .heart-green {
    color: #22c55e; /* green */
}
@media (max-width: 991.98px) {
    .site-footer .row > div {
        text-align: center !important;
        align-items: center !important;
    }
    .site-footer {
        border-radius: 0;
    }
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .features-section .card {
        margin-bottom: 1.5rem;
    }
}

/* Custom CertifyIQ Styles */
.custom-blur {
    background: rgba(30, 30, 30, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(30, 30, 30, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Practice Makes Perfect Section */
.practice-section {
    background: #fff;
}

.practice-section .container {
    margin-top: 400px;
}

/* Tablet */
@media (max-width: 991.98px) {
    .practice-section .container {
        margin-top: 150px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .practice-section .container {
        margin-top: 50px;
    }
}
.practice-section h2 {
    font-family: 'Urbanist', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    color: #222;
}
.practice-section p {
    font-size: 1.35rem;
    color: #495057;
    font-family: 'Urbanist', Arial, sans-serif;
}
.practice-section .btn-primary {
    background: #5561f2;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.85rem 2.5rem;
    box-shadow: 0 2px 8px rgba(85,97,242,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.practice-section .btn-primary:hover {
    background: #3d47c3;
    box-shadow: 0 4px 16px rgba(85,97,242,0.12);
}
.practice-section img {
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(30,34,40,0.08);
    position: relative;
    z-index: 1000;
}
@media (max-width: 991.98px) {
    .practice-section h2 {
        font-size: 2rem;
    }
    .practice-section p {
        font-size: 1.1rem;
    }
}

/* Stay Updated Section */
.stay-updated-section {
    background: #fff;
}
.stay-updated-section h2 {
    font-family: 'Urbanist', Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -1px;
    color: #111;
    line-height: 1.1;
}
.stay-updated-section p,
.stay-updated-section .text-secondary {
    font-size: 1.05rem;
    color: #495057;
    font-family: 'Urbanist', Arial, sans-serif;
}
.stay-updated-section .btn-primary {
    background: #5561f2;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.85rem 2.5rem;
    box-shadow: 0 2px 8px rgba(85,97,242,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.stay-updated-section .btn-primary:hover {
    background: #3d47c3;
    box-shadow: 0 4px 16px rgba(85,97,242,0.12);
}
.stay-updated-section img {
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(30,34,40,0.08);
}
.stay-updated-section .newsletter-form {
    margin-top: 2rem;
}
.stay-updated-section .form-control {
    background: #f7f7f7;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    box-shadow: none;
}
.stay-updated-section .form-control:focus {
    background: #f0f0f0;
    box-shadow: 0 0 0 2px #5561f233;
}
.stay-updated-section .form-control::placeholder {
    font-style: italic;
}
@media (max-width: 991.98px) {
    .stay-updated-section h2 {
        font-size: 2rem;
    }
    .stay-updated-section .newsletter-form {
        margin-top: 1.2rem;
    }
} 

/* Reduce any extra space above the device image */
.hero-phone-img {
    margin-top: 0 !important;
}

/* App store buttons spacing */
.hero-section .d-flex.gap-3 {
    gap: 10px !important;
}

/* Tablet spacing tweaks for hero content (tighter) */
@media (max-width: 991.98px) {
    .hero-section h1 {
        margin-bottom: 0.5rem !important;
    }
    .hero-section .lead {
        margin-bottom: 0.5rem !important;
    }
    .hero-section .d-flex.gap-3 {
        gap: 10px !important;
        margin-bottom: 0.5rem !important;
    }
    .hero-phone-img {
        margin-top: 0 !important;
    }
}

/* Mobile spacing tweaks for hero content (tightest) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        margin-bottom: 0.25rem !important;
    }
    .hero-section .lead {
        margin-bottom: 0.25rem !important;
    }
    .hero-section .d-flex.gap-3 {
        gap: 10px !important;
        margin-bottom: 0.25rem !important;
    }
    .hero-phone-img {
        margin-top: 0 !important;
    }
} 

/* Social icons - header and footer */
.navbar .nav-item.ms-lg-3 a.nav-link,
.site-footer .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 6px;
    padding: 0;
    line-height: 0;
    text-align: center;
    overflow: visible;
}

.navbar .nav-item.ms-lg-3 a.nav-link img,
.site-footer .footer-social img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}