/* Modern Home Page Styles */

/* Hero Section Enhancements */
.modern-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 173, 238, 0.95) 0%, rgba(36, 181, 181, 0.95) 100%),
                url('../images/key-cert/happy-farmer.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.modern-hero .container-fluid {
    position: relative;
    z-index: 2;
}

.modern-hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 0 80px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modern-hero-title {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.modern-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary-modern,
.btn-secondary-modern {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
    color: #00ADEE;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    color: #00ADEE;
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: #fff;
}

.btn-primary-modern i,
.btn-secondary-modern i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary-modern:hover i,
.btn-secondary-modern:hover i {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* Navigation Enhancements */
.modern-hero {
    padding-top: 0;
    position: relative;
}

.modern-hero .container-fluid {
    position: relative;
}

/* Fix header positioning to break out of container */
.modern-hero .container-fluid > .sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1030 !important;
    pointer-events: none;
    background: transparent;
}

.modern-hero .container-fluid > .sticky-header > * {
    pointer-events: all;
}

.modern-hero .sticky-header header {
    position: relative !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    margin: 0;
}

.modern-hero .sticky-header header.sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.modern-nav {
    backdrop-filter: blur(10px);
    background: transparent !important;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
}

.modern-nav.sticky,
.sticky-header header.sticky .modern-nav {
    background: transparent !important;
}

.sticky-header header.sticky .navbar-nav .nav-link {
    color: #333 !important;
}

.sticky-header header.sticky .navbar-nav .nav-link:hover,
.sticky-header header.sticky .navbar-nav .nav-link.active {
    color: #00ADEE !important;
}

/* Ensure navbar container is full width and properly aligned */
.modern-hero .sticky-header header .nav-padding {
    padding: 20px 50px !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-hero .sticky-header header .navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.modern-hero .sticky-header header .navbar-collapse {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.modern-hero .sticky-header header .buy-btn {
    margin-left: 15px;
    flex-shrink: 0;
}

@media (max-width: 1399px) {
    .modern-hero .sticky-header header .nav-padding {
        padding: 20px 40px !important;
    }
}

@media (max-width: 1199px) {
    .modern-hero .sticky-header header .nav-padding {
        padding: 15px 30px !important;
    }
    
    .modern-hero .container-fluid > .sticky-header {
        margin-left: 0;
        left: 0;
        right: 0;
    }
}

.modern-cta-btn {
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
    border-radius: 8px;
    padding: 11px 24px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.modern-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.modern-cta-btn a {
    color: #00ADEE !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.modern-cta-btn i {
    width: 16px;
    height: 16px;
}

/* Navbar Brand Styling */
.modern-hero .navbar-brand {
    padding: 0;
    margin-right: 40px;
}

.modern-hero .navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* Navbar Links */
.modern-hero .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    position: relative;
}

.modern-hero .navbar-nav .nav-link:hover,
.modern-hero .navbar-nav .nav-link.active {
    color: #fff !important;
}

.modern-hero .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.modern-hero .navbar-nav .nav-link:hover::after,
.modern-hero .navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Section Headers */
.modern-section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(0, 173, 238, 0.1) 0%, rgba(36, 181, 181, 0.1) 100%);
    border-radius: 50px;
    color: #00ADEE;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    color: #00ADEE;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Certifications Section */
.modern-certifications {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0;
}

.modern-cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-cert-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.modern-cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 173, 238, 0.2);
    border-color: rgba(0, 173, 238, 0.3);
}

.cert-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 173, 238, 0.1) 0%, rgba(36, 181, 181, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.modern-cert-card:hover .cert-icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0, 173, 238, 0.2) 0%, rgba(36, 181, 181, 0.2) 100%);
}

.cert-icon-wrapper img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.cert-placeholder {
    width: 60px;
    height: 60px;
    color: #00ADEE;
}

.cert-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.cert-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #00ADEE 0%, #24B5B5 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-coming {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.coming-soon {
    opacity: 0.8;
}

/* Partners Section */
.modern-partners {
    background: #ffffff;
    padding: 100px 0;
}

.modern-partner-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.modern-partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 173, 238, 0.15);
    border-color: rgba(0, 173, 238, 0.3);
}

.partner-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-partner-logo {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    transition: all 0.3s ease;
}

.modern-partner-card:hover .modern-partner-logo {
    background: linear-gradient(135deg, rgba(0, 173, 238, 0.05) 0%, rgba(36, 181, 181, 0.05) 100%);
}

.modern-partner-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.modern-partner-card:hover .modern-partner-logo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.layout-name p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.layout-name a {
    color: #00ADEE;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.layout-name a:hover {
    color: #24B5B5;
}

/* Features Section */
.modern-features {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
}

.modern-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ADEE 0%, #24B5B5 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-feature-card:hover::before {
    transform: scaleX(1);
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 173, 238, 0.2);
    border-color: rgba(0, 173, 238, 0.3);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 173, 238, 0.1) 0%, rgba(36, 181, 181, 0.1) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.modern-feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, #00ADEE 0%, #24B5B5 100%);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrapper i {
    width: 32px;
    height: 32px;
    color: #00ADEE;
    transition: all 0.3s ease;
}

.modern-feature-card:hover .feature-icon-wrapper i {
    color: #fff;
}

.modern-feature-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    text-align: center;
}

.modern-feature-card p {
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* Marquee Section */
.modern-marquee {
    background: linear-gradient(135deg, #00ADEE 0%, #24B5B5 100%);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.modern-marquee .big-title {
    color: #fff;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Footer */
.modern-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 80px 0 40px;
}

.modern-footer-brand {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.modern-footer-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    background: linear-gradient(135deg, #00ADEE 0%, #24B5B5 100%);
    transform: translateY(-3px);
    color: #fff;
}

.modern-footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-link-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-link-item i {
    width: 18px;
    height: 18px;
    color: #00ADEE;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-link-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-item a:hover {
    color: #00ADEE;
}

.footer-copyright {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .modern-cert-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .modern-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }
    
    .modern-hero .sticky-header header .nav-padding {
        padding: 15px 20px !important;
    }
    
    .modern-hero-content {
        padding: 120px 0 60px;
    }
    
    .modern-hero .container-fluid > .sticky-header {
        margin-left: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .modern-hero {
        min-height: 90vh;
        padding: 80px 0 60px;
    }
    
    .modern-hero-content {
        padding: 100px 0 40px;
    }
    
    .modern-hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .modern-cert-card,
    .modern-partner-card,
    .modern-feature-card {
        padding: 30px 20px;
    }
    
    .modern-footer {
        padding: 60px 0 30px;
    }
    
    .modern-hero .sticky-header header .nav-padding {
        padding: 12px 15px !important;
    }
    
    .modern-nav {
        padding: 12px 0;
    }
    
    .modern-hero .container-fluid > .sticky-header {
        margin-left: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 575px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .modern-cert-list {
        grid-template-columns: 1fr;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

