/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0066CC;
    --secondary: #6C63FF;
    --accent: #FF6B35;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF8555 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    text-align: center;
    margin-bottom: 10px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 8px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn--primary:hover {
    transform: translateY(-4px) translateZ(0) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.5), 0 0 20px rgba(108, 99, 255, 0.3);
}

.btn--outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn--outline:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) translateZ(0) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.4);
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

.loader-text {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    background: var(--bg-primary);
    box-shadow: 0 2px 20px var(--shadow);
    padding: 10px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav__toggle,
.nav__close {
    display: none;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
}

.theme-toggle:hover svg {
    stroke: #fff;
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(108, 99, 255, 0.05) 100%);
    z-index: -1;
}

.hero__particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero__greeting {
    display: inline-block;
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.hero__title {
    margin-bottom: 15px;
}

.hero__profession {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    height: 40px;
}

.typewriter {
    display: inline;
}

.cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
}

.hero__subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero__social {
    display: flex;
    gap: 15px;
}

.hero__social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hero__social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient);
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
}

.hero__social a:hover::before {
    transform: scale(1);
}

.hero__social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
}

.hero__social svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.hero__social a:hover svg {
    fill: #fff;
    transform: scale(1.1);
}

.hero__image {
    display: flex;
    justify-content: center;
}

.hero__image-wrapper {
    position: relative;
}

.hero__img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__img:hover {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 30px 80px rgba(108, 99, 255, 0.4),
        0 0 40px rgba(0, 102, 204, 0.3),
        0 0 60px rgba(108, 99, 255, 0.2);
}

.hero__image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 3s infinite;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 25px;
    display: flex;
    justify-content: center;
}

.scroll-down__wheel {
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    margin-top: 8px;
    animation: scroll 2s infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
}

.about__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__description {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px var(--shadow);
}

.stat__number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat__label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.about__skills-title {
    margin-bottom: 25px;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 30px var(--shadow-lg);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 102, 204, 0.05) 100%);
}

.skill:hover::before {
    transform: scaleY(1);
}

.skill__icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.skill:hover .skill__icon {
    transform: scale(1.2) rotate(10deg);
}

.skill__name {
    font-weight: 500;
    transition: color 0.3s ease;
}

.skill:hover .skill__name {
    color: var(--primary);
}

/* ===== CERTIFICATIONS ===== */
.certifications__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transition: height 0.3s ease;
}

.cert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cert-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-lg), 0 0 30px rgba(0, 102, 204, 0.15);
    border-color: var(--primary);
}

.cert-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.cert-card:hover::after {
    opacity: 1;
}

.cert-card__icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.cert-card:hover .cert-card__icon {
    transform: scale(1.3) rotate(10deg);
}

.cert-card__title {
    margin-bottom: 5px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.cert-card:hover .cert-card__title {
    color: var(--primary);
}

.cert-card__org {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.cert-card__year {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cert-card:hover .cert-card__year {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.1);
}

/* ===== SERVICES/PACKAGES ===== */
.services {
    background: var(--bg-secondary);
}

.currency-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.currency-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 30px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(30px);
}

.packages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.package {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.package::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.package:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-lg), 0 0 40px rgba(0, 102, 204, 0.1);
    border-color: var(--primary);
}

.package:hover::before {
    transform: scaleX(1);
}

.package:hover::after {
    opacity: 1;
}

.package--popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.2);
}

.package--popular::before {
    transform: scaleX(1);
}

.package--popular:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 102, 204, 0.3);
}

.package__name {
    transition: color 0.3s ease;
}

.package:hover .package__name {
    color: var(--primary);
}

.package__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    background: var(--gradient);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package__badge--value {
    background: var(--gradient-accent);
}

.package__header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.package__name {
    margin-bottom: 15px;
}

.package__price {
    font-family: 'Poppins', sans-serif;
}

