:root {
    --primary-teal: #083A49;
    --dark-teal: #1A657F;
    --light-teal: #248BAF;
    --accent-blue: #0F3A49;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F8FAFC;
    --gradient-accent: linear-gradient(45deg, #083A49, #248BAF);
    --glass-border: #083a4941;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden !important;
    position: relative;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-teal) 20%, var(--dark-teal) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-logo-image {
    width: 200px;
    /* or any desired width */
    height: 200px;
    /* or match aspect ratio */
    background-image: url('../img/CyberNexaLogoSquare_small.png');
    background-repeat: no-repeat;
    background-size: cover;
    /* or 'contain' depending on what you want */
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-50px);
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--light-teal), var(--dark-teal));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.watch-story-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.watch-story-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.watch-story-btn i {
    margin-right: 0.5rem;
}

.story-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.video-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
}

.video-placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.play-button {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.play-button i {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-left: 5px;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-teal), var(--light-teal));
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--dark-teal), var(--primary-teal));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(36, 139, 175, 0.4);
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    padding: 100px 0;
    position: relative;
}

/* Features Section Text Animations */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transform: translateX(-100px);
    opacity: 0;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    transform: translateX(-100px);
    opacity: 0;
}

.price-highlight {
    color: var(--primary-teal);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    transform: translateX(-100px);
    opacity: 0;
}

.price-highlight {
    color: var(--primary-teal);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
}

.features-grid {
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 58, 73, 0.1);
    opacity: 0;
    transform: translateY(50px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(15, 58, 73, 0.15);
}

.feature-card h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
}

.feature-card.card-1 {
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
}

.feature-card.card-2 {
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
}

.feature-card.card-3 {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
}

.feature-card.card-4 {
    background: linear-gradient(135deg, var(--light-teal), var(--primary-teal));
}

.hero-illustration {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
}

.illustration-img {
    max-width: 100%;
    height: auto;
}

.final-cta {
    text-align: center;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(50px);
}

.final-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.learn-more-btn {
    background: var(--primary-teal);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: var(--dark-teal);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(15, 58, 73, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .portfolio-section-title {
        font-size: 2.2rem !important;
    }

    .template-section-title {
        font-size: 2.2rem !important;
    }

    .hero-content {
        padding: 50px 0;
    }

    .video-placeholder {
        height: 200px;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .portfolio-section-title {
        font-size: 1.8rem !important;
    }

    .template-section-title {
        font-size: 1.8rem !important;
    }
}

/* Second & Third Sections */
.portfolio-section {
    position: relative;
}

.section-4-title {
    font-weight: 700;
    line-height: 1.2;
}

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    /* border: 1px solid var(--glass-border); */
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.24);
}

