@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #04484E;
    --secondary: #004E89;
    --accent: #F7C948;
    --dark: #1A1A2E;
    --light: #FFFFFF;
    --gray: #64748B;
    --bg-light: #F8FAFC;
    --bg-section: #FFFFFF;
    --gradient: linear-gradient(135deg, #04484E 0%, #F7C948 100%);
    --gradient-blue: linear-gradient(135deg, #004E89 0%, #1A759F 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    touch-action: pan-y;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: var(--light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(4, 72, 78, 0.3);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(4, 72, 78, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    padding: 6rem 2rem 2rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    width: 100%;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-links a {
    font-size: 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    width: 100%;
}

.mobile-nav-links a:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ===== HERO SECTION FIXED ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translate(100vw, -100vh) scale(0); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-text h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* FIXED HERO BADGE - No longer hidden */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 100%;
    flex-wrap: wrap;
    white-space: nowrap;
    overflow: visible;
}

.hero-badge i {
    color: #04484E;
    flex-shrink: 0;
}

.hero-badge span {
    font-weight: 600;
    color: var(--dark);
    white-space: normal;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.4s backwards;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 10px 30px rgba(4, 72, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 72, 78, 0.5);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--light);
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.8s backwards;
}

.hero-image {
    width: 100%;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.floating-card {
    position: absolute;
    background: var(--light);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: floatCard 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 1s;
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.floating-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.floating-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 5rem 3rem;
    background: var(--light);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    background: var(--light);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose {
    padding: 8rem 3rem;
    background: var(--bg-light);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    background: rgba(4, 72, 78, 0.1);
    color: #04484E;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

.why-choose-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-choose-image {
    position: relative;
}

.why-choose-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.badge-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--light);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.badge-overlay h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.badge-overlay p {
    color: var(--gray);
    font-size: 0.95rem;
}

.why-choose-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.why-choose-text > p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--light);
    font-size: 1.3rem;
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 8rem 3rem;
    background: var(--light);
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--light);
    padding: 3rem;
    border-radius: 30px;
    border: 2px solid var(--bg-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 8rem 3rem;
    background: var(--bg-light);
    overflow: hidden;
}

.portfolio-container {
    max-width: 1600px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--bg-light);
    background: var(--light);
    color: var(--dark);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--light);
    box-shadow: var(--shadow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    display: inline-block;
    background: var(--gradient);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.portfolio-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.portfolio-overlay p {
    color: var(--bg-light);
}

/* ===== PORTFOLIO CAROUSEL ===== */
.portfolio-carousel {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 30px;
    cursor: grab;
}

.portfolio-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide .portfolio-item {
    width: 90%;
    margin: 0 auto;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--light);
    box-shadow: var(--shadow);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 8rem 3rem;
    background: var(--light);
}

.team-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--light);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 2px solid var(--bg-light);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.team-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--gradient);
    color: var(--light);
    transform: translateY(-3px);
}

.team-image.initials {
    background-color: var(--primary);
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-section {
    padding: 8rem 3rem;
    background: var(--bg-light);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info {
    background: var(--light);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray);
}

.contact-form-wrapper {
    background: var(--light);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-light);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--dark);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient);
    color: var(--light);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(4, 72, 78, 0.3); 
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 72, 78, 0.5);
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: 8rem 3rem;
    background: var(--light);
}

.clients-grid {
    max-width: 1400px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.client-logo:hover {
    background: var(--light);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.client-logo img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 5rem 3rem 2rem;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-brand p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-apps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-apps a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-apps a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--light);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 0.2rem 0;
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN - UPDATED ===== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        line-height: 1.2;
        margin-top: 1rem; /* Added spacing from navbar */
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        display: none; /* Hide image on tablet and mobile */
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        display: none;
    }
    
    .portfolio-carousel {
        display: block;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: 1.5rem; /* More spacing on mobile */
        margin-bottom: 1.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Hide hero badge on mobile */
    .hero-badge {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 2rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero,
    .services,
    .portfolio,
    .clients,
    .contact-section,
    footer,
    .stats,
    .why-choose,
    .team {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .portfolio-item {
        height: 350px;
    }
    
    .team-image {
        height: 250px;
    }
    
    .badge-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: -50px;
        margin-left: 20px;
        width: calc(100% - 40px);
    }
    
    /* Portfolio overlay always visible on mobile */
    .portfolio-overlay {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-top: 2rem; /* Even more spacing on very small screens */
        margin-bottom: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .mobile-nav-links a {
        font-size: 1.2rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    .team-image {
        height: 200px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-apps {
        flex-direction: column;
    }
    
    .footer-apps a {
        justify-content: center;
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .team-card:hover {
        transform: none;
    }
    
    .portfolio-item:hover {
        transform: none;
    }
    
    .portfolio-overlay {
        opacity: 1;
    }
    
    .portfolio-item:hover .portfolio-image {
        transform: none;
    }
    
    .client-logo:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-cta:hover {
        transform: none;
    }
    
    .floating-card {
        animation: none;
    }
}