/* === NON-CRITICAL CSS ===
  මෙය main-styles.css ලෙස save කරන්න.
  index.html ගොනුව තිබෙන ස්ථානයේම මෙය upload කරන්න.
*/

/* --- පසුබිමේ ඇති Glowing Effect එක --- */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 15% 25%, rgba(56, 189, 248, 0.1), transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.1), transparent 40%);
    z-index: -1;
    animation: float-glow 25s infinite alternate ease-in-out;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, -20px) rotate(5deg); }
}

/* --- Hero Section (ප්‍රධාන කොටස) - යාවත්කාලීන කරන ලදී --- */
.hero-section {
    padding: 150px 0 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-card);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.headline .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-headline {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Problem/Solution Comparison Section (නව කොටස) --- */
.comparison-section {
    padding: 80px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.comparison-col {
    background: rgba(30, 41, 59, 0.6); /* Glass effect සඳහා අර්ධ-විනිවිද පෙනෙන background */
    backdrop-filter: blur(15px); /* Frosty glass effect */
    -webkit-backdrop-filter: blur(15px); /* Safari සඳහා */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Glass දාරය */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); /* මෘදු shadow */
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effect සඳහා transition */
}

.comparison-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.comparison-col h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.nightmare-col h2 {
    color: #f87171; /* Nightmare සඳහා රතු පැහැය */
}

.nightmare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.app-card {
    background: var(--color-background);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.app-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 0.5rem auto;
    border-radius: 8px;
    display: block;
}

.app-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.problem-list {
    list-style: none;
    padding-left: 0;
    margin-top: auto;
}

.problem-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.problem-list li:last-child {
    margin-bottom: 0;
}

.problem-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: rgba(248, 113, 113, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.coinelic-col h2 {
    color: #4ade80; /* Coinelic සඳහා කොළ පැහැය */
}

.unified-platform-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.unified-platform-card .icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.unified-platform-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.unified-platform-card p {
    color: rgba(255, 255, 255, 0.8);
}

.benefit-list {
    list-style: none;
    padding-left: 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.benefit-list li:last-child {
    margin-bottom: 0;
}

.benefit-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Features Section (විශේෂාංග) - Enhanced Futuristic Design --- */
.features-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* To prevent the large text from overflowing */
}

.section-background-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--color-text-secondary);
    opacity: 0.04;
    z-index: 1;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), transparent);
    opacity: 0.6;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-accent-blue);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--color-accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Enhanced Feature Card Components */
.feature-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-icon {
    position: relative;
    z-index: 2;
    color: var(--color-accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    border-color: rgba(59, 130, 246, 0.5);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.feature-card:hover .icon-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.feature-content {
    text-align: center;
    position: relative;
}

.feature-stats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--color-accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .stat-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.feature-accent-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.feature-card:hover .feature-accent-line {
    width: 60%;
}

/* --- START: NEW Community Hub Section Styles --- */
.community-hub-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.community-hub-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4rem;
    border-radius: 20px;
}

.community-hub-text h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.community-hub-text .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.community-hub-text p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.community-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5rem;
}

.community-features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.community-features-list li .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent-blue);
    border-radius: 50%;
}

.community-hub-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.community-avatar {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--color-background);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.community-avatar-1 { width: 100px; height: 100px; top: 0; left: 20%; animation: float 6s infinite alternate ease-in-out; }
.community-avatar-2 { width: 80px; height: 80px; top: 25%; right: 10%; animation: float 8s infinite alternate-reverse ease-in-out; }
.community-avatar-3 { width: 120px; height: 120px; top: 50%; left: 35%; transform: translateY(-50%); z-index: 10; animation: float 7s infinite alternate ease-in-out; }
.community-avatar-4 { width: 70px; height: 70px; bottom: 0; left: 10%; animation: float 9s infinite alternate-reverse ease-in-out; }
.community-avatar-5 { width: 90px; height: 90px; bottom: 15%; right: 25%; animation: float 5s infinite alternate ease-in-out; }

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

@media (max-width: 900px) {
    .community-hub-content {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 3rem;
    }
    .community-hub-visual {
        min-height: 250px;
        margin-top: 2rem;
    }
}
/* --- END: NEW Community Hub Section Styles --- */

