/* ===================================
   CYNARAX - Home Page Styles
   =================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.8) 0%, rgba(19, 24, 38, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid var(--primary-cyan);
    border-bottom: 2px solid var(--primary-cyan);
    transform: rotate(-45deg);
    margin: 10px auto 0;
}

/* Capabilities Section */
.capabilities-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.capability-card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.capability-card:hover::before {
    opacity: 0.05;
}

.capability-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.capability-card > * {
    position: relative;
    z-index: 1;
}

.capability-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-icon img {
    width: 80px;
    height: 80px;
}

.capability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-cyan);
}

.capability-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Showcase Section */
.showcase-section {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.showcase-carousel {
    position: relative;
    margin-top: 60px;
}

.showcase-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.showcase-track::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    position: relative;
    flex: 0 0 600px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.showcase-item:hover {
    transform: scale(1.05);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95), transparent);
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition-smooth);
}

/*

.showcase-item:hover .showcase-overlay {
    /* Text overlay stays visible - only image scales on hover 
}
    */

.showcase-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-cyan);
}

.showcase-overlay p {
    color: var(--text-secondary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary-cyan);
    width: 30px;
    border-radius: 6px;
}

/* Stats Section */
.stats-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.6s ease-out;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-left: 5px;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 15px 0 10px;
    color: var(--text-primary);
}

.stat-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Trust Section */
.trust-section {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.cert-badge {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
 
}

.cert-badge:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.cert-badge img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    
}

.cert-badge p {
    font-weight: 600;
    color: black;
}

.client-logos {
    text-align: center;
}

.client-logos h3 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
}

.logo-marquee {
    overflow: hidden;
    padding: 40px 0;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    background-color: white;
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
}

.logo-track img {
    height: 80px;
    width: 120px;
    object-fit: contain;
    opacity: 1;
    filter: brightness(1.2);
    transition: none;
    cursor: default;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-label {
    text-align: center;
}

.logo-label p {
    color: black;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/*
.logo-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}
*/

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Research Section */
.research-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.research-content {
    padding-right: 40px;
}

.research-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.research-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.research-highlights {
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.highlight-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.research-visual img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

/* Tech Stack Section */
.techstack-section {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.techstack-carousel {
    position: relative;
    margin-top: 60px;
}

.techstack-track {
    background: transparent;
    display: flex;
    gap: 5px;
    animation: techScroll 25s linear infinite;
}

.tech-card {
    position: relative;
    flex: 0 0 300px;
    height: 150px;

    background-color: #ffffff;   /* Pure white background */
    border-radius: 16px;

    border: 1px solid #e5e7eb;   /* Soft light border */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;

    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


.tech-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tech-card img {
    height: 60px;           /* Fixed height for visual consistency */
    width: auto;            /* Width scales proportionally */
    max-width: 100%;        /* Prevent overflow for very wide logos */
    object-fit: contain;    /* Maintain aspect ratio (redundant but safe) */
    filter: brightness(1.2);
    transition: var(--transition-smooth);
}

.tech-card:hover img {
    filter: brightness(1.5);
}

/* Tech Card Overlay - NEW */
/* Tech Card Overlay - Always Visible */
.tech-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
    text-align: center;
}

/*
.tech-card:hover .tech-overlay {
    /* Text overlay stays visible - only tech card scales/highlights on hover 
}
    */

.tech-overlay p {
    color: #0066ff;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

@keyframes techScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;  /* ← Move overflow here */
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Remove gap and overflow from here */
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;  /* ← Add this */
    background: var(--dark-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: var(--shadow-card);
}

.testimonial-content {
    margin-bottom: 40px;
}

.quote-icon {
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary-cyan);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-cyan);
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonial-btn:hover {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 150px 0;
    background: var(--dark-surface);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.cta-animation {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive - Home Page */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .research-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .capabilities-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 40px 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-large,
    .btn-secondary-large,
    .btn-outline-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
}

/* ===================================
   CTA BUTTON OVERRIDES - ALL TYPES
   =================================== */
/* ===================================
   CTA BUTTON OVERRIDES - ALL TYPES
   =================================== */

/* Base transition and hover effects */
.btn-primary-large,
.btn-secondary-large,
.btn-outline-large {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-color: var(--primary-cyan);
    cursor: pointer;
    transition: none;
}

.btn-primary-large:hover,
.btn-secondary-large:hover,
.btn-outline-large:hover {
    cursor: pointer;
}

.btn-primary-large svg,
.btn-secondary-large svg,
.btn-outline-large svg {
    transition: none;
}

.btn-primary-large:hover svg,
.btn-secondary-large:hover svg,
.btn-outline-large:hover svg {
    transform: none;
}

/* Font color overrides for all CTA buttons */
.cta-buttons .btn-primary-large span,
.cta-buttons .btn-secondary-large span,
.cta-buttons .btn-outline-large span {
    color: white; /* All text white by default */
}

/* Optional: Hover color (keeps all text white on hover) */
.cta-buttons .btn-primary-large:hover span,
.cta-buttons .btn-secondary-large:hover span,
.cta-buttons .btn-outline-large:hover span {
    color: white;
}