/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --color-primary: #2680EA;
    --color-background: #F6F6F6;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-teal: #A4C7D0;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
}

body {
    font-family: 'Epilogue', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
}

/* Close button - hidden by default */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    z-index: 1002;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 6rem 2rem 2rem;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: center;
        font-size: 1.2rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Show close button only when menu is active on mobile */
    .mobile-menu-close.active {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: auto;
    padding: 2rem 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

.hero-background {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

/* New hero layout container */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.hero-container {
    max-width: 100%;
    width: 100%;
    background: white;
    padding: 5rem 2rem;
    text-align: left;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
}

.hero-image {
    min-height: 100%;
    border-radius: 0;
    position: relative;
    background-color: #f6f6f6; /* Placeholder color while image loads */
    overflow: hidden;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 1rem 1rem 1rem 0;
    outline: none;
    caret-color: #333;
    caret-width: thick;
    cursor: text;
    max-width: 550px;
}

.hero-title::selection,
.hero-title *::selection {
    background: #ffbf002e;
}

/* Selection box lines */
.hero-title::before,
.hero-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: #2680EA;
    left: 0;
}

.hero-title::before {
    top: 0;
}

.hero-title::after {
    bottom: 0;
}

/* Vertical lines */
.hero-title > span::before,
.hero-title > span::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 1px;
    background: #2680EA;
    top: 0;
}

.hero-title > span::before {
    left: 0;
}

.hero-title > span::after {
    right: 0;
}

/* Resize handles */
.hero-title .handle {
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border: 1px solid #2680EA;
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}

/* Corner handles */
.hero-title .handle:nth-child(1) { top: -5px; left: -5px; cursor: nw-resize; }
.hero-title .handle:nth-child(2) { top: -5px; right: -5px; cursor: ne-resize; }
.hero-title .handle:nth-child(3) { bottom: -5px; left: -5px; cursor: sw-resize; }
.hero-title .handle:nth-child(4) { bottom: -5px; right: -5px; cursor: se-resize; }

/* Middle handles */
.hero-title .handle:nth-child(5) { top: -5px; left: calc(50% - 5px); cursor: n-resize; }
.hero-title .handle:nth-child(6) { right: -5px; top: calc(50% - 5px); cursor: e-resize; }
.hero-title .handle:nth-child(7) { bottom: -5px; left: calc(50% - 5px); cursor: s-resize; }
.hero-title .handle:nth-child(8) { left: -5px; top: calc(50% - 5px); cursor: w-resize; }

/* Corner dots */
.hero-title::after,
.hero-title::before,
.hero-title > span::before,
.hero-title > span::after {
    &::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        border: 2px solid #2680e9;
        border-radius: 50%;
        background: white;
    }
}

.hero-title::before::after {
    top: -7px;
    left: -7px;
}

.hero-title::before::after {
    top: -7px;
    right: -7px;
}

.hero-title::after::after {
    bottom: -7px;
    left: -7px;
}

.hero-title::after::after {
    bottom: -7px;
    right: -7px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 450px;
}

.cta-button {
    background: linear-gradient(45deg, #FF3366, #FF9933, #FFFF66, #33CC99, #3366FF);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    font-family: 'Epilogue', sans-serif;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 40%);
    background-size: 25% 25%;
    opacity: 0.4;
    pointer-events: none;
}

.cta-button:hover {
    background-size: 300% 300%;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.api-note {
    color: #666;
    font-size: 0.9rem;
}

/* Hero Image Section */
.hero-image-section {
    padding: 4rem 2rem 8rem;
    background: #000;
}

.hero-image-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.slideshow {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.slideshow-container {
    position: relative;
    width: 90%;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

.slideshow-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slideshow-slide.active {
    display: block;
}

.slideshow-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 80%;
    margin: 0 auto;
    font-size: 1.1rem;
    min-height: 3rem;
}

.slideshow-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
    margin-top: 0.5rem;
}

.feature-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(38, 128, 234, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-family: 'Epilogue', sans-serif;
    align-self: flex-start;
    width: fit-content; /* Makes background only as wide as the text */
}

/* Add space between Font Awesome icons and text */
.feature-tag i {
    margin-right: 8px;
}

.pill {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 1);
}

.pill.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
}

.feature-tag.pill {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-family: 'Epilogue', sans-serif;
}

.feature-tag.pill.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        padding: 3rem 2rem;
    }

    .hero-image-section {
        padding: 3rem 1.5rem 6rem;
    }
}

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .hero-container {
        padding: 4rem 2rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-title {
        max-width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .cta-button {
        align-self: center;
    }
    
    .hero-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-background {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-container {
        padding: 3rem 1.5rem;
    }
    
    .hero-image {
        min-height: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .handle {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    
    /* Adjust handle positions for smaller size */
    .hero-title .handle:nth-child(1) { top: -4px; left: -4px; }
    .hero-title .handle:nth-child(2) { top: -4px; right: -4px; }
    .hero-title .handle:nth-child(3) { bottom: -4px; left: -4px; }
    .hero-title .handle:nth-child(4) { bottom: -4px; right: -4px; }
    .hero-title .handle:nth-child(5) { top: -4px; left: calc(50% - 4px); }
    .hero-title .handle:nth-child(6) { right: -4px; top: calc(50% - 4px); }
    .hero-title .handle:nth-child(7) { bottom: -4px; left: calc(50% - 4px); }
    .hero-title .handle:nth-child(8) { left: -4px; top: calc(50% - 4px); }
    
    .slideshow-container {
        width: 95%;
    }
    
    .slideshow-pills {
        gap: 0.5rem;
    }
    
    .slideshow-caption {
        max-width: 95%;
        font-size: 1rem;
    }
    
    .hero-image-section {
        padding: 2rem 1rem 4rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-background {
        width: calc(100% - 1.5rem);
        height: auto;
        margin: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .hero-container {
        padding: 2rem 1.25rem;
    }
    
    .hero-image {
        min-height: 150px;
    }
    
    .hero-title {
        font-size: 2rem;
        padding: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-image-section {
        padding: 1.5rem 0.75rem 3rem;
    }
}

/* About Section */
.about-section {
    background: var(--color-teal);
    padding: var(--spacing-xl) 0;
    color: #2f5058;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-subtitle {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0.9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-column p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem;
    }

    .about-section .container {
        padding: 0 1rem;
    }

    .about-title {
        font-size: 3rem;
    }

    .about-subtitle {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image-section {
        padding: 2rem 1rem 4rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem;
    }

    .about-section .container {
        padding: 0 0.75rem;
    }

    .about-title {
        font-size: 2.5rem;
    }
}

/* Footer */
.footer {
    background: var(--color-background);
    padding: var(--spacing-xl) var(--spacing-md);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-icon {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.footer-column p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

.footer-links {
    margin-top: auto;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer {
        padding: 6rem 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 1.5rem;
    }

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

    .footer-column {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 1rem;
    }
}

.video-control {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.video-control:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.video-control i {
    font-size: 16px;
}

/* Video loading indicator */
.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: spinner-rotate 1s infinite linear;
    z-index: 2;
    display: none;
}

.slideshow-slide.loading-video .video-loading-indicator {
    display: block;
}

@keyframes spinner-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Add background for loading videos */
.slideshow-slide.loading-video video {
    background-color: rgba(0, 0, 0, 0.3);
}
