/* Home Page Styles - Enhanced Version */

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    background: linear-gradient(135deg, rgb(248 250 252) 0%, rgb(255 255 255) 50%, rgb(248 250 252) 100%);
    padding: 8rem 0 4rem; /* Adjust top padding */
    overflow: hidden;
    z-index: 1; /* Ensure proper stacking */
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(225, 29, 72, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(100, 116, 139, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 2px 2px, rgba(2,8,23,0.1) 1px, transparent 0);
    background-size: 800px 800px, 600px 600px, 32px 32px;
    animation: pattern-float 20s ease-in-out infinite;
}

@keyframes pattern-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Hero Content Layout */
.hero-section .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start; /* Align items to top */
}

.hero-section .text-left {
    padding-top: 2rem; /* Add some top padding */
    max-width: 640px;
}

/* Hero Title Styles */
.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    position: relative;
    display: inline-block;
    color: rgb(225 29 72);
    background: linear-gradient(135deg, rgb(225 29 72), rgb(190 18 60));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.8), rgba(225, 29, 72, 0.2));
    border-radius: 2px;
    animation: underline-expand 0.8s ease-out 0.6s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes underline-expand {
    to { transform: scaleX(1); }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgb(255 228 230), rgb(254 242 242));
    color: rgb(225 29 72);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(225, 29, 72, 0.2);
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.1);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(225, 29, 72, 0.15);
}

/* Hero Description */
.hero-section .text-rose-600 {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 1.5rem 0;
}

.hero-section .text-slate-600 {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 32rem;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(100, 116, 139, 0.05));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem;
    margin-left: auto; /* Push to right side */
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 1.5rem;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.hero-visual:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 70px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(225, 29, 72, 0.1);
}

.hero-visual:hover::before {
    opacity: 0.7;
}

/* Consistent Section Header */
.section-header-home {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-header-home .section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(225 29 72);
    margin-bottom: 1rem;
}

.section-header-home .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(15, 23, 42);
    margin-bottom: 1.5rem;
    text-align: center;  /* Ensure center alignment */
    width: 100%;        /* Full width */
    display: block;     /* Block display */
}

.section-header-home .section-subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgb(71, 85, 105);
    margin: 0 auto;     /* Center margins */
    max-width: 700px;   /* Control width of text */
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .section-header-home {
        margin-bottom: 3rem;
    }
    .section-header-home .section-title, .section-header__title {
        font-size: 2rem !important;
    }
    .section-header-home .section-subtitle, .section-header__subtitle {
        font-size: 1rem !important;
    }
}

/* Our Capabilities Section */
.capabilities-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    z-index: 1;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(226, 232, 240, 0.8);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(226, 232, 240, 1);
}

.promo-video {
    width: 100%;
    height: auto;
    display: block;
}


/* Enhanced Features Section */
.features-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.features-background {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(225, 29, 72, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 116, 139, 0.02) 0%, transparent 50%);
    background-size: 1000px 1000px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgb(225 29 72), rgb(190 18 60));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(225, 29, 72, 0.1);
    transform: translateY(-8px) scale(1.02);
}

