/* ================= SEO SERVICES PAGE ================= */

/* ===== HERO SECTION ===== */
.seo-modern-hero {
    padding: 100px auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 10%, rgba(126,182,231,0.2) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(0,74,153,0.1) 0%, transparent 40%),
                #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.container {
    max-width: 1200px;
    margin: auto; 
    align-items: center;

}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-left,
.hero-right {
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
.seo-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #444;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: justify;
}

.hero-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
    text-align: justify;
}

/* ===== BUTTONS ===== */
.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-get-touch {
    background: #0099e6;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(230,25,0,0.2);
}

.btn-get-touch:hover {
    background: #0099e6;
    transform: translateY(-3px);
}

.btn-learn-more {
    border: 2px solid #0099e6;
    color: #0099e6;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-learn-more:hover {
    background: rgba(230,25,0,0.05);
    transform: translateY(-3px);
}

/* ===== IMAGE SECTION ===== */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.main-seo-img {
    width: 100%;
    position: relative;
    z-index: 2;
    animation: floatImg 6s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatImg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Decorative shapes */
.floating-shape {
    position: absolute;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.4;
}

.cube {
    width: 100px;
    height: 100px;
    background: #00f2fe;
    bottom: 10%;
    left: -20px;
    border-radius: 20px;
    animation: rotateShape 10s linear infinite;
}

.circle {
    width: 120px;
    height: 120px;
    background: #4facfe;
    top: 0;
    right: -30px;
    border-radius: 50%;
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column-reverse;
        text-align: justify;
        
    }
    .hero-left{
    padding: 0 10px;
}
    .hero-left, .hero-right {
        width: 100%;
    }
    .seo-title {
        font-size: clamp(28px, 6vw, 40px);
        item-align: center;
    }
    .illustration-wrapper {
        max-width: 300px;
        margin: 20px auto 0;
    }
    .hero-btns {
    gap: 10px;
}
.btn-get-touch {
    padding: 8px 18px;
    gap: 8px;
}
.btn-learn-more {
    padding: 8px 18px;
}
}

.main-seo-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden; /* Mobile-la screen-ai vittu veliya pogaama irukka */
}

dotlottie-wc {
    width: 90% !important; /* Mobile screens-la konjam space vittu fit aagum */
    height: auto !important;
}
/* 
================= Grow Your Business =================
 */


/* ================= SECTION ENTRY ================= */
/* .bg-gray-50 {
    animation: fadeUp 1s ease forwards;
} */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= LEFT TEXT ANIMATION ================= */
/* .lg\:w-1\/2:first-child {
    animation: slideLeft 1s ease forwards;
} */

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= FORM ANIMATION ================= */
/* .lg\:w-1\/2:last-child {
    animation: slideRight 1s ease forwards;
} */

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= FEATURE CARDS ================= */
.grid > div {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* hover glow */
.grid > div:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(6,182,212,0.2);
}

/* subtle shine effect */
.grid > div::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: 0.6s;
}

.grid > div:hover::before {
    left: 100%;
}

/* ================= ICON ANIMATION ================= */
.grid svg {
    transition: 0.4s ease;
}

.grid > div:hover svg {
    transform: scale(1.2) rotate(5deg);
}

/* ================= BUTTON EFFECT ================= */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: 0.5s;
}

button:hover::after {
    width: 100%;
}

/* ================= INPUT FOCUS ================= */
input:focus {
    transform: scale(1.02);
}

/* ================= MOBILE SUPER EXPERIENCE ================= */
@media (max-width: 768px) {

    /* stack layout */
    .max-w-6xl {
        flex-direction: column-reverse !important;
        gap: 40px;
    }

    /* form first (conversion focus 🔥) */
    .lg\:w-1\/2:last-child {
        animation: fadeUp 0.8s ease;
    }

    .lg\:w-1\/2:first-child {
        animation: fadeUp 1.2s ease;
    }

    /* feature cards mobile scroll animation */
    .grid > div {
        opacity: 0;
        transform: translateY(40px);
        animation: cardReveal 0.6s ease forwards;
    }

    .grid > div:nth-child(1) { animation-delay: 0.2s; }
    .grid > div:nth-child(2) { animation-delay: 0.4s; }
    .grid > div:nth-child(3) { animation-delay: 0.6s; }
    .grid > div:nth-child(4) { animation-delay: 0.8s; }

    @keyframes cardReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* button tap feel */
    button:active {
        transform: scale(0.96);
    }
}

/*
================== PROCESS SECTION ================= 
*/
/* Container and Pill Styling */
.pill-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #effcfc;
    border: 1px solid #1e293b; /* Matches the thin dark border in image */
    padding: 1rem 2.5rem;
    border-radius: 9999px; /* Perfect pill shape */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    justify-content: center;
}

.pill-card span {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.125rem;
}

/* Hover Interaction */
.pill-card:hover {
    background-color: #ffffff;
    border-color: #37e2f1; /* Glows cyan on hover */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(55, 226, 241, 0.3);
}

/* Entrance Animation Keyframes */
@keyframes pillFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-pill-in {
    opacity: 0;
    animation: pillFadeIn 0.8s ease-out forwards;
}

/* Staggered Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pill-card {
        min-width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

/* ===========================
========= PROCESS FLOW SECTION ========
=========================== */

