/* 
 * Imobmedia - Ultra Premium Digital Marketing Agency Theme
 * Colors: Primary Cyan #27499c, Dark Cyan #23265c, Soft Black #1A1A1A, Off White #F8F5F0, Light Gold #F5E6C8
 */

:root {
    /* Brand Colors */
    --clr-primary: #23265c;
    --clr-gold: #27499c;
    --clr-dark-gold: #1c3676;
    --clr-black: #1A1A1A;
    --clr-off-white: #F8F8F8;
    --clr-light-gold: #4a70d6;

    /* Theme Colors */
    --bg-dark: #FFFFFF;
    --bg-darker: #F8F8F8;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #1A1A1A;
    --text-muted: #666666;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-dark-gold) 100%);
    --gradient-primary: linear-gradient(135deg, var(--clr-primary) 0%, #15173b 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(39, 73, 156, 0.1) 0%, transparent 70%);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1280px;

    /* Animations */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--clr-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: left 0.15s ease-out, top 0.15s ease-out;
}

body:hover .cursor {
    opacity: 1;
}

/* =========================================
   FUTURISTIC PRELOADER
========================================= */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(34, 58, 103, 0.3);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmerText 2s linear infinite;
    position: relative;
}

.matrix-shape {
    perspective: 800px;
    margin-bottom: 1rem;
}

.cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateMatrixCube 4s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(34, 58, 103, 0.8);
    background: rgba(34, 58, 103, 0.05);
    box-shadow: 0 0 10px rgba(34, 58, 103, 0.4), inset 0 0 10px rgba(34, 58, 103, 0.4);
}

.front {
    transform: translateZ(30px);
}

.back {
    transform: rotateY(180deg) translateZ(30px);
}

.right {
    transform: rotateY(90deg) translateZ(30px);
}

.left {
    transform: rotateY(-90deg) translateZ(30px);
}

.top {
    transform: rotateX(90deg) translateZ(30px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

@keyframes rotateMatrixCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

.accent-text {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--clr-gold);
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(to right, #27499c, #4a70d6, #23265c, #27499c);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

.primary-text {
    color: var(--clr-primary);
}

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

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

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

/* =========================================
   LAYOUT & UTILITIES
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

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

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-dark-gold);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(39, 73, 156, 0.3);
    /* Premium blue border on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 73, 156, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary {
    background: var(--clr-gold);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(39, 73, 156, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 73, 156, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-off-white);
    border-color: var(--clr-primary);
}

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Underline Animation Link */
.link-animated {
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
    display: inline-block;
}

.link-animated::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ffffff;
    transition: var(--transition);
}

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

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 65px;
    transition: var(--transition);
}

.logo-scrolled {
    display: none;
}

.header.scrolled .logo-default {
    display: block;
}

.header.scrolled .logo-scrolled {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-gold);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #F8F8F8, #FFFFFF, #F8F8F8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(34, 58, 103, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(34, 58, 103, 0.1), transparent 25%);
    animation: floatNodes 10s ease-in-out infinite alternate;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatNodes {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-20px) scale(1.1);
    }
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* =========================================
   STATS SECTION
========================================= */
.stats-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 58, 103, 0.1);
    border-radius: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* =========================================
   CLIENT LOGOS STRIP
========================================= */
.clients-section {
    padding: 4rem 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.clients-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%;
}

.clients-track img {
    height: 75px;
    width: 75px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clients-track img:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 30px rgba(39, 73, 156, 0.2);
}


/* =========================================
   SERVICES PREVIEW GRID
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
}

/* =========================================
   PORTFOLIO (CASE STUDIES)
========================================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #ffffff;
}

.portfolio-img,
.portfolio-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
    opacity: 0.6;
}

.portfolio-img {
    object-fit: cover;
}

.portfolio-iframe-wrapper {
    overflow: hidden;
}

.portfolio-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: 0 0;
    pointer-events: none;
    border: none;
    background: #fff;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
    opacity: 0.3;
}

.portfolio-item:hover .portfolio-iframe-wrapper {
    opacity: 0.3;
}

.portfolio-item:hover .portfolio-iframe-wrapper iframe {
    transform: scale(0.26);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-category {
    color: var(--clr-gold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* =========================================
   PRICING
========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: #ffffff;
    transform: translateY(-10px);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-gold);
    color: var(--bg-darker);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0;
    font-family: var(--font-accent);
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-main);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: var(--clr-primary);
    margin-right: 1rem;
}

/* =========================================
   CONTACT FORM
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(34, 58, 103, 0.1);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--clr-primary);
    padding: 5rem 0 2rem;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget h4 {
    color: var(--clr-off-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-links a:hover {
    background: var(--clr-gold);
    color: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS & EFFECTS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   PAGE HEADERS (Internal Pages)
========================================= */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(180deg, rgba(34, 58, 103, 0.05) 0%, transparent 100%);
    text-align: center;
    position: relative;
}

.page-header h1 {
    margin-bottom: 1rem;
}

/* =========================================
   ABOUT PAGE EXTRAS
========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(34, 58, 103, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--clr-gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(34, 58, 103, 0.15);
}

.team-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.team-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-slow);
    z-index: 1;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    text-align: left;
    width: 100%;
    transform: translateY(20px);
    opacity: 0.9;
    transition: var(--transition);
}

.team-card:hover .team-info {
    transform: translateY(0);
    opacity: 1;
}

.team-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.team-info p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--clr-light-gold);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .stats-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 100;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-actions {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-grid,
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 2rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: -10px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .stats-wrap,
    .footer-grid,
    .portfolio-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--section-padding);
        /* Assuming we can override padding or adjust it if needed, but for now just grids are fixed */
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Technologies & Tools Cards */
.tool-card {
    width: 170px !important;
    padding: 2.5rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03) !important;
    border-radius: 20px !important;
}

.tool-card i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.tool-card p {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 22px 45px rgba(39, 73, 156, 0.12) !important;
    border-color: rgba(39, 73, 156, 0.3) !important;
}

.tool-card:hover i {
    transform: scale(1.25) translateY(-5px) !important;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15)) !important;
}

/* Enhanced Client Card UI */
.clients-track {
    gap: 2rem !important;
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.4s ease;
    cursor: default;
    width: 130px;
}

.client-icon-wrapper {
    width: 85px;
    height: 85px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
}

.client-icon-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
}

.client-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.client-card:hover .client-icon-wrapper {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(39, 73, 156, 0.15);
    border-color: rgba(39, 73, 156, 0.3);
}

.client-card:hover .client-name {
    color: var(--clr-primary);
    transform: translateY(-5px);
}

/* Infinite Marquee UI for Clients */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

/* Gradient fade on edges for smooth entry/exit */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

/* Pause on hover */
.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* Update client card inside marquee to look sleek */
.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 120px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.client-card:hover {
    transform: translateY(-8px);
}
