/* ================================
   Section Styles
   ================================ */

/* Common Section Styles */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: #2d3e50;
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* NOTE: Hero section is in home.css (has image slider functionality) */

/* Expertise Section - Image-Based Cards */
.expertise {
    background: #ffffff;
    padding: 4rem 0;
    position: relative;
}

.expertise-header {
    text-align: center;
    margin-bottom: 4rem;
}

.expertise-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3e50;
    margin-bottom: 0.5rem;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.title-decoration .dot {
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.title-decoration .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.title-decoration .dot:nth-child(3) {
    animation-delay: 0.4s;
}

.title-decoration .line {
    width: 60px;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
}

.expertise-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.expertise-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.expertise-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.expertise-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover .expertise-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expertise-card:hover .image-overlay {
    opacity: 1;
}

.expertise-content {
    padding: 2rem;
    background: var(--white);
}

.expertise-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.expertise-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #6c757d;
    margin: 0;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* About Section - Modern Story-Driven Layout */
.about {
    background: #f8f9fa;
    padding: 4rem 0 0;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.2s forwards;
}

.about-tagline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff6b35;
    margin-bottom: 1rem;
    position: relative;
}

.about-tagline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #ff6b35;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: #2d3e50;
    font-weight: 600;
}

.about-visual {
    position: relative;
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
}

.about-illustration img {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.1));
}

/* Features Bar */
.features-bar {
    background: linear-gradient(135deg, #3b4a8c 0%, #2d3766 100%);
    padding: 2.5rem 0;
    margin-top: -2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.4s;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--white);
    padding: 4rem 0;
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image {
    position: relative;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.2s forwards;
}

.why-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.why-content {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
}

.why-tagline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff6b35;
    margin-bottom: 1rem;
    position: relative;
}

.why-tagline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #ff6b35;
}

.why-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2d3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.why-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 2rem;
}

.why-description strong {
    color: #2d3e50;
    font-weight: 600;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: #4a5568;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.why-list li:nth-child(1) { animation-delay: 0.6s; }
.why-list li:nth-child(2) { animation-delay: 0.7s; }
.why-list li:nth-child(3) { animation-delay: 0.8s; }
.why-list li:nth-child(4) { animation-delay: 0.9s; }
.why-list li:nth-child(5) { animation-delay: 1s; }

.why-list li i {
    color: #ff6b35;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-list li span {
    font-weight: 500;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ================================
   Page Header (for internal pages)
   ================================ */
.page-header {
    background: linear-gradient(135deg, rgba(45, 90, 143, 0.95), rgba(233, 30, 99, 0.85)), 
                url('../assets/images/hero/slide1 new.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ================================
   Mission & Vision Section
   ================================ */
.mission-vision {
    padding: 60px 0;
    background: #f8f9fa;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-box,
.vision-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-box:hover,
.vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.mv-icon i {
    font-size: 36px;
    color: #fff;
}

.mv-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.mv-text {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
}

/* ================================
   Who We Are Section
   ================================ */
.who-we-are {
    padding: 80px 0;
    background: #fff;
}

.who-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.who-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.who-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.who-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.who-intro {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

.who-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.who-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

.who-list i {
    color: #667eea;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ================================
   Our Team Section
   ================================ */
.our-team {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.team-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-icon i {
    font-size: 24px;
    color: #fff;
}

.team-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* ================================
   Why Us Section
   ================================ */
.why-us {
    padding: 80px 0;
    background: #fff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.why-icon i {
    font-size: 32px;
    color: #fff;
}

.why-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.why-card p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
}


/* ================================
   Contact Section Styles
   ================================ */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-heading {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: #fff;
}

.contact-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.contact-content p,
.contact-content a {
    font-size: 16px;
    color: #64748b;
    text-decoration: none;
}

.contact-content a:hover {
    color: #667eea;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2d5a8f, #1e3f6b);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInIcon {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Optimized float animation - GPU accelerated */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================
   Our Clients Section - Logo Marquee
   ================================ */

.clients-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.clients-section .section-subtitle {
    margin-bottom: 2.5rem;
    color: #64748b;
}

/* Logo Marquee Container */
.logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    /* CSS custom property for dynamic duration */
    --marquee-duration: 30s;
}

/* Fade Edges - Gradient Overlays */
.marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(30px, 8vw, 120px);
    z-index: 10;
    pointer-events: none;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

/* Scrolling Track */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration) linear infinite;
    will-change: transform;
}

/* Pause on Hover (desktop only) */
@media (hover: hover) {
    .logo-marquee:hover .marquee-track {
        animation-play-state: paused;
    }
}

/* Content Container (repeated for seamless loop) */
.marquee-content {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: 0 clamp(0.75rem, 2vw, 2rem);
}

/* Individual Logo Item */
.client-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 1vw, 1rem) clamp(0.75rem, 1.5vw, 1.5rem);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo Image */
.client-logo img {
    height: clamp(32px, 6vw, 50px);
    width: auto;
    max-width: clamp(80px, 15vw, 140px);
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}

/* Hover Effects (desktop only) */
@media (hover: hover) {
    .client-logo:hover {
        transform: scale(1.15);
    }
}

/* Touch devices styling */
@media (hover: none) {
    .client-logo img {
        /* Keep original colors on touch devices */
    }
}

/* Marquee Animation Keyframes */
@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ================================
   Clients Section - Responsive
   ================================ */

@media (max-width: 1024px) {
    .clients-section {
        padding: 4rem 0 3rem;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 3rem 0 2.5rem;
    }
    
    .clients-section .section-title {
        font-size: 2rem;
    }
    
    .clients-section .section-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .logo-marquee {
        padding: 0.75rem 0;
    }
    
    .marquee-fade {
        width: clamp(20px, 6vw, 60px);
    }
}

@media (max-width: 480px) {
    .clients-section {
        padding: 2.5rem 0 2rem;
    }
    
    .clients-section .section-title {
        font-size: 1.75rem;
    }
    
    .clients-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .logo-marquee {
        padding: 0.5rem 0;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .marquee-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .marquee-content:nth-child(2) {
        display: none;
    }
    
    .client-logo {
        transform: none !important;
    }
    
    .marquee-fade {
        display: none;
    }
}