/* Portfolio Section Styles */
/* GRID DESKTOP */
/* ================= PREMIUM PORTFOLIO STYLING ================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 3D FLOATING ANIMATION */
@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-15px) rotateX(2deg); }
}

.flip-card {
    height: 300px;
    perspective: 1500px; /* Increased depth */
    animation: float 6s ease-in-out infinite;
}

/* Stagger the floating so they don't move together */
.flip-card:nth-child(odd) { animation-delay: 1s; }
.flip-card:nth-child(even) { animation-delay: 2s; }

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.05); /* Zoom on flip */
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px; /* Softer corners */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px;
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* FRONT - Glassmorphism look */
.flip-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ICON - Neon Glow */
.service-icon {
    font-size: 65px;
    color: #06b6d4;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
    margin-bottom: 15px;
}

/* BACK - Modern Dark Gradient */
.flip-card-back {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    transform: rotateY(180deg);
    text-align: center;
}

.flip-card-back h3 {
    color: #22d3ee;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ================= MOBILE "SNAKE" STACK SCROLL ================= */
@media (max-width: 768px) {
    .portfolio-grid {
        display: block;
        padding-bottom: 100px;
    }

    .flip-card {
        position: sticky;
        top: 120px;
        margin-bottom: 80px; /* Spacing between sticky cards */
        height: 280px;
        animation: none; /* Disable float on mobile for stability */
    }

    /* STACK DEPTH & OVERLAP EFFECT */
    .flip-card:nth-child(1) { z-index: 1; transform: scale(0.85); opacity: 0.7; }
    .flip-card:nth-child(2) { z-index: 2; transform: scale(0.90); opacity: 0.8; }
    .flip-card:nth-child(3) { z-index: 3; transform: scale(0.95); opacity: 0.9; }
    .flip-card:nth-child(4) { z-index: 4; transform: scale(1); opacity: 1; }

    /* Shadow to show cards stacking on top of each other */
    .flip-card-front {
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    }
}
/* ============
other sections
============ */

/* ===== OTHER SERVICES FLIP SECTION ===== */
.other-services-section {
    padding: 100px 5%;
    background: radial-gradient(circle, rgba(55, 226, 241, 0.1) 0%, #ffffff 70%);
    text-align: center;
}

.services-main-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 60px;
}

.highlight-blue {
    color: #0099e6; /* Matching your primary blue */
}

/* Flip Card Core */
.flip-card {
    background-color: transparent;
    width: 320px;
    height: 320px;
    perspective: 1000px; /* Required for 3D effect */
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Front Side Styling */
.flip-front {
    background-color: #ffffff; /* Your signature Cyan */
    color: #1a2a3a;
}

.service-icon-wrapper img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0); /* Makes icons black for the clean look */
}

.service-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

/* Back Side Styling */
.flip-back {
    background-color: #1a2a3a; /* Dark blue matching your theme */
    color: #ffffff;
    transform: rotateY(180deg);
}

.service-name-back {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.flip-back p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-mini {
    padding: 8px 20px;
    border: 2px solid #37e2f1;
    color: #ffffff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-mini:hover {
    background: #37e2f1;
    color: #1a2a3a;
}

/* Responsive Grid */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
/* Styling for the new icons */
.service-icon-big {
    font-size: 80px; /* Adjust size to match your design */
    color: #1a2a3a; /* Dark blue/black color to match your theme */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* Optional: Slight pulse or bounce on hover */
.flip-card:hover .service-icon-big {
    transform: scale(1.1);
}

.service-icon-wrapper {
    margin-bottom: 25px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Contact Card Base Styling */
.contact-card {
    background-color: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #06b6d4; /* Subtle cyan highlight on hover */
}

/* Icon Container Styling */
.card-icon-container {
    background-color: #ffffff;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Text Container Styling */
.card-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-text p {
    line-height: 1.4;
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-150 { animation-delay: 0.15s; }
.delay-300 { animation-delay: 0.3s; }

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
        flex-direction: row;
    }
    
    .card-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .card-icon-container i {
        font-size: 2rem;
    }
}


@layer components {
  /* 3D Flip Container */
  .flip-card {
    @apply bg-transparent h-[350px] w-full perspective-1000;
  }

  .perspective-1000 {
    perspective: 1000px;
  }

  .flip-card-inner {
    @apply relative w-full h-full text-center transition-transform duration-700;
    transform-style: preserve-3d;
  }

  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front, .flip-card-back {
    @apply absolute w-full h-full backface-hidden rounded-3xl flex flex-col items-center justify-center p-8 shadow-lg border border-slate-100;
  }

  .backface-hidden {
    backface-visibility: hidden;
  }

  /* Front Side - Cyan Gradient */
  .flip-card-front {
    background: linear-gradient(135deg, #37e2f1, #2cb5c1);
    @apply z-20;
  }

  /* White Logo Box inside Front Side */
  .client-logo-wrapper {
    @apply bg-white p-6 rounded-2xl shadow-sm w-4/5 flex items-center justify-center aspect-video;
  }

  /* Back Side - Dark Navy */
  .flip-card-back {
    @apply bg-slate-900 text-white z-10;
    transform: rotateY(180deg);
  }

  .view-project-link {
    @apply mt-6 px-6 py-2 border border-cyan-400 text-cyan-400 rounded-full font-bold text-sm hover:bg-cyan-400 hover:text-slate-900 transition-all duration-300;
  }
}





