/* 
=======================================================
   Mediagize  Marketing Agency - Main Stylesheet
   Author: Mediagize Team
   Version: 1.0
======================================================= 
*/

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #f8b170;
    --secondary-color: #161e31;
    --accent-color: #63ff6c;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    
    /* Typography */
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --gutter: 30px;
    --section-spacing: 100px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Base theme colors - applied to body */
body {
    --hero-bg: #f8f9fa; /* Light gray background for light mode */
    --hero-text: #333; /* Dark text for light mode */
    --wave-fill: #1a1a1a !important; /* Dark wave in light mode */
}

/* ===== DARK THEME VARIABLES ===== */
body[data-theme="dark"] {
    --text-color: #f8f9fa;
    --text-light: #cdcdcd;
    --bg-color: #000000;
    --bg-light: #000000;
    --hero-bg: #000000;
    --hero-text: #fff;
    --wave-fill: #f5f5f5 !important;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px; /* Reduced base font size */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-medium);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: bounce 1.5s infinite ease-in-out;
}

.circle:nth-child(2) {
    animation-delay: 0.3s;
    background-color: var(--secondary-color);
}

.circle:nth-child(3) {
    animation-delay: 0.6s;
    background-color: var(--accent-color);
}

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

/* ===== TYPOGRAPHY ===== */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline;
    position: relative;
}

.hero-title-accent {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin: 0;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 0 1px rgba(0,0,0,0.1); /* Subtle shadow for better readability */
}

