:root {
    --primary-color: #333;
    --secondary-color: #666;
    --font-family: 'Arial', sans-serif;
    --spacing-unit: 20px;
    --heading-font-weight: normal; /* Added for h1 and h2 */
    --button-padding: 20px 30px;
    --button-font-size: 20px;
    --border-radius: 8px;
    --transition-duration: 0.3s;
    --max-width: 1200px;
    --container-padding: 0 20px;
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --black: #000;
    --white: #fff;
    --text-color: #333;
    --link-color: #333;
    --link-hover-color: #333;
    --footer-text-color: #666;
    --font-weight-500: 500;
    --font-weight-600: 600;
    --em-1-5: 1.5em;
    --em-0-7: 0.7em;
    --em-0-8: 0.8em;
    --em-0-88: 0.88em;
    --em-0-9: 0.9em;
    --em-0-95: 0.95em;
    --em-0-925: 0.925em; /* Not used, consider removing if truly unused */
    --em-1: 1em;
    --em-2: 2em;
    --em-2-19: 2.19em;
    --em-2-7: 2.7em;
    --em-3-06: 3.06em;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--primary-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

header {
    background-color: var(--white);
    padding: var(--spacing-unit) 0;
    border-bottom: none;
}

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

header .logo {
    font-size: var(--em-1-5);
    font-weight: bold;
    display: flex;
    align-items: center;
}

header .logo a {
    text-decoration: none;
    color: var(--text-color);
}

header .logo a:visited {
    color: var(--text-color);
}

header .logo a:hover {
    color: var(--text-color);
}

header .logo img {
    max-height: 30px;
    width: auto;
}

header .logo .home-text {
    margin-left: 2.5px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: var(--font-weight-500);
}

header .logo .home-text:hover {
    text-decoration: underline;
}

header .logo .home-icon {
    margin-right: 5px;
    font-size: 1.2em;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: var(--spacing-unit);
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: var(--font-weight-500);
}

header nav ul li.cart-icon svg {
    width: 20px;
    height: 20px;
}

/* Language switcher styles */
.language-switcher {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    font-size: var(--em-0-7);
    margin-left: 5px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    padding: 5px 0;
    min-width: 120px;
    z-index: 100;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

.language-dropdown li {
    margin: 0 !important;
    padding: 0;
}

.language-dropdown li a {
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
}

.language-dropdown li a:hover {
    background-color: var(--light-gray);
}

.language-options {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.language-options a {
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.language-options a.active {
    background-color: var(--light-gray);
    font-weight: bold;
}

main {
    text-align: center;
    padding: 100px 0 20px;
}

.hero h1 {
    font-size: var(--em-2-19);
    margin-bottom: 0;
    font-weight: var(--heading-font-weight);
}

.hero h2 {
    font-size: var(--em-3-06);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero {
    margin: var(--spacing-unit) auto 23px;
}

.hero p {
    font-size: var(--em-0-88);
    letter-spacing: 1px;
    font-weight: var(--font-weight-500);
}

.what-automate-text {
    font-size: var(--em-1);
    letter-spacing: 1.2px;
    margin: 0 0 0 0;
    font-weight: var(--font-weight-600);
    margin-bottom: 10px;
}

.hero .calendar-icon {
    margin: var(--spacing-unit) auto;
}

.body-content {
    max-width: 800px;
    margin: 100px auto;
    text-align: center;
    padding: var(--container-padding);
    line-height: 1.6;
}

.content-container {
    max-width: 600px;
    margin: 0 auto;
}

.body-content h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.body-content p {
    color: var(--secondary-color);
    font-size: var(--em-0-95);
}

footer {
    background-color: var(--white);
    color: var(--primary-color);
    padding: var(--spacing-unit) 0;
    text-align: center;
    border-top: none;
}

footer .container {
    max-width: 600px;
}

footer .footer-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

footer .footer-text {
    line-height: 1.6;
    color: var(--footer-text-color);
    font-size: var(--em-0-9);
}

footer .legal-links {
    margin-top: var(--spacing-unit);
    padding-top: 15px;
    border-top: 1px solid #eee;
}

footer .legal-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 10px;
    font-size: var(--em-0-8);
}

footer .legal-links a:hover {
    text-decoration: underline;
}

.page-content {
    max-width: 800px;
    margin: 50px auto;
    padding: var(--container-padding);
    line-height: 1.6;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 30px;
}

.page-content p {
    margin-bottom: var(--spacing-unit);
}

/* Hamburger Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-duration) ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    padding: 15px var(--spacing-unit);
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: var(--font-weight-500);
    display: block;
}

.btn-black {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--button-padding);
    background-color: var(--black);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: var(--button-font-size);
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-black i.fa-calendar {
    font-size: 30px;
    padding-bottom: 15px;
}

.btn-black:hover {
    transform: translateY(-5px);
}

/* Use case buttons grid */
.use-case-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px auto 30px;
    max-width: 800px;
    padding: var(--container-padding);
}

.use-case-button {
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    font-size: var(--em-0-9);
    transition: all var(--transition-duration) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.use-case-button i {
    font-size: var(--em-1-5);
}

.use-case-button span {
    display: block;
}

.use-case-button:hover {
    background-color: #e9e9e9;
}

.use-case-button.active {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Use case sentences display */
.sentences-display-container {
    position: relative;
    height: 40px;
    margin: 0px auto;
    max-width: 800px;
    overflow: hidden;
    text-align: center;
}

/* Add these animation styles */
@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.use-case {
    display: none;
    position: absolute;
    width: 100%;
    height: 40px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity var(--transition-duration) ease;
}

.use-case.active {
    display: block;
    animation: slideInFade 0.3s forwards;
}

.use-case.fade-out {
    display: block;
    animation: slideOutFade 0.2s forwards;
    z-index: 1;
}

.use-case.active, .use-case.fade-out {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.horizontal-sentences-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to left,
        transparent 0%,
        rgba(0,0,0,0.2) 5%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0.2) 95%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to left,
        transparent 0%,
        rgba(0,0,0,0.2) 5%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0.2) 95%,
        transparent 100%);
    padding: 0 1em;
    position: relative;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    justify-content: center;
    width: 100%;
}

.horizontal-sentences-wrapper {
    display: flex;
    position: absolute;
    left: 100%;
    white-space: nowrap;
}

.horizontal-sentence {
    margin-left: 1em;
    font-weight: bold;
    color: var(--black);
    font-size: var(--em-1-5);
    padding: 0.2em 0.5em;
    border-radius: var(--border-radius);
    background: rgba(245, 245, 245, 0.7);
    display: inline-block;
}

.horizontal-sentence-spacer {
    display: inline-block;
    width: 300px;
    visibility: hidden;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Add downward arrow styles */
.arrow-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
}

.down-arrow {
    color: var(--primary-color);
    font-size: var(--em-2);
    position: relative;
}

/* Bouncing animation for the arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.btn-black.highlighted {
    animation: pulse 2s infinite;
    margin-top: 0;
    margin-bottom: 15px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.hero-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.hero .logo {
    margin-bottom: 40px;
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    header .logo {
        margin-bottom: 0;
        justify-content: flex-start;
    }

    header .logo .home-text {
        display: none;
    }

    .hero h1 {
        font-size: 2.0em !important;
    }

    .hero h2 {
        font-size: var(--em-2-7) !important;
    }

    .body-content {
        margin: 50px auto;
    }

    .hero .logo {
        margin-bottom: 30px;
    }

    .what-automate-text {
        font-size: var(--em-0-95);
    }

    .use-case-buttons {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    main {
        padding-top: 5px !important;
    }

    .hero {
        margin: 0 auto 0 !important;
    }

    .hero h1, .hero h2 {
        margin: 0 !important;
    }

    .hero .calendar-icon {
        margin: 5px auto !important;
    }

    .container {
        padding: 0 15px !important;
    }

    header nav ul li {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .container {
        padding: 0 15px;
    }

    .use-case-buttons {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Specific component media queries - Header */
@media (max-width: 768px) {
    header nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header .logo {
        margin-bottom: 0;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}


/* Hero Section Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.0em;
    }

    .hero h2 {
        font-size: var(--em-2-7);
    }

    .hero {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-content-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero h2 {
        font-size: 2.2em;
    }
}

/* Use Case Buttons Media Queries */
@media (max-width: 768px) {
    .use-case-buttons {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .use-case-buttons {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Footer Media Queries */
@media (max-width: 768px) {
    footer .legal-links {
        flex-direction: column;
        align-items: center;
    }

    footer .legal-links a {
        margin: 5px 0;
    }
}