.feature-icon {
    font-size: 2.5rem;
    color: rgb(225 29 72);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.feature-card:hover .feature-icon {
    color: rgb(190 18 60);
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Buttons */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgb(225 29 72), rgb(190 18 60));
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 
        0 10px 15px -3px rgba(225, 29, 72, 0.2),
        0 4px 6px -2px rgba(225, 29, 72, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(225, 29, 72, 0.3),
        0 10px 10px -5px rgba(225, 29, 72, 0.2);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(203, 213, 225, 0.8);
    color: rgb(51 65 85);
    font-weight: 600;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-button:hover {
    border-color: rgb(225 29 72);
    color: rgb(225 29 72);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 12px -2px rgba(225, 29, 72, 0.1);
}

/* Enhanced Animations */
@keyframes sophisticated-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes sophisticated-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

.animate-fade-in {
    animation: sophisticated-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: sophisticated-float 4s ease-in-out infinite;
}

/* Scroll-based animations */
@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    animation: scroll-reveal 0.6s ease-out forwards;
}

/* Performance optimizations */
.hero-visual,
.feature-card,
.service-card,
.primary-button,
.secondary-button {
    will-change: transform;
}

/* Responsive enhancements */
@media (max-width: 1280px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-section .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        margin: 0 auto;
        max-width: 28rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 2.75rem;
    }

    .hero-section .text-left {
        padding-top: 0;
    }

    .hero-visual {
        max-width: 100%;
        aspect-ratio: 4/3;
    }

    .features-section {
        padding: 4rem 0;
    }

    .process-section,
    .carousel-section,
    .capabilities-section {
        padding: 3rem 0;
    }

    .feature-card {
        padding: 2rem;
    }

    .primary-button,
    .secondary-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-float,
    .hero-pattern,
    .carousel-glow {
        animation: none;
    }
    
    .hero-visual,
    .feature-card,
    .service-card,
    .primary-button,
    .secondary-button {
        transition: none;
    }
} 

/* Ensure these don't affect services page */
.home-page .features-section,
.home-page .carousel-section {
    position: relative;
    z-index: 1;
} 

/* Portfolio Introduction */
.portfolio-intro {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    padding: 2rem 0;
    text-align: center;
}

/* Logo Container Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;  /* Increased margin for better spacing */
}

.coral-logo {
    width: auto;
    height: 280px;  /* Increased from 60px to 100px */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.coral-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Update existing feature projects spacing */
.feature-projects-wrapper {
    padding-top: 0;  /* Reduce top padding since we have the intro above */
} 

/* How We Do It (Process) Section */
.process-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
}


/* PDF Download Buttons - Updated to match design system */
.pdf-downloads {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
}

/* Remove the spotlight background as it's not needed with new design */
.pdf-downloads::before {
    display: none;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(203, 213, 225, 0.8);
    border-radius: 0.75rem;
    color: rgb(51 65 85);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect similar to primary-button */
.pdf-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.1), transparent);
    transition: left 0.6s ease;
}

.pdf-download-btn:hover::before {
    left: 100%;
}

.pdf-download-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgb(225 29 72);
    color: rgb(225 29 72);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 10px 15px -3px rgba(225, 29, 72, 0.2),
        0 4px 6px -2px rgba(225, 29, 72, 0.1);
}

.pdf-download-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.pdf-download-btn i {
    font-size: 1rem;
    color: rgb(225, 29, 72);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pdf-download-btn:hover i {
    color: rgb(190, 18, 60);
    transform: scale(1.1);
}

/* Focus states for accessibility */
.pdf-download-btn:focus {
    outline: 2px solid rgba(225, 29, 72, 0.5);
    outline-offset: 2px;
}

/* Responsive adjustments for PDF buttons */
@media (max-width: 640px) {
    .pdf-downloads {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pdf-download-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.75rem;
    }
}

/* Make sure PDF buttons don't conflict with other button styles */
.pdf-download-btn:not(:hover) {
    color: rgb(51 65 85);
}

/* Enhanced spacing in projects showcase section */
.projects-showcase__center .pdf-downloads {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Project Types Section (moved from development page) */
.project-types-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    z-index: 1;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Changed from start to stretch for equal heights */
}

.model {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all cards take full height */
    min-height: 500px; /* Set consistent minimum height */
}

/* Make project type cards clickable */
.project-type-card {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-type-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.3);
}

.project-type-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* Add focus styles for accessibility */
.project-type-card:focus {
    outline: 2px solid rgba(225, 29, 72, 0.5);
    outline-offset: 2px;
}

/* Override featured card hover to maintain consistency */
.model.featured.project-type-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.model.featured {
    border: 2px solid rgb(225 29 72);
    transform: none; /* Remove scale to maintain consistent size */
}

.model:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(225, 29, 72, 0.1);
}

.model.featured:hover {
    transform: translateY(-8px); /* Same hover behavior for all cards */
}

.model-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgb(225 29 72), rgb(190 18 60));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(225, 29, 72, 0.3);
}