.animation-border-rotate::before {
    z-index: -1;
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, #159dc674, transparent 30%);
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover::before {
    opacity: 1;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.project-info {
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-primary-teal {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary-teal:hover {
    background-color: var(--dark-teal);
    border-color: var(--dark-teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 58, 73, 0.3);
}

.btn-primary-teal:focus {
    background-color: var(--dark-teal);
    border-color: var(--dark-teal);
    box-shadow: 0 0 0 0.25rem rgba(36, 139, 175, 0.25);
}

.btn-primary-teal:active {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.project-info {
    background-color: var(--text-light) !important;
}

.about-section {
    background: var(--primary-teal) !important;
}

.brand-logo svg {
    color: var(--light-teal);
}

.image-frame {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .devices-wrapper {
        height: 150px;
    }

    .desktop-mockup {
        width: 100px;
    }

    .monitor-frame {
        height: 65px;
    }

    .screen {
        height: 45px;
    }

    .mobile-mockup {
        width: 35px;
    }

    .phone-frame {
        height: 60px;
    }

    .tablet-mockup {
        width: 50px;
    }

    .tablet-frame {
        height: 65px;
    }
}

@media (max-width: 576px) {
    .mockup-container {
        min-height: 150px;
    }

    .devices-wrapper {
        height: 120px;
    }

    .desktop-mockup {
        width: 80px;
    }

    .monitor-frame {
        height: 50px;
    }

    .screen {
        height: 35px;
    }

    .mobile-mockup {
        width: 28px;
    }

    .phone-frame {
        height: 45px;
    }

    .tablet-mockup {
        width: 40px;
    }

    .tablet-frame {
        height: 50px;
    }
}

/* Q&A section */
.faq-section {
    position: relative;
    overflow: hidden;
}

.faq-title {
    opacity: 0;
    transform: translateY(30px);
}

.faq-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 58, 73, 0.15) !important;
}

.faq-button {
    position: relative;
    overflow: hidden;
    background: var(--primary-teal) !important;
    color: white !important;
    border: 1px solid var(--primary-teal) !important;
    transition: all 0.3s ease;
}

.faq-button::after {
    content: '+';
    position: absolute;
    right: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.faq-button:hover {
    background: var(--dark-teal) !important;
    border-color: var(--dark-teal) !important;
    color: white !important;
}

.faq-button:focus {
    background: var(--dark-teal) !important;
    border-color: var(--dark-teal) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(36, 139, 175, 0.25);
}

.faq-answer {
    animation: fadeInUp 0.5s ease;
}

.faq-answer a {
    color: var(--light-teal);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    color: var(--dark-teal);
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2.5rem !important;
    }

    .faq-button {
        font-size: 1rem !important;
        padding: 1.25rem 1.5rem !important;
    }

    .faq-button::after {
        right: 1.5rem;
    }

    .faq-answer {
        padding: 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .faq-title {
        font-size: 2rem !important;
    }

    .faq-button {
        font-size: 0.95rem !important;
        padding: 1rem 1.25rem !important;
    }

    .faq-button::after {
        right: 1.25rem;
        font-size: 1.25rem;
    }

    .faq-answer {
        padding: 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* hide the arrow in accordion */
.faq-button::after {
    background-image: none !important;
}

.bg-primary-teal {
    background-color: var(--primary-teal) !important;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 0.1s ease;
}

/* Floating Glassy Elements - Hero Section Only */
.hero-section .floating-elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-section .floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.hero-section .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 30%;
    background: rgba(36, 139, 175, 0.15);
}

.hero-section .floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 5%;
    right: 7%;
    background: rgba(255, 255, 255, 0.12);
}

.hero-section .floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 50%;
    left: 15%;
    background: rgba(15, 58, 73, 0.1);
}

.hero-section .floating-element:nth-child(4) {
    width: 140px;
    height: 90px;
    top: 30%;
    right: 40%;
    background: rgba(36, 139, 175, 0.08);
}

.hero-section .play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-teal), var(--primary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(8, 58, 73, 0.3);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-teal);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--light-teal);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.05s ease;
}

/* Magnetic Button Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-container {
    margin: 3rem 0;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Hero Illustration Animation Setup - Fixed */