.price-pkr,
.price-usd {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-usd {
    display: none;
}

body.usd .price-pkr {
    display: none;
}

body.usd .price-usd {
    display: inline;
}

.package__features {
    margin-bottom: 30px;
}

.package__features li {
    padding: 10px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.package__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.package__btn {
    width: 100%;
}

/* ===== PROCESS ===== */
.process__timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.process__step {
    text-align: center;
    position: relative;
    padding: 20px 10px;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.process__step:hover {
    background: var(--bg-card);
    box-shadow: 0 10px 30px var(--shadow);
    transform: translateY(-10px);
}

.process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 45px;
    right: -10px;
    width: calc(100% - 50px);
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background 0.3s ease;
}

.process__step:hover:not(:last-child)::after {
    background: var(--primary);
}

.step__number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.process__step:hover .step__number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
}

.step__content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.process__step:hover .step__content h3 {
    color: var(--primary);
}

.step__content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== PORTFOLIO ===== */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio__tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio__tab {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.portfolio__tab.active,
.portfolio__tab:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.portfolio__panel {
    display: none;
}

.portfolio__panel.active {
    display: block;
}

.portfolio__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery__overlay span {
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid #fff;
    border-radius: 50px;
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px var(--shadow-lg), 0 0 30px rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-card__icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.project-card:hover .project-card__icon {
    transform: scale(1.3) rotate(15deg);
}

.project-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-card:hover h3 {
    color: var(--primary);
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ===== BENEFITS ===== */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.benefit-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.benefit-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px var(--shadow-lg), 0 0 30px rgba(0, 102, 204, 0.15);
    border-color: var(--primary);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover::after {
    width: 200px;
    height: 200px;
}

.benefit-card__icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.benefit-card:hover .benefit-card__icon {
    transform: scale(1.3) rotate(10deg);
}

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.benefit-card:hover h3 {
    color: var(--primary);
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    overflow: hidden;
}

.testimonials__carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 40px;
    /* Added side padding for buttons */
    position: relative;
}

.testimonials__track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

body.dark-mode .carousel-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.testimonial-card {
    flex: 0 0 350px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px var(--shadow);
}

.testimonial-card__stars {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-card__text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.testimonial-card__author {
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.testimonial-card__author strong {
    display: block;
    color: var(--text-primary);
}

.testimonial-card__author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
    background: var(--bg-secondary);
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq__item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-lg), 0 0 20px rgba(0, 102, 204, 0.1);
    transform: translateX(5px);
}

.faq__item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.faq__question {
    width: 100%;
    padding: 22px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq__question:hover {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    padding-left: 30px;
}

.faq__icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.faq__question:hover .faq__icon {
    transform: rotate(90deg);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
    color: var(--secondary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__item.active .faq__answer {
    max-height: 200px;
}

.faq__answer p {
    padding: 0 25px 20px;
    color: var(--text-secondary);
}

/* ===== CONTACT ===== */
.contact__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact__form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 30px var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__group--full {
    grid-column: span 2;
}

.form__group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form__group input,
.form__group select,
.form__group textarea {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form__submit {
    grid-column: span 2;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 3px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact__card-icon {
    font-size: 2rem;
}

.contact__card h3 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.contact__card p,
.contact__card a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact__card a:hover {
    color: var(--primary);
}

.contact__social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contact__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.contact__social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

/* ===== MAP ===== */
.map__container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 30px var(--shadow);
}

.map__container iframe {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0A192F 0%, #1E3A5F 100%);
    color: #E6E6E6;
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4A9EFF 0%, #8B83FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer__links h4,
.footer__connect h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.footer__links a:hover {
    color: #4A9EFF;
    padding-left: 5px;
}

.footer__connect p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.footer__social a:hover {
    background: #4A9EFF;
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}



/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    transition: all var(--transition);
}

.lightbox__close:hover {
    transform: rotate(90deg);
}

.lightbox__image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

/* ===== CONTACT SOCIAL ICONS ===== */
.contact__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.contact__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact__social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.contact__social svg {
    width: 18px;
    height: 18px;
    fill: var(--text-primary);
    transition: all 0.3s ease;
}

.contact__social a:hover svg {
    fill: #fff;
}

/* ===== FOOTER SOCIAL ICONS ===== */
.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer__social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.footer__social svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    transition: all 0.3s ease;
}

.footer__social a:hover svg {
    fill: #fff;
}

/* ===== KEYFRAMES ===== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 10 - 30px * 10));
    }
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: relative;
    /* Changed from fixed */
    width: 100%;
    background: var(--bg-card);
    padding: 40px 20px;
    /* Increased padding for footer-like look */
    box-shadow: 0 -5px 20px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 30px;
    z-index: 10;
    /* Lower z-index */
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.cookie-consent p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    max-width: 600px;
    /* Limit text width */
}

.cookie-consent.hide {
    display: none !important;
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 15px;
    }
}