.model-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    min-height: 80px; /* Consistent header height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.model-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    margin-bottom: 0.75rem;
}

.model-timeline {
    color: rgb(71, 85, 105);
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

.model > p {
    color: rgb(71, 85, 105);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    min-height: 75px; /* Consistent description area height */
    display: flex;
    align-items: flex-start;
}

.model-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* This will fill remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.model-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgb(71, 85, 105);
    line-height: 1.5;
    min-height: 2.5rem; /* Consistent feature item height */
}

.model-features i {
    color: rgb(34, 197, 94);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Responsive adjustments for project types */
@media (max-width: 768px) {
    .project-types-section {
        padding: 3rem 0;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: stretch; /* Maintain stretch on mobile */
    }
    
    .model {
        padding: 1.5rem;
        min-height: 450px; /* Slightly smaller min-height for mobile */
    }
    
    .model.featured {
        transform: none; /* Keep consistent sizing on mobile */
    }
    
    .model.featured:hover {
        transform: translateY(-4px);
    }
    
    .model-header {
        min-height: 70px; /* Smaller header height for mobile */
    }
    
    .model-header h3 {
        font-size: 1.25rem;
    }
    
    .model > p {
        min-height: 65px; /* Smaller description height for mobile */
    }
}

@media (max-width: 480px) {
    .model {
        min-height: 400px; /* Even smaller for very small screens */
    }
    
    .model-header {
        min-height: 60px;
    }
    
    .model > p {
        min-height: 60px;
    }
} 

/* Featured Projects Section */
.featured-projects {
    padding: 6rem 0;
    position: relative;
    z-index: 3;
}

.featured-projects .container {
    padding: 0;
    max-width: 80rem;
    margin: 0 auto;
}

.featured-projects__main {
    margin-top: 0;
    background-color: transparent; /* Make container clear for the illusion */
    padding: 3rem; /* Keep original padding for content spacing */
    padding-top: 0; /* Let align-content handle positioning */
    height: 558px; /* Total height for the area */
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-radius: 1rem;
    overflow: visible; /* Allow image to overflow */
    align-content: end; /* Vertically align content to the bottom */
}

.featured-projects__main::before {
    content: '';
    position: absolute;
    z-index: 0; /* Sit behind content */
    top: 170px; /* Start below the invisible space */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e293b;
    border-radius: 1rem;
}

.main-content {
    z-index: 1; /* Ensure content is above the new background */
    grid-column: 1 / 2;
    text-align: left;
    margin-bottom: 50px;
}

.main-content .content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.main-content .content-description {
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 450px;
    height: 60px; /* Set a fixed height for consistency */
}

.main-visual {
    position: absolute;
    bottom: -170px;
    right: 0;
    width: 60%;
    z-index: 1;
}

.main-visual.is-mobile {
    display: flex;
    justify-content: center;
}

.main-visual.is-mobile img {
    width: auto;
    height: 550px;
    position: relative;
    bottom: 50px;
}

.main-visual .laptop-image {
    width: 90%;
    height: auto;
    transform: scaleX(-1);
    bottom: 150px;
}

/* Featured Projects Dots Pagination */
.featured-projects__dots {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
}

.dot-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.dot-item.is-active {
    background-color: rgb(225 29 72);
}

/* Responsive Styles for Featured Projects */
@media (max-width: 1280px) {
    .featured-projects {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1009px) {
    .featured-projects {
        padding: 4rem 1rem;
    }
    .featured-projects__main,
    .carousel-ghost {
        grid-template-columns: 1fr;
        height: 680px; /* Set a fixed height to clip the image */
        padding: 3rem;
        align-content: normal;
        overflow: hidden; /* Hide overflowing parts of the image */
    }

    .featured-projects__main::before {
        top: 0;
    }

    .featured-projects__main .main-content,
    .carousel-ghost .main-content {
        grid-row: 1;
        grid-column: auto; /* Reset from desktop's two-column layout */
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Align content to the top */
        height: 280px; /* Restore fixed height for consistency */
    }
    
    .featured-projects__main .main-content .content-title,
    .carousel-ghost .main-content .content-title {
        font-size: 2rem;
    }

    .featured-projects__main .main-content .primary-button,
    .carousel-ghost .main-content .primary-button {
        margin-top: 1rem;
    }

    .featured-projects__main .main-visual,
    .carousel-ghost .main-visual {
    position: relative;
        grid-row: 2;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        bottom: auto;
        right: auto;
    }

    .featured-projects__main .main-visual .laptop-image,
    .carousel-ghost .main-visual .laptop-image {
        width: 100%;
        transform: scaleX(-1);
        bottom: auto;
    }

    .featured-projects__main .main-visual.is-mobile img,
    .carousel-ghost .main-visual.is-mobile img {
        width: auto;
        height: auto;
        max-height: 500px;
        bottom: 1rem;
        margin: 0 auto;
    }
    
    .featured-projects__dots {
        position: absolute; /* Position dots at the bottom of the card */
        bottom: 2rem;
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    .featured-projects {
        padding: 4rem 1.5rem;
    }
    .featured-projects__main,
    .carousel-ghost {
        height: 620px; /* Adjust height for smaller tablets */
        padding: 2.5rem;
    }
    .featured-projects__main .main-content .content-title,
    .carousel-ghost .main-content .content-title {
        font-size: 1.75rem;
    }
    .featured-projects__main .main-content .content-description,
    .carousel-ghost .main-content .content-description {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .featured-projects__main,
    .carousel-ghost {
        height: 580px; /* Adjust height for mobile */
        padding: 2.5rem 1.5rem;
    }
    .featured-projects__main .main-content .content-title,
    .carousel-ghost .main-content .content-title {
        font-size: 1.5rem;
    }
    .featured-projects__main .main-content .content-description,
    .carousel-ghost .main-content .content-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .featured-projects__main .main-content,
    .carousel-ghost .main-content {
        height: 320px; /* Restore fixed height */
    }
    .featured-projects__main .main-content .content-description,
    .carousel-ghost .main-content .content-description {
        margin-bottom: 3em;
    }
}

/* Ensure no internal scrollbars for featured projects wrappers */
.featured-projects,
.featured-projects .container {
	overflow: visible !important;
}

/* Clip anything outside of the dark card */
.featured-projects__main {
	overflow: hidden !important; /* hide elements outside this card */
	cursor: default;
	touch-action: pan-y;
}

/* Disable native drag on images/links inside the carousel */
.featured-projects__main img,
.featured-projects__main a {
	-webkit-user-drag: none;
	user-drag: none;
}

.featured-projects__main.is-dragging {
	cursor: grabbing;
	user-select: none;
	touch-action: none;
}

.featured-projects__main.is-dragging a {
	pointer-events: none;
}

/* Ghost panel that slides in/out during transitions */
.carousel-ghost {
    position: absolute;
	top: 0;
	right: 0;
    bottom: 0;
    left: 0;
	padding: 3rem;
	padding-top: 0; /* Match main container */
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	z-index: 2;
	pointer-events: none;
	align-content: end; /* Match main container */
}

/* Ensure ghost panel matches mobile/tablet layout exactly */
@media (max-width: 1009px) {
	.carousel-ghost {
		grid-template-columns: 1fr !important;
		padding-top: 3rem !important;
	}
}
@media (max-width: 768px) {
	.carousel-ghost {
		padding-top: 2.5rem !important;
	}
}
@media (max-width: 640px) {
	.carousel-ghost {
		padding-top: 2rem !important;
	}
}

/* Transition helpers */
.featured-projects__main.carousel-animating .main-content,
.featured-projects__main.carousel-animating .main-visual,
.carousel-ghost {
	transition: transform 0.45s ease, opacity 0.45s ease;
} 

/* Allow overflow inside the card */
.featured-projects__main {
	overflow: visible;
}

/* Remove edge mask styles (no longer used) */
.featured-mask,
.featured-mask--left,
.featured-mask--right { display: none; }