.illustration-container {
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

.phone-mockup {
    transform: translateX(150px);
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

.phone-screen {
    transform: translateX(200px);
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

.phone-line-1,
.phone-line-2,
.phone-line-3 {
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

.floating-user {
    transform: translateX(250px);
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

/* Feature Cards Animation Setup */
.feature-card {
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

.feature-card.card-1,
.feature-card.card-3 {
    transform: translateX(-150px);
    /* Left side cards */
}

.feature-card.card-2,
.feature-card.card-4 {
    transform: translateX(150px);
    /* Right side cards */
}

/* Final CTA Title Animation */
.final-cta-title {
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    /* fallback */
}

/* About Section Animation Setup - Fixed */
.expert-logo-image {
    width: 200px;
    /* or any desired width */
    height: 200px;
    /* or match aspect ratio */
    background-image: url('../img/CyberNexaLogoSquare_small.png');
    background-repeat: no-repeat;
    background-size: cover;
    /* or 'contain' depending on what you want */
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
}

.hero-title-experts {
    opacity: 0;
    font-size: 3rem;
    font-weight: 500 !important;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* About Section - Team Image and CTA Button Animation */
.about-team-image {
    opacity: 0;
}

.about-cta-button {
    opacity: 0;
}

/* About Section - Paragraphs Animation */
.about-paragraph-1,
.about-paragraph-2,
.about-paragraph-3,
.about-paragraph-4 {
    opacity: 0;
    transform-origin: center left;
}

/* Schedule Section Animation */
.schedule-title-1,
.schedule-title-2,
.schedule-title-3 {
    opacity: 0;
    transform-origin: center center;
}

.schedule-widget {
    opacity: 0;
    transform-origin: center center;
}

/* Portfolio Carousel Styles - Scoped to avoid conflicts */
.portfolio-slide-container {
    max-width: 1120px;
    width: 100%;
    padding: 40px 0;
    margin: 0 auto;
}

.portfolio-slide-content {
    /* margin: 0 40px; */
    /* overflow: hidden; */
    border-radius: 0; /* Remove border radius to keep your design */
    position: relative;
    overflow-y: visible !important;
    max-height: 1000px !important;
    
}

/* Keep your existing portfolio card styles */
.portfolio-slide-container .portfolio-card {
    background: #fff;
    border-radius: 12px;
    /* overflow: hidden; */
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px;
    
    /* Your existing box shadow */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.portfolio-slide-container .portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-slide-container .portfolio-image-container {
    flex: 1;
    /* padding: 20px; */
}

.portfolio-slide-container .portfolio-image-container .bg-white {
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-slide-container .portfolio-image-container img {
    transition: transform 0.3s ease;
}

.portfolio-slide-container .portfolio-card:hover .portfolio-image-container img {
    transform: scale(1.05);
}

.portfolio-slide-container .project-info {
    margin-top: auto;
    border-radius: 0 0 12px 12px !important;
}

.portfolio-slide-container .project-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-slide-container .company-name {
    font-size: 0.875rem;
}

/* Fancy rotate effect */
.portfolio-slide-container .fancy-rotate {
    transition: transform 0.3s ease;
}

.portfolio-slide-container .fancy-rotate:hover {
    transform: translateY(-5px) rotate(1deg);
}

/* Swiper Navigation Buttons - Custom styling */
.portfolio-swiper-navBtn {
    color: #6E93f7;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-swiper-navBtn:hover {
    color: #4070F4;
    background: #fff;
}

.portfolio-swiper-navBtn::before,
.portfolio-swiper-navBtn::after {
    font-size: 38px;
}

.portfolio-slide-container .swiper-button-next {
    right: 10px;
}

.portfolio-slide-container .swiper-button-prev {
    left: 10px;
}

/* Pagination styling */
.portfolio-swiper-pagination .swiper-pagination-bullet {
    background-color: #083a4965;
    opacity: 1;
}

.portfolio-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #248BAF;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .portfolio-slide-content {
        margin: 0 10px;
    }
    
    .portfolio-swiper-navBtn {
        display: none;
    }
    
    .portfolio-slide-container .portfolio-image-container .bg-white {
        height: 180px;
    }
}

@media screen and (max-width: 576px) {
    .portfolio-slide-container .portfolio-image-container .bg-white {
        height: 160px;
    }
    
    .portfolio-slide-container .project-info {
        padding: 1rem;
    }
}

/* GSAP Animation Support */
.portfolio-slide-container .portfolio-card[data-gsap="fadeInUp"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Ensure swiper slides have proper height */
.portfolio-slide-container .swiper-slide {
    height: auto;
    display: flex;
}

.portfolio-slide-container .swiper-slide .portfolio-card {
    width: 100%;
}

/* Swiper-slides-overflow-issue-fix */
/* Portfolio Carousel Container */
.portfolio-slide-container {
    position: relative;
    width: 100%;
    padding: 20px 0 40px 0; /* Add bottom padding to accommodate cards */
    overflow: hidden; /* Hide any overflow at container level */
}

/* Swiper Container */
.portfolio-slide-content {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible; /* Allow overflow for 3D effects */
}

/* Swiper Wrapper */
.portfolio-card-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: stretch;
    padding-bottom: 30px; /* Add space for card shadows/effects */
}

/* Individual Swiper Slides */
.swiper-slide {
    position: relative;
    height: auto;
    display: flex;
    align-items: stretch;
    /* Prevent any internal scrolling */
    overflow: visible;
}

/* Portfolio Card Styling */
.portfolio-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* Ensure card content doesn't create scrollbars */
    overflow: visible;
}

/* .portfolio-card::before {
    animation: none !important;
    background: none;
} */

/* Portfolio Image Container */
.portfolio-image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    margin-bottom: 15px;
    overflow: hidden; /* Hide overflow only for images */
    border-radius: 8px;
}

.portfolio-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Project Info */
.project-info {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

/* Navigation Buttons */
.portfolio-swiper-navBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-swiper-navBtn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.swiper-button-next.portfolio-swiper-navBtn {
    right: 10px;
}

.swiper-button-prev.portfolio-swiper-navBtn {
    left: 10px;
}

/* Pagination */
.portfolio-swiper-pagination {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
}

/* Hover Effects */
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover .portfolio-image-container img {
    transform: scale(1.05);
}

/* 3D Rotation Effect (if using fancy-rotate) */
.fancy-rotate {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.fancy-rotate:hover {
    transform: translateY(-5px) rotateY(5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-slide-container {
        padding: 15px 0 30px 0;
    }
    
    .portfolio-card-wrapper {
        padding-bottom: 20px;
    }
    
    .portfolio-image-container {
        height: 150px;
    }
    
    .portfolio-swiper-navBtn {
        width: 35px;
        height: 35px;
    }
}

/* Fix for any remaining scrollbar issues */
.portfolio-slide-content.swiper,
.portfolio-card-wrapper.swiper-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.portfolio-slide-content.swiper::-webkit-scrollbar,
.portfolio-card-wrapper.swiper-wrapper::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}
/* Swiper-slides-overflow-issue-fix */

/* Fancy carousel component */
.fancy-carousel{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* background: var(--gradient-accent) !important; */
    color: #000000;

    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.fancy-carousel .content{
    height: 28rem;
    width: 25rem;
    /* background: var(--gradient-accent); */
    background-color: white;
    border: .2rem solid rgba(255,255,255,.1);
    border-radius: .7rem;
    border-bottom: .4rem solid var(--primary-teal);
    border-top: .4rem solid var(--primary-teal);
    overflow: hidden;
    /* padding: .2rem; */
}

.fancy-carousel .content img{
    width: 100%;
    border-bottom-left-radius: .6rem;
    border-bottom-right-radius: .6rem;
}
.fancy-carousel .text-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.fancy-carousel .text-content h3{
    font-size: 1.7rem;
    font-weight: 500;
}

.fancy-carousel .text-content p{
    max-width: 22rem;
    font-size: .8rem;
    font-weight: 400;
    text-align: center;
}

.fancy-carousel .btn {
    background: var(--gradient-accent);
    color: white;
    padding: .4rem .8rem;
    border: 2px solid var(--gradient-accent);
    outline: none;
    font-size: .8rem;
    border-radius: .5rem;
    margin: 1rem 0;
    cursor: pointer;
}

/* Portfolio Section Title Animation */
.portfolio-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.3s ease; /* fallback */
}

/* Template Section Title Animation */
.template-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.3s ease; /* fallback */
}

/* CSS - Hide on touch devices and small screens */
@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* Hide by default on touch devices */
.touch-device .cursor,
.touch-device .cursor-follower {
    display: none !important;
}

/* Features Section Decorations */
.illustration-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.tablet-mockup-1 {
    position: absolute;
    left: -20px;
    top: 20px;
    z-index: 1;
    transform: rotate(-12deg);
}

.phone-mockup-2 {
    position: absolute;
    right: 10px;
    top: 40px;
    z-index: 2;
    transform: rotate(8deg);
}

.phone-mockup-3 {
    position: absolute;
    right: 60px;
    top: 10px;
    z-index: 3;
    transform: rotate(-5deg);
}

.mockup-image-1 {
    width: 280px;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    border-radius: 25px;
}

.mockup-image-2 {
    width: 160px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.16));
    border-radius: 25px;
}

.mockup-image-3 {
    width: 170px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
    border-radius: 30px;
}

.bg-element-1 {
    position: absolute;
    top: 15px;
    left: 60px;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
    border-radius: 50%;
    opacity: 0.7;
    backdrop-filter: blur(10px);
}

.bg-element-2 {
    position: absolute;
    bottom: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(36, 139, 175, 0.3), rgba(36, 139, 175, 0.15));
    border-radius: 50%;
    opacity: 0.8;
    backdrop-filter: blur(5px);
}

.bg-element-3 {
    position: absolute;
    top: 60px;
    right: 30px;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, rgba(8, 58, 73, 0.25), rgba(8, 58, 73, 0.08));
    border-radius: 50%;
    opacity: 0.6;
}

.floating-particle-1 {
    position: absolute;
    top: 20%;
    left: 45%;
    width: 8px;
    height: 8px;
    background: rgba(80, 187, 226, 0.7);
    border-radius: 50%;
}

.floating-particle-2 {
    position: absolute;
    top: 75%;
    right: 45%;
    width: 20px;
    height: 20px;
    background: rgba(36, 138, 175, 0.43);
    border-radius: 50%;
}

.floating-particle-3 {
    position: absolute;
    top: 35%;
    right: 15%;
    width: 10px;
    height: 10px;
    background: rgba(17, 93, 120, 0.38);
    border-radius: 50%;
}

/* Keep the video boxed inside its parent, responsive */
.video-container{
  position: relative;
  width: 100%;
  max-width: 1100px;       /* optional cap; remove if you want full width */
  aspect-ratio: 16 / 9;    /* responsive height */
  overflow: hidden;        /* prevents any spill */
  border-radius: 16px;     /* optional */
}

/* Fallback for older browsers that might ignore aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video-container::before{
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 */
  }
}

/* Make placeholder and video fill the box */
.video-container .video-placeholder,
.video-container video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Choose ONE of these depending on your preference */

/* A) Fill the box nicely (may crop a bit) */
.video-container video{
  object-fit: cover;
}

/* B) Show entire video without cropping (may letterbox) */
/* .video-container video{ object-fit: contain; background:#000; } */

/* Utility you used */
video.hidden{ display: none; }

/* (Optional) Keep the play icon centered */
.video-placeholder{
  display: grid;
  place-items: center;
    background: url('../img/video-thumbnail.jpg') no-repeat center center / cover;
}
