:root {
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --primary-dark: #4F46E5;
    --secondary: #8B5CF6;
    --accent: #14B8A6;
    --dark: var(--dark-black-color);
    --dark-color: var(--dark-black-color);
    --dark-light: #1E293B;
    --light: var(--light-white-color);
    --text: #334155;
    --text-light: #64748B;
    --white: var(--light-white-color);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-gradiant : var(--gradient-primary);
    --bg-light : var(--sectionBackground)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtext {
    font-size: 0.9rem;
    color: var(--text-color);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Products dropdown */
.custom-dropdown {
    position: relative;
    cursor: pointer;
}

/* Arrow icon */
.arrow-icon {
    display: inline-block;
    margin-left: 6px;
    margin-bottom: 3px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.custom-dropdown:hover .arrow-icon {
    transform: rotate(-135deg);
}

/* Dropdown container */
.dropdown-menu-custom {
    position: absolute;
    top: 120%;
    left: 0;
    list-style-type: none;
    min-width: 200px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s ease;
    padding: 10px 0;
    z-index: 999;
}

/* Show dropdown on hover */
.custom-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.dropdown-item-custom {
    display: block;
    padding: 10px 20px;
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

/* Hover effect for dropdown items */
.dropdown-item-custom:hover {
    background: rgba(0, 0, 0, 0.04);
    padding-left: 26px;
    color: var(--primary-color);
}

/* Active state for dropdown items */
.dropdown-menu-custom li.active .dropdown-item-custom {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

/* Badge styling */
.badge-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.badge-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Active state for dropdown items */
.dropdown-menu-custom li.active .dropdown-item-custom {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero-modern {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F5F3FF 100%); */
    padding-top: 80px;
}

.hero-modern.hero-bg-image {
    background: url('../../assets/courseCraft/hero.avif') center center / cover no-repeat;
    min-height: 100vh;
    height: 100vh;
    position: relative;
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float-shapes 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float-shapes {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(40px, 10px) scale(1.05);
    }
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;              /* ← add this */
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-modern h6 {
    margin: 0;    
    color: var(--light);
    /* font-size: 1rem;       */
    /* font-weight: 600; */
}

.hero-title-large {
    /* font-size: 5rem; */
    /* font-weight: 900; */
    line-height: 1.1;
    color: var(--dark);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--light), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-large {
    /* font-size: 1rem; */
    /* color: var(--text-light); */
    color: #fff;
    line-height: 1.8;
    max-width: 900px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

/* Intro Section */
.intro-section {
    padding: 100px 0;
    background: var(--white);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.intro-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-content {
    animation: fadeInUp 1s ease;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #E8EEFF;
    /* border: 1px solid rgba(99, 102, 241, 0.2); */
    border-radius: 50px;
    color: var(--capsule);
    /* font-size: 0.9rem; */
    /* font-weight: 600; */
    margin-bottom: 1rem;
}

.section-badge h6 {
    margin: 0; 
    color: var(--capsule);   
    /* font-size: 1rem;       */
    /* font-weight: 600; */
}

.section-title {
    /* font-size: 2rem; */
    /* font-weight: 800; */
    color: var(--dark);
    line-height: 1.3;
}

.intro-text {
    /* font-size: 1rem; */
    color: var(--text);
    line-height: 1.8;
    
}

.intro-visual {
    position: relative;
    /* border-radius: 24px; */
    border: 5px double #000;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.visual-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.intro-visual img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* .intro-visual:hover img {
    transform: scale(1.05);
} */

/* Workflow Section */
.workflow-section {
    padding: 100px 0;
    background: var(--bg-light);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.workflow-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header-modern {
    margin-bottom: 60px;
}

.section-subtitle {
    /* font-size: 1rem; */
    color: var(--text-light);
}

.workflow-diagram {
    background: white;
    padding: 10px 10px 40px 10px;
    /* border-radius: 24px; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.workflow-diagram img {
    max-width: 100%;
    height: auto;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    border: 5px double #000;
    /* border-radius: 24px; */
}

/* Slides */
.carousel-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    /* border-radius: 24px; */
}

/* Active Slide */
.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.carousel-btn {
    position: absolute;
    bottom: 103px;
    background: var(--primary-gradiant);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev-btn {
    left: 50%;
    transform: translateX(-60px);
}

.next-btn {
    left: 50%;
    transform: translateX(15px);
}

.carousel-btn:hover {
    background: #4338CA;
    transform: translateX(-60px) scale(1.1);
}

/* Fix hover scale separately for next */
.next-btn:hover {
    transform: translateX(15px) scale(1.1);
}


/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: var(--white);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.benefits-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-text {
    /* font-size: 1rem; */
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.benefit-text i {
    color: var(--primary-color);
    font-size: 1.2rem;
    vertical-align: middle;
}

.benefits-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.benefits-visual img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.benefits-visual:hover img {
    transform: scale(1.05);
}

/* ROI Section */
.roi-section {
    padding: 100px 0;
    /* background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%); */
    background: var(--bg-light);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.roi-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.roi-text {
    /* font-size: 1rem; */
    color: var(--text);
    line-height: 1.8;
}

.roi-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.roi-visual img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.roi-visual:hover img {
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.feature-intro {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-card-header {
    margin-bottom: 2rem;
}

.feature-icon-large {
    width: 70px;
    height: 70px;
    background: var(--primary-gradiant);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-large {
    transform: rotate(360deg) scale(1.1);
}

.feature-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-screenshot {
    /* border-radius: 16px; */
    border: 5px double #000;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* .feature-card:hover .feature-screenshot img {
    transform: scale(1.05);
} */

/* CTA Section */
.cta-modern {
    padding: 120px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 32px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-cta-primary {
    background: white;
    color: var(--primary);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.cta-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-circle 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -50px;
    animation-delay: -10s;
}

@keyframes float-circle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -20px);
    }

    50% {
        transform: translate(-10px, 10px);
    }

    75% {
        transform: translate(15px, 5px);
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-title {
    /* font-size: 1.25rem; */
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    /* background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); */
    background: linear-gradient(90deg, #6c757d, #fff);
}

.footer-links {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 5px;
}

.footer-links i {
    /* color: var(--primary-color); */
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title-large {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-card {
        padding: 60px 40px;
    }

    .cta-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title-large {
        font-size: 2.5rem;
    }

    .hero-subtitle-large {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-card {
        padding: 40px 30px;
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .logo-container {
        margin-left: -100px;
    }
}