/* 
* CampusUdaan - Main Stylesheet
* A professional SaaS platform for educational institutions
*/

/* ===== VARIABLES ===== */
:root {
    --primary-color: #4CAF91;
    --secondary-color: #FF7F50;
    --accent-color: #FF7F50;
    --background-color: #F9FAFB;
    --text-color: #333333;
    --body-text-color: #555555;
    --light-gray: #F9FAFB;
    --medium-gray: #E0E0E0;
    --dark-gray: #555555;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --hero-bg-particles: #B3D4FC;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--body-text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    color: #333333;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title.text-center {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4CAF91, #FF7F50);
}

.section-subtitle {
    color: #555555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    box-shadow: 0 2px 10px rgba(76, 175, 145, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3d9a7e;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #ff6a3c;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #ff6a3c;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ===== PAGE BANNER & BREADCRUMB ===== */
.page-banner {
    background: linear-gradient(135deg, #4CAF91, #45a049) !important;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 180px; /* Ensure minimum height */
    width: 100%;
    box-sizing: border-box;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Bubble Animation */
.bubble {
    position: absolute;
    bottom: -100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: bubble-rise 15s infinite ease-in;
    z-index: 1;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 20%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 40px;
    height: 40px;
    left: 35%;
    animation-duration: 13s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 15%;
    animation-duration: 18s;
    animation-delay: 0.5s;
}

.bubble:nth-child(5) {
    width: 50px;
    height: 50px;
    right: 30%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 70px;
    height: 70px;
    left: 5%;
    animation-duration: 14s;
    animation-delay: 1.5s;
}

.bubble:nth-child(7) {
    width: 45px;
    height: 45px;
    left: 50%;
    animation-duration: 17s;
    animation-delay: 0.7s;
}

.bubble:nth-child(8) {
    width: 65px;
    height: 65px;
    right: 40%;
    animation-duration: 13.5s;
    animation-delay: 2.5s;
}

.bubble:nth-child(9) {
    width: 90px;
    height: 90px;
    right: 5%;
    animation-duration: 19s;
    animation-delay: 1.2s;
}

.bubble:nth-child(10) {
    width: 55px;
    height: 55px;
    left: 15%;
    animation-duration: 15.5s;
    animation-delay: 3.5s;
}

.bubble:nth-child(11) {
    width: 75px;
    height: 75px;
    left: 40%;
    animation-duration: 16.5s;
    animation-delay: 0.3s;
}

.bubble:nth-child(12) {
    width: 35px;
    height: 35px;
    right: 25%;
    animation-duration: 14.5s;
    animation-delay: 2.2s;
}

.bubble:nth-child(13) {
    width: 85px;
    height: 85px;
    left: 25%;
    animation-duration: 17.5s;
    animation-delay: 1.7s;
}

.bubble:nth-child(14) {
    width: 30px;
    height: 30px;
    right: 10%;
    animation-duration: 13.2s;
    animation-delay: 0.9s;
}

.bubble:nth-child(15) {
    width: 95px;
    height: 95px;
    left: 45%;
    animation-duration: 18.5s;
    animation-delay: 2.7s;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-1000px) scale(1.5);
        opacity: 0;
    }
}

.breadcrumb {
    display: flex;
    background-color: transparent;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\2192';
    color: rgba(255, 255, 255, 0.7);
    padding: 0 8px;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Responsive styles for page banner */
@media (max-width: 768px) {
    .page-banner {
        padding: 100px 0 30px;
        min-height: 160px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .breadcrumb-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-banner {
        padding: 90px 0 25px;
        min-height: 150px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 477px) {
    .page-title {
        font-size: 1.7rem;
        line-height: 1.2;
    }
}

@media (max-width: 425px) {
    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .page-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 375px) {
    .page-title {
        font-size: 1rem;
    }
}

@media (max-width: 340px) {
    .page-banner {
        padding: 85px 0 20px;
        min-height: 140px;
        width: 100% !important;
        background: linear-gradient(135deg, #4CAF91, #45a049) !important;
    }
    
    .page-title {
        font-size: 0.3rem;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .breadcrumb-item {
        font-size: 0.75rem;
    }
    
    /* Ensure bubbles are still visible */
    .bubble {
        opacity: 0.8 !important;
    }
    
    /* Force container to maintain width */
    .page-banner .container {
        width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Additional fixes for very small screens */
    html, body {
        min-width: 320px; /* Prevent page from becoming narrower than this */
        overflow-x: hidden;
    }
    
    .page-banner::before,
    .page-banner::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #4CAF91, #45a049) !important;
        z-index: 0;
    }
}

/* About Section Styles */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
    transition: all 0.3s ease;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 40%;
    height: 40%;
    background: rgba(255, 127, 80, 0.1);
    border-radius: 10px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: linear-gradient(135deg, #4CAF91, #3d9a7e);
    color: white;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(76, 175, 145, 0.3);
    border: 5px solid white;
    z-index: 3;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 145, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 145, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 145, 0);
    }
}

.experience-badge:hover {
    transform: scale(1.05) rotate(5deg);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.highlight-text {
    font-size: 1.2rem;
    color: #4CAF91;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 3px solid #4CAF91;
    padding-left: 15px;
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: #4CAF91;
    font-size: 1.2rem;
}

/* Mission & Vision Styles */
.mission-vision-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.mission-vision-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(76, 175, 145, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mission-box .icon-wrapper {
    background: rgba(76, 175, 145, 0.1);
}

.vision-box .icon-wrapper {
    background: rgba(255, 127, 80, 0.1);
}

.icon {
    font-size: 2rem;
}

.mission-box .icon i {
    color: #4CAF91;
}

.vision-box .icon i {
    color: #FF7F50;
}

.mission-vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333333;
}

.card-shape {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(76, 175, 145, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.vision-box .card-shape {
    background: rgba(255, 127, 80, 0.05);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

/* Medium devices (tablets, between 769px and 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .nav-list {
        display: flex;
        justify-content: center;
        margin-right: 15px;
    }
    
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .nav-button {
        margin-left: 10px;
    }
    
    .nav-button .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .header-container {
        padding: 10px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
}

/* Mobile devices (less than 769px) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-bottom-left-radius: 30px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .nav-item {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 12px 0;
        display: block;
        font-weight: 600;
    }
    
    .nav-button {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-button .btn {
        width: 80%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Menu close button removed */
}

.nav-list {
    display: flex;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

.nav-button {
    margin-left: 20px;
}

.hamburger {
    display: none; /* Hidden by default for desktop */
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 145, 0.1);
    border-radius: 50%;
    position: relative;
    z-index: 1000;
    transition: var(--transition);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger:hover {
    background-color: rgba(76, 175, 145, 0.2);
}

.bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    transition: var(--transition);
    background-color: var(--primary-color);
    border-radius: 2px;
    position: relative;
    left: 0;
}

/* ===== VIDEO POPUP ===== */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.popup-fade-in {
    opacity: 1;
}

.popup-fade-out {
    opacity: 0;
}

#video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#video-popup.active {
    opacity: 1;
    visibility: visible;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 1000px;
    /* 16:9 aspect ratio */
    padding-bottom: 45%; /* 16:9 aspect ratio */
    height: 0;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    border: 4px solid var(--primary-color);
}

#video-popup.active .video-container {
    transform: scale(1);
    opacity: 1;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute !important;
    top: 15px !important; /* Position at the top of the video */
    right: 15px !important; /* Position at the right of the video */
    width: 36px !important;
    height: 36px !important;
    background-color: var(--primary-color) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7) !important;
}

.close-video i {
    transition: all 0.3s ease;
    font-size: 20px;
}

.close-video:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.close-video:hover i {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .video-container {
        width: 95%;
        padding-bottom: 53.4375%; /* 16:9 aspect ratio for mobile */
    }
    
    .close-video {
        top: 15px !important;
        right: 15px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

@media (max-width: 480px) {
    .video-container {
        width: 95%;
        padding-bottom: 53.4375%; /* 16:9 aspect ratio for mobile */
    }
    
    .close-video {
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
    }
    
    .close-video i {
        font-size: 12px !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background-color: var(--background-color);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.7;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    background-color: var(--light-gray);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.clients-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--dark-gray);
}

.clients-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.clients-track {
    display: flex;
    width: fit-content;
    animation: marquee 20s linear infinite; /* Faster animation */
    position: relative;
    will-change: transform; /* Performance optimization */
    backface-visibility: hidden; /* Performance optimization */
}

.clients-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.clients-logo {
    height: 60px;
    width: 150px; /* Slightly smaller for better mobile display */
    object-fit: contain;
    opacity: 0.8; /* Slightly more visible */
    transition: all 0.3s ease;
    margin: 0 10px; /* Even smaller gap between logos */
    filter: grayscale(20%); /* Subtle grayscale effect */
}

.clients-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move exactly half the width for seamless loop */
    }
}

/* Mobile optimization for client logos */
@media (max-width: 768px) {
    .clients-slider {
        padding: 5px 0;
    }
    
    .clients-track {
        animation: marquee 15s linear infinite; /* Even faster on mobile */
    }
    
    .clients-logo {
        height: 50px;
        width: 120px; /* Smaller on mobile */
        margin: 0 5px; /* Smaller gap on mobile */
    }
}

/* Pause animation on hover */
.clients-track:hover {
    animation-play-state: paused;
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover:before {
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    background-color: rgba(76, 175, 145, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--dark-gray);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.workflow-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 30px 0;
}

.workflow-timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    z-index: 1;
}

.workflow-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.workflow-item:nth-child(even) {
    flex-direction: row-reverse;
}

.workflow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d9a7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(76, 175, 145, 0.3);
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 30px;
}

.workflow-item:hover .workflow-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(76, 175, 145, 0.4);
}

.workflow-content {
    background-color: white;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    position: relative;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-item:hover .workflow-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.workflow-step {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.workflow-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.workflow-description {
    color: var(--body-text-color);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .workflow-timeline {
        left: 40px;
    }
    
    .workflow-item,
    .workflow-item:nth-child(even) {
        flex-direction: row;
        margin-left: 0;
    }
    
    .workflow-icon {
        margin-right: 20px;
        margin-left: 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .workflow-content {
        padding: 20px;
    }
    
    .workflow-title {
        font-size: 1.3rem;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--background-color);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    max-width: 350px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--dark-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* ===== Stats Section ===== */
.stats-section {
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: #4CAF91;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.stat-box:nth-child(even) .stat-icon {
    color: #FF7F50;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-title {
    font-size: 1.2rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-description {
    font-size: 0.9rem;
    color: #555555;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .stat-box {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-title {
        font-size: 1.1rem;
    }
    
    .stat-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===== CTA SECTION ===== */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-about p {
    margin-bottom: 20px;
    color: #aaa;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-image {
        margin-bottom: 50px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-image::before {
        top: -10px;
        left: -10px;
    }
    
    .about-image::after {
        bottom: -10px;
        right: -10px;
        width: 30%;
        height: 30%;
    }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        bottom: -20px;
        right: -15px;
    }
    
    .experience-badge .years {
        font-size: 1.6rem;
    }
    
    .experience-badge .text {
        font-size: 0.75rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .about-image {
        max-width: 100%;
        margin-bottom: 60px;
    }
    
    .about-image::before {
        top: -8px;
        left: -8px;
        border-width: 1px;
    }
    
    .about-image::after {
        width: 25%;
        height: 25%;
        bottom: -8px;
        right: -8px;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        border-width: 4px;
        bottom: -15px;
        right: -10px;
    }
    
    .experience-badge .years {
        font-size: 1.4rem;
    }
    
    .experience-badge .text {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}