/* --- CTA Section - Enhanced with Glowing Effects --- */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), var(--color-accent-purple), transparent);
    opacity: 0.8;
}

.cta-content {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 5rem 3rem;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(59, 130, 246, 0.1),
        0 0 100px rgba(59, 130, 246, 0.05);
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-content:hover::before {
    opacity: 0.3;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    color: var(--color-text-primary);
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.btn-primary-glow::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.5s ease;
}

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

.btn-primary-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.3),
        0 0 120px rgba(59, 130, 246, 0.2);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-accent-blue);
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-secondary-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.btn-secondary-outline:hover::before {
    opacity: 0.1;
}

.btn-secondary-outline:hover {
    border-color: var(--color-accent-purple);
    color: var(--color-accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

/* --- START: UPDATED SLIDER SECTION STYLES --- */
.scrolling-features-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.feature-slider {
    width: 110%;
    margin-top: 4rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.slider-visual-area {
    position: relative;
    max-width: 1000px; /* Large image container */
    margin: 0 auto;
}

.slider-image-container {
    background: #0a1122; /* Added background for letterboxing */
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.slider-image-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-image-wrapper .slide-image {
    width: 100%;
    flex-shrink: 0;
}

.slider-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9.5;
    object-fit: contain; /* Changed from cover to contain */
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-accent-blue);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
    left: 20px;
}

.slider-nav-btn.next {
    right: 20px;
}

.slider-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* NEW: Glassy text box */
.slider-text-content {
    position: relative;
    width: 100%;
    min-height: 350px; /* Fixed height for consistency */
    max-width: 750px;
    margin: -5rem auto 0 auto; /* Negative margin to overlap the image */
    text-align: center;
    padding: 2.5rem; /* Add padding for inner content */
    background: rgba(30, 41, 59, 0.6); /* Glassy background */
    backdrop-filter: blur(15px); /* The crucial blur effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 5; /* Ensure it's on top of the image container */
    transition: height 0.2s ease-in-out; /* Smooth height transition */
}

.slider-text-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    pointer-events: none;
}

.slider-text-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.slider-text-item h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-text-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.slider-text-item ul {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}

.slider-text-item ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.slider-text-item ul li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 900px) {
    .slider-visual-area {
        padding: 0;
    }
    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
    .slider-nav-btn.prev { left: 10px; }
    .slider-nav-btn.next { right: 10px; }
    .slider-text-content {
        margin-top: 2rem; /* Remove negative margin on mobile */
    }
}
/* --- END: UPDATED SLIDER SECTION STYLES --- */


/* --- Footer (අවසාන කොටස) --- */
.footer {
    padding: 4rem 0 2rem 0;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-accent-blue);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* --- Content Section Styles --- */
.content-section {
    padding: 100px 0;
    text-align: center;
    background: var(--color-background);
}

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

/* --- Non-Critical Responsive සැකසුම් --- */
@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 100px 0 60px 0; /* Padding updated */
    }
    .headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* Enhanced Mobile Styles */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .cta-content {
        padding: 3rem 2rem;
        margin: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .btn-primary-glow,
    .btn-secondary-outline {
        width: 100%;
        max-width: 300px;
    }

    /* Footer Mobile Styles */
    .footer {
        padding: 2rem 0 1rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        width: 100px;
        margin: 0 auto 1rem auto;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .nightmare-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens */
    }
    .comparison-col {
        padding: 1.5rem;
    }
}



/* === HERO OPTIMIZATIONS ADDED FOR MOBILE LCP === */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  display: none; /* desktop video shown via JS */
}

.hero-poster-mobile {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.25) 100%);
  z-index: 3;
}

.scroll-indicator {
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 999px;
  color: white;
  margin-bottom: 2.5rem;
}

.scroll-arrow {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
}

/* Ensure layout doesn't shift */
.video-section img, .video-section video, .hero-poster-mobile {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Mobile-specific: hide pc video, keep poster */
@media (max-width: 768px) {
  #hero-video-pc { display: none !important; }
  .hero-poster-mobile { display: block !important; }
}
@media (min-width: 769px) {
  .hero-poster-mobile { display: none; }
  #hero-video-pc { display: block; }
}
/* === END HERO OPTIMIZATIONS === */