.hero-title .text-gradient {
    background: linear-gradient(45deg, #6c63ff, #ff6c63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title .subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-title .subtitle:before,
.section-title .subtitle:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-title .subtitle:before {
    left: -40px;
}

.section-title .subtitle:after {
    right: -40px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.title-desc {
    max-width: 650px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: capitalize;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

/* ===== HEADER & NAVIGATION ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: all var(--transition-fast);
}

#header.sticky {
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo-text {
    color: #f8b179;
    font-size: 2.5rem;
    font-weight: 500;
}

.logo-accent {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.nav-menu {
    display: flex;
}

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

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

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

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

/* New theme toggle with slider */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 30px;
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    border-radius: 30px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.theme-toggle-label:before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: all var(--transition-fast);
    z-index: 2;
}

.theme-toggle-checkbox:checked + .theme-toggle-label {
    background-color: var(--primary-color);
}

.theme-toggle-checkbox:checked + .theme-toggle-label:before {
    transform: translateX(30px);
}

.theme-toggle .fa-sun {
    color: #f1c40f;
    font-size: 14px;
    z-index: 1;
}

.theme-toggle .fa-moon {
    color: #2c3e50;
    font-size: 14px;
    z-index: 1;
}

[data-theme="dark"] .theme-toggle-label {
    background-color: #2c3e50;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all var(--transition-fast);
    background-color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: visible;
    padding-top: 100px;
    padding-bottom: 80px;
    background-color: var(--hero-bg);
    color: var(--hero-text);
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

.hero-content {
    max-width: 600px;
}

.hero-title-container {
    margin-bottom: 1 rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-text {
    color: #fff;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Ensure hero section buttons have proper contrast in both themes */
.hero .btn-outline {
    color: var(--hero-text);
    border: 2px solid var(--hero-text);
}

.hero .btn-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 25%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 3;
    height: 40%;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 3;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    animation: float 6s infinite ease-in-out;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    animation: float 8s infinite ease-in-out;
}

.shape-3 {
    top: 50%;
    right: 30%;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    animation: float 7s infinite ease-in-out;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    min-width: 100px;
    text-align: left;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    color: #fff;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* New wave separator styles */
.section-wave {
    position: relative;
    display: block;
    width: 100%;
    height: 250px; /* Reduced height */
    margin-top: -1px;
    z-index: 1;
    background-color: var(--hero-bg);
    transition: background-color var(--transition-medium);
    overflow: hidden; /* Ensure wave stays within bounds */
}

.section-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fixed height */
    transform: none; /* Remove scaling */
}

.section-wave svg path, 
.theme-wave path {
    fill: var(--wave-fill);
    transition: fill 0.5s ease;
}

/* Override any inline SVG fill attributes */
svg.theme-wave path {
    fill: var(--wave-fill) !important;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding-top: 0;
    padding-bottom: 50px;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.clients-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.client-logo {
    flex: 0 0 calc(20% - 30px);
    margin: 15px;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== ABOUT SECTION ===== */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 0 0 48%;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    right: -30px;
    bottom: 30px;
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.experience-badge span {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge p {
    margin-bottom: 0;
    color: #fff;
    font-size: 0.9rem;
}

.about-content {
    flex: 0 0 47%;
}

.about-title {
    margin-bottom: 20px;
}

.about-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.feature-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.feature-item p {
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.video-btn {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    position: relative;
    z-index: 1;
}

.play-icon:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.3);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* ===== SERVICES SECTION ===== */
.tab-container {
    margin-bottom: 50px;
}

.tab-buttons, .portfolio-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
  .tab-buttons, .portfolio-filter {
    gap: 12px;
    flex-wrap: wrap;
  }
}

.tab-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.tab-btn:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active:after,
.tab-btn:hover:after {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

.tab-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tab-text {
    flex: 0 0 50%;
}

.tab-text h3 {
    margin-bottom: 20px;
}

.service-list {
    margin: 25px 0;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.tab-img {
    flex: 0 0 45%;
}

.tab-img img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.2);
}

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

.service-card:hover * {
    color: #fff;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all var(--transition-medium);
}

.service-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
    transition: all var(--transition-medium);
}

.service-card p {
    margin-bottom: 20px;
    transition: all var(--transition-medium);
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-medium);
}

.service-link i {
    margin-left: 5px;
    transition: all var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    color: #354f8b;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(224, 150, 11, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ===== PORTFOLIO SECTION ===== */


.filter-btn {
    padding: 8px 20px;
    margin: 5px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 5px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.portfolio-image {
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all var(--transition-medium);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-medium);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

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

.overlay-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-title {
    color: #fff;
    margin-bottom: 15px;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.portfolio-link:hover {
    background: var(--secondary-color);
    transform: rotate(45deg);
}

/* ===== COUNTER SECTION ===== */
.counter-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.8), rgba(255, 108, 99, 0.8));
}

.counter-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
}

.counter-item {
    flex: 1;
    padding: 0 20px;
    margin-bottom: 30px;
    min-width: 200px;
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.counter-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.counter-item p {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-top: 15px;
}

.testimonial-rating {
    color: #ffd700;
    margin: 10px 0;
}

.testimonial-card .team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.testimonial-card .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .testimonials-wrapper {
        padding: 10px;
    }
    
    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .testimonials-wrapper {
        gap: 15px;
    }
    
    .testimonial-card {
        padding: 15px;
    }
}



/* ===== CONTACT SECTION ===== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-details p {
    margin-bottom: 0;
}

.contact-social {
    margin-top: 40px;
}

.contact-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

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

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

/* ===== MAP SECTION ===== */
.map-section {
    height: 400px;
}

#map {
    width: 100%;
    height: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding-top: 80px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.about-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

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

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.widget-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

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

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
        --gutter: 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
        --section-spacing: 80px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    .about-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    .about-image, .about-content {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .about-image {
        margin-bottom: 20px;
        text-align: center;
    }
    .about-image img {
        margin: 0 auto;
    }
    .experience-badge {
        position: static;
        margin: 10px auto 0 auto;
        display: inline-block;
    }
    .tab-flex {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    .tab-img, .tab-text {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .tab-img {
        margin-bottom: 20px;
        text-align: center;
    }
    .tab-img img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 540px;
        --section-spacing: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        padding: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    :root {
        --gutter: 15px;
        --section-spacing: 40px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title .subtitle {
        font-size: 0.9rem;
    }
    .about-wrapper {
        gap: 18px;
    }
    .about-image {
        margin-bottom: 10px;
    }
    .about-content {
        padding: 0;
    }
    .tab-flex {
        gap: 18px;
    }
    .tab-img {
        margin-bottom: 10px;
    }
    .tab-text {
        padding: 0;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Fix for the theme toggle slider */
.theme-toggle {
    z-index: 20;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Make sure form elements are responsive */
input, 
textarea, 
button,
.btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Theme wave styles */
.theme-wave path {
    fill: var(--wave-fill);
    transition: fill 0.5s ease;
}

.section-wave svg path {
    fill: var(--wave-fill);
    transition: fill var(--transition-medium);
}

/* Cursor blur effect styles */
.cursor-blur {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    background: radial-gradient(rgba(108, 99, 255, 0.15), rgba(255, 108, 99, 0.07));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* For Safari */
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Adjust blur effect for dark mode */
[data-theme="dark"] .cursor-blur {
    background: radial-gradient(rgba(108, 99, 255, 0.25), rgba(185, 56, 49, 0.1));
}

@media (max-width: 768px) {
    .cursor-blur {
        display: none; /* Hide on mobile as it doesn't make sense with touch */
    }
}

/* Service rotation styles */
.service-rotate {
    display: inline-block;
    min-width: 200px;
    min-height: 1.3em;
    vertical-align: middle;
    position: relative;
    background: linear-gradient(45deg, #945708, #e9760b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

.service-rotate::after {
    content: '';
    position: absolute;
    right: -5px;
    left: auto;
    height: 100%;
    width: 3px;
    border-left: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: blink 0.7s infinite;
    animation-fill-mode: both;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: initial;
}

@keyframes blink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .service-rotate {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .service-rotate {
        min-width: 120px;
    }
}

/* Contact Form Status Styles */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-status.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-status.loading {
    display: block;
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Ensure all sections in dark mode have black background */
body[data-theme="dark"] .section,
body[data-theme="dark"] .bg-light,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .about-section,
body[data-theme="dark"] .services-section,
body[data-theme="dark"] .portfolio-section,
body[data-theme="dark"] .testimonials-section,
body[data-theme="dark"] .team-section,
body[data-theme="dark"] .contact-section,
body[data-theme="dark"] .footer {
    background-color: #000000 !important;
}

/* Expanded Content Styles */
.service-card .expanded-content {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card .expanded-content.active {
    display: block;
}

.service-card .expanded-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-card .expanded-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-card .expanded-content ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Read More Button */
.read-more-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}

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

/* Get in Touch Button */
.get-in-touch-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.get-in-touch-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

/* FAQ Styles */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Dark Mode Support */
[data-theme="dark"] .service-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-question {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .faq-question:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .dropdown {
        position: static;
    }

    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 10px 0;
        display: none;
        width: 100%;
        text-align: center;
    }

    .dropdown-content.active {
        display: block;
    }

    .dropdown-content a {
        padding: 10px 20px;
        color: var(--text-color);
        display: block;
        margin: 5px 0;
    }

    .dropdown-content a:hover {
        background: rgba(108, 99, 255, 0.1);
        color: var(--primary-color);
    }

    .nav-link i {
        transition: transform 0.3s ease;
    }

    .nav-link.active i {
        transform: rotate(180deg);
    }
}

/* Program Page Specific Styles */
.internship-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.internship-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1.2rem;
}

.internship-content h3 {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
}

.internship-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.internship-content ul li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.benefit-item {
    padding: 1.2rem;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.benefit-item p {
    font-size: 0.9rem;
}

.tab-button {
    padding: 1rem 2rem;
    font-size: 0.95rem;
}

.tab-content {
    padding: 2rem;
}

/* Program Page Responsive Styles */
@media (max-width: 992px) {
    .internship-content h1 {
        font-size: 2rem;
    }
    
    .internship-content h2 {
        font-size: 1.6rem;
    }
    
    .internship-content h3 {
        font-size: 1.3rem;
    }
    
    .benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .intro-flex-container {
        flex-direction: column;
        gap: 2rem;
    }

    .intro-image-content img {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .section-grid, .mission-grid, .benefits-grid, .target-grid, .impact-grid, .highlights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-image img, .mission-image img, .benefits-image img, .target-image img, .impact-image img, .highlights-image img {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .internship-content h1 {
        font-size: 1.8rem;
    }
    
    .internship-content h2 {
        font-size: 1.4rem;
    }
    
    .internship-content h3 {
        font-size: 1.2rem;
    }
    
    .internship-content p {
        font-size: 0.9rem;
    }
    
    .internship-content ul li {
        font-size: 0.85rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .benefit-item h4 {
        font-size: 1rem;
    }
    
    .benefit-item p {
        font-size: 0.85rem;
    }
    
    .tab-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tab-content {
        padding: 1.5rem;
    }

    .position-card {
        padding: 1.2rem;
    }

    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .position-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .position-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .internship-content h1 {
        font-size: 1.6rem;
    }
    
    .internship-content h2 {
        font-size: 1.3rem;
    }
    
    .internship-content h3 {
        font-size: 1.1rem;
    }
    
    .internship-content p {
        font-size: 0.85rem;
    }
    
    .internship-content ul li {
        font-size: 0.8rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.8rem;
    }
    
    .benefit-item h4 {
        font-size: 0.95rem;
    }
    
    .benefit-item p {
        font-size: 0.8rem;
    }
    
    .tab-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .tab-content {
        padding: 1rem;
    }

    .mission-goals, .collaboration-partners, .target-audience {
        padding: 1.2rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .cta-image img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

/* Enhanced Program Page Styles */
.intro-flex-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.intro-text-content {
    flex: 1;
}

.intro-image-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-image-content img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.intro-image-content:hover img {
    transform: scale(1.05);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.1);
}

.position-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.1);
}

.position-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.position-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.position-tags {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.position-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.position-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 2rem 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Responsive Animations */
@media (prefers-reduced-motion: no-preference) {
    .benefit-item, .position-card, .cta-button {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
    }

    .benefit-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .benefit-item:nth-child(3) {
        animation-delay: 0.4s;
    }

    .benefit-item:nth-child(4) {
        animation-delay: 0.6s;
    }

    .benefit-item:nth-child(5) {
        animation-delay: 0.8s;
    }

    .benefit-item:nth-child(6) {
        animation-delay: 1s;
    }
}

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

/* Modern Team Section Enhancements */
.modern-team-image {
    width: 100%;
    height: 220px;
    margin: 0 auto 20px auto;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.10);
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modern-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s;
}
.team-card:hover .modern-team-image img {
    transform: scale(1.05);
}
.modern-team-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    border-radius: 0 0 50% 50%;
    padding: 8px 0 4px 0;
    opacity: 1;
    transition: background 0.3s;
    z-index: 2;
}
.modern-team-social a {
    color: var(--primary-color);
    font-size: 1.3rem;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(108,99,255,0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.modern-team-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}
.team-info {
    text-align: center;
    padding: 0 10px 20px 10px;
}
.team-tagline {
    font-size: 0.98rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
    line-height: 1.5;
}
.team-card {
    background: rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    margin: 20px 10px;
    padding: 30px 20px 10px 20px;
    max-width: 320px;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover {
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.18);
    transform: translateY(-8px) scale(1.03);
}
.team-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
    padding: 20px 0 0 0;
}
@media (max-width: 900px) {
    .team-wrapper {
        gap: 24px 12px;
    }
    .team-card {
        max-width: 90vw;
    }
}
@media (max-width: 600px) {
    .team-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .team-card {
        max-width: 98vw;
        padding: 24px 8px 8px 8px;
    }
    .modern-team-image {
        width: 110px;
        height: 110px;
    }
}


