/* Professional Enhancements for Data Analytics Agency */
@import url('./global.css');

/* Global Mobile Overflow Fix */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Scrolling Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    }
}

/* Intersection Observer Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}



/* Hero Section Enhancements */
.hero-background-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(74, 144, 226, 0.1) 0%,
        rgba(15, 23, 42, 0.8) 50%,
        rgba(15, 23, 42, 1) 100%
    );
    z-index: 1;
    height: 150%;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.2s both;
}

.badge-text {
    color: #4A90E2;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button.primary {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #4A90E2;
    position: relative;
    overflow: hidden;
}

.cta-button.primary::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;
}

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

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.cta-button.secondary {
    background: var(--cream-white);
    color: black;
    padding: 1rem 2rem;
    border: 2px solid rgba(143, 188, 248, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    background: rgba(226, 232, 240, 0.1);
    border-color: rgba(226, 232, 240, 0.5);
    transform: translateY(-1px);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Data Visualization Elements */
.data-visualization {
    position: absolute;
    right: 10%;
    top: 20%;
    z-index: 2;
}

.chart-element {
    position: absolute;
    border-radius: 4px;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.chart-1 {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.chart-2 {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #7291D7, #4A90E2);
    top: 50px;
    right: 30px;
    animation-delay: 2s;
}

.chart-3 {
    width: 50px;
    height: 30px;
    background: linear-gradient(135deg, #AFE1AF, #7291D7);
    top: 80px;
    right: -10px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Services Section Enhancements */
.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-color: #4A90E2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2, #7291D7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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



.service-card:hover {
    transform: translateY(-5px);
    border-color: #4A90E2;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.feature-tag {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.service-img{
    height: 400%;
    width: auto;
}

/* Testimonials Enhancements */
.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

/* Portfolio Section */
.portfolio-preview {
    background: var(--cream-white);
    padding: 6rem 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.portfolio-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: #4A90E2;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(114, 145, 215, 0.2));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-overlay i {
    color: white;
    font-size: 1.5rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    color: #4A90E2;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.metric {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-cta {
    text-align: center;
}

/* About Section */
.about {
    background: var(--cream-white);
    padding: 6rem 0;
}
.about-container{
    margin: 3rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.member-photo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.member-role {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
} */


/* Mobile Enhancements */
@media (max-width: 768px) {
    
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .data-visualization {
        display: none;
    }
}

/* Story section enhancement */
.story-continuation {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Seamless Services Scroll Section */
.services-scroll-container {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    
}

.services-header-fixed {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    padding: 1.5rem 0; /* Reduced padding */
}

.services-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 2rem;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A90E2, #7291D7);
    width: 16.67%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-counter {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: right;
}

.current-service {
    color: #4A90E2;
    font-weight: 600;
    font-size: 1.1rem;
}

.services-scroll-track {
    position: relative;
    /* height: 400vh; Reduced from 600vh to 400vh for better proportions */
    margin-bottom: 10%;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    /* box-shadow: 0 8px 32px rgba(74, 144, 226, 0.18); */
}

.service-slide {
    position: sticky;
    /* top: 80px; Reduced from 200px */
    height: calc(120vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0.1;
    transform: translateY(30px); /* Reduced from 50px */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
}

.service-slide.active {
    opacity: 1;
    transform: translateY(0);
}


.service-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.service-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.3);
    border-radius: 24px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    
    position: relative;
    z-index: 2;
}

.service-background-box{
    background: linear-gradient(135deg, #4A90E2, #7291D7);
 
}
.service-icon-large i {
    font-size: 3rem;
    color: white;
}

.service-graphic {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.1;
    z-index: 1;
}

.chart-animation {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 6s ease-in-out infinite;
}

.chart-bars {
    background: linear-gradient(45deg, #4A90E2, #7291D7);
    clip-path: polygon(0 70%, 20% 40%, 40% 60%, 60% 20%, 80% 50%, 100% 30%, 100% 100%, 0% 100%);
}

.chart-growth {
    background: linear-gradient(45deg, #4A90E2, #7291D7);
    clip-path: polygon(0 80%, 25% 60%, 50% 40%, 75% 20%, 100% 10%, 100% 100%, 0% 100%);
}

.chart-network {
    background: radial-gradient(circle, #4A90E2, #7291D7);
    clip-path: circle(40% at 50% 50%);
}

.chart-pie {
    background: conic-gradient(#4A90E2 0deg 120deg, #7291D7 120deg 240deg, rgba(74, 144, 226, 0.3) 240deg 360deg);
    border-radius: 50%;
}

.chart-code {
    background: linear-gradient(135deg, #4A90E2, #7291D7);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.chart-spider {
    background: radial-gradient(ellipse, #4A90E2, #7291D7);
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 85% 60%, 65% 100%, 35% 100%, 15% 60%, 0% 35%, 20% 10%);
}

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

.service-details {
    padding-left: 2rem;
}

.service-badge {
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #4A90E2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-description-large {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-features-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(74, 144, 226, 0.4);
    transform: translateX(5px);
}

.feature-item i {
    color: #4A90E2;
    font-size: 1.25rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.feature-item h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.service-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service-btn {
    background: linear-gradient(135deg, #4A90E2, #7291D7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.service-btn-primary {
    background: linear-gradient(135deg, #488edd, #7291D7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    color: white;
}

.service-price {
    color: #4A90E2;
    font-weight: 600;
    font-size: 1rem;
}

.services-navigation {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.3);
    border: 2px solid rgba(74, 144, 226, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #4A90E2;
    border-color: #4A90E2;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
}

.nav-dot:hover {
    background: rgba(74, 144, 226, 0.6);
}

/* Responsive Design for Services */
@media (max-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-details {
        padding-left: 0;
    }
    
    .service-title-large {
        font-size: 2rem;
    }
    
    .services-navigation {
        right: 1rem;
    }
    .service-img{
        height: 300%;
        width: auto;
        /* margin-bottom: 6rem; */
    }
    .service-slide{
        height: calc(160vh - 160px);
    }
    .service-badge{
        margin-top: 4rem;
    }
}
@media (max-height: 934px)and (orientation: portrait)  {
    .service-slide {
        height: calc(20vh - 60px); /* Even smaller for iPhone XR, less gap */
        padding-bottom: 2px !important;
        padding-top: 2px !important;
        top: 60px !important;
        transform: translateY(250px); /* Reduced from 50px */
        transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Slower transition */
    }
    .service-title-large {
        font-size: 1.5rem;
    }
    
    .service-description-large {
        font-size: 0.95rem;
    }
    
    .services-progress {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Target iPhone SE (375x667) specifically (portrait) and override the large translateY */
@media only screen and (width: 375px) and (height: 667px) and (orientation: portrait) {
    .service-slide {
        /* much smaller vertical offset for the SE screen */
        transform: translateY(20px) !important;
        top: 28px;
        height: calc(44vh - 40px);
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-title-large {
        font-size: 1.4rem;
    }

    .service-description-large {
        font-size: 0.92rem;
    }

    .services-progress {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Fallback for any small devices up to 375x667 */
@media only screen and (max-width: 375px) and (max-height: 667px) {
    .service-slide {
        transform: translateY(20px) !important;
    }
}

@media (max-width: 768px) {
    .services-header-fixed {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    .service-slide {
        top: 120px; /* Reduced from 150px */
        height: calc(160vh - 120px);
        padding: 1rem;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .service-icon-large i {
        font-size: 2rem;
    }
    
    .service-title-large {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .service-description-large {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-features-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .service-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .services-navigation {
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        top: auto;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-dots {
        flex-direction: row;
        gap: 0.75rem;
    }
    
}

@media (max-width: 480px) {
    .service-slide {
        padding: 0.5rem;
    }
    
    .service-title-large {
        font-size: 1.5rem;
    }
    
    .service-description-large {
        font-size: 0.95rem;
    }
    
    .services-progress {
        flex-direction: column;
        gap: 1rem;
    }
}


.cta-image{
    width: 120%;
    height: auto;
}

.cta-image{
    width: 100%;
}