:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --accent-orange: #ff6b35;
    --accent-dark: #2d3748;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --gradient-start: #f0f0f0;
    --gradient-end: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #9ca3af;
    --accent-dark: #ff6b35;
    --nav-bg: rgba(15, 15, 15, 0.85);
    --card-bg: #1f1f1f;
    --border-color: #2d2d2d;
    --gradient-start: #1a1a1a;
    --gradient-end: #0f0f0f;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1; /* Behind content but still in navbar's stacking context */
}

.navbar.scrolled {
    background: var(--nav-bg);
    box-shadow: var(--shadow-md);
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-svg {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translateX(0) translateY(0) scale(100%);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-svg.visible {
    transform: translateX(47.3px) translateY(-.6px) scale(33%);
}

.brand-name {
    position: absolute;
    /* width: 102.717px; */
    height: 40px;
    opacity: 0;
    /* background: var(--logo-nocarrot) center;
    background-size: contain; */
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-name.light {
    display: none;
}

.brand-name.dark {
  display: block;
}

[data-theme="dark"] .brand-name.light {
  display: block;
}

[data-theme="dark"] .brand-name.dark {
  display: none;
}

.brand-name.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* .dark-mode-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-orange);
} */

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    border-color: var(--accent-orange);
    transform: rotate(20deg);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    color: var(--text-primary);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    color: var(--text-primary);
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 55, 72, 0.3) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 60px) scale(1.05);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatRandom 15s infinite ease-in-out;
}

.floating-item:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-item:nth-child(2) {
    top: 70%;
    left: 80%;
    animation-delay: -3s;
}

.floating-item:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: -6s;
}

.floating-item:nth-child(4) {
    bottom: 20%;
    left: 20%;
    animation-delay: -9s;
}

.floating-item:nth-child(5) {
    top: 50%;
    left: 70%;
    animation-delay: -12s;
}

@keyframes floatRandom {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(40px, 10px) rotate(3deg);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: pulse 4s infinite ease-in-out;
}

.hero-logo.light {
    display: none;
}

.hero-logo.dark {
  display: block;
}

[data-theme="dark"] .hero-logo.light {
  display: block;
}

[data-theme="dark"] .hero-logo.dark {
  display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Introduction Section */
.intro-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.intro-section h2 {
    text-align: center;
    font-size: 2.5rem;
    /* margin-bottom: 1rem; */
    color: var(--text-primary);
}

.intro-section h4 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    opacity: 0.7;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.intro-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.intro-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Carousel Section */
.carousel-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.carousel-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* .carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
} */

/* .carousel-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} */

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

/* Remove clipping entirely */
/* .carousel-section .container {
    overflow: visible;
} */

/* .carousel-wrapper {
    position: relative;
    overflow: visible;
} */

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%; /* Full width */
    /* padding: 0 2rem; */
}

/* .carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 -20px;
    padding: 0 20px;
} */

/* .carousel-wrapper {
    overflow: visible;
} */

/* .carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    padding-left: 20px;
    padding-right: 20px;
} */

/* .carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 20px;
} */

/* .carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
} */

.carousel-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem 30px; /* Add horizontal padding */
    /* For centering: */
    margin: 0 auto;
}

/* .carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 20px 1rem 20px;
} */

.carousel-container::-webkit-scrollbar {
    display: none;
}

.blog-card {
    width: 320px;
    flex-shrink: 0; 
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: translateY(0px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* .carousel-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    transform: scale(1.1);
} */

/* Position buttons absolutely over the carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

/* Position prev button on the left */
.carousel-btn.prev {
    left: 10px; /* 10px from viewport edge */
}

/* Position next button on the right */
.carousel-btn.next {
    right: 10px; /* 10px from viewport edge */
}

.carousel-btn:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    transform: translateY(-50%) scale(1.1);
}

/* Steps Section */
.steps-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.steps-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--accent-orange);
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-orange);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c5a 100%);
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    color: var(--accent-dark);
    outline: none;
}

.newsletter-form input::placeholder {
    color: #999;
}

.submit-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .submit-btn {
    background: white;
    color: var(--accent-orange);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.privacy-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--accent-dark);
    color: white;
    padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer {
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease; 
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1.8rem 0;
    }

    /* .navbar.scrolled {
        padding: 1.6rem 0;
    } */

    /* .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.4s ease;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    } */

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--nav-bg);
        /* background-color: red; */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 150px 20px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 10px 30px var(--shadow);
        /* z-index: 900; */
        z-index: -2; /* Below the navbar's ::before pseudo-element */
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        /* pointer-events: none; */
    }

    .nav-links a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        padding: 12px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .mobile-menu a:hover {
        background-color: var(--bg-secondary);
    }

    .hamburger {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    /* .mobile-only {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    } */

    .mobile-only {
        display: flex;
    }

    .mobile-only span {
        font-weight: 500;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .intro-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }

    .newsletter-form {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        width: 100%;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .intro-section h2,
    .carousel-section h2,
    .steps-section h2,
    .newsletter-content h2 {
        font-size: 1.8rem;
    }

    .intro-section h4 {
        font-size: 1.4rem;
    }
}
