
/* ============================================================
   FULL WEBSITE AMAZING ANIMATION ENHANCEMENTS
   ============================================================ */

/* -- Custom Scrollbar ---------------------------------------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* -- Text selection ------------------------------------------ */
::selection { background: var(--secondary); color: #fff; }

/* ---- SECTION HEADERS --------------------------------------- */
.section-header h2 {
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
    margin: 14px auto 0;
    transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.section-header.aos-animate h2::after,
[data-aos].aos-animate .section-header h2::after { width: 70px; }
/* Trigger immediately for non-aos contexts */
.section-header h2::after { width: 70px; }

/* Shimmer on section-tag */
.section-tag { position: relative; overflow: hidden; }
.section-tag::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 80%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-15deg);
    animation: tagShimmer 4s ease-in-out infinite;
}
@keyframes tagShimmer {
    0%    { left: -120%; }
    45%, 100% { left: 160%; }
}

/* ---- NAVBAR ------------------------------------------------- */
.navbar { transition: top 0.4s ease, box-shadow 0.4s ease, background 0.4s ease !important; }
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), var(--secondary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.navbar.scrolled::after { transform: scaleX(1); }

/* Nav link hover underline */
.nav-links a:not(.active) {
    position: relative;
    overflow: visible;
}
.nav-links a:not(.active)::before {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: left 0.3s ease, right 0.3s ease;
}
.nav-links a:not(.active):hover::before { left: 12%; right: 12%; }

/* ---- HERO --------------------------------------------------- */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.title-line {
    animation: heroWordIn 1.1s cubic-bezier(0.23, 1, 0.32, 1) both !important;
}
.title-line:nth-child(2) { animation-delay: 0.2s !important; }
@keyframes heroWordIn {
    from { opacity: 0; transform: translateY(28px) skewY(2deg); }
    to   { opacity: 1; transform: translateY(0) skewY(0); }
}
.title-line.highlight {
    background: linear-gradient(90deg, var(--secondary-light), var(--accent), var(--secondary-light)) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientFlow 4s linear infinite, heroWordIn 1.1s cubic-bezier(0.23,1,0.32,1) 0.2s both !important;
}
@keyframes gradientFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
/* Floating rings decoration in hero */
.hero::after {
    content: '';
    position: absolute;
    top: 12%; right: 6%;
    width: 340px; height: 340px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    animation: heroOrbit 22s linear infinite;
    z-index: 1;
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute;
    top: 20%; right: 14%;
    width: 190px; height: 190px;
    border: 1px solid rgba(232,185,49,0.1);
    border-radius: 50%;
    animation: heroOrbit 15s linear infinite reverse;
    z-index: 1;
    pointer-events: none;
}
@keyframes heroOrbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- BUTTONS RIPPLE --------------------------------------- */
.btn { overflow: hidden !important; }
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
}
.btn:hover::after { width: 350px; height: 350px; opacity: 0; }

/* ---- SERVICES --------------------------------------------- */
.services {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%) !important;
    position: relative;
}
.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), var(--secondary), transparent);
    opacity: 0.4;
    pointer-events: none;
}
/* Service card animated top border */
.service-card {
    border-top: 3px solid transparent !important;
    transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), box-shadow 0.45s ease, border-color 0.35s ease !important;
}
.service-card:hover {
    border-top-color: var(--accent) !important;
}
/* Icon visible and styled */
.service-icon {
    display: inline-flex !important;
    width: 54px; height: 54px;
    background: linear-gradient(135deg, rgba(89,130,180,0.15), rgba(32,41,70,0.06));
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.35s ease, transform 0.35s cubic-bezier(0.23,1,0.32,1) !important;
}
.service-icon svg { color: var(--secondary); transition: color 0.3s ease; }
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
    transform: rotate(-6deg) scale(1.1);
}
.service-card:hover .service-icon svg { color: #fff !important; }
/* Smoother image zoom */
.service-card:hover .service-image img { transform: scale(1.08) !important; }

/* ---- ABOUT -------------------------------------------------- */
.about { overflow: hidden; }
.about::after {
    content: '';
    position: absolute;
    bottom: -160px; left: -100px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(89,130,180,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
/* About item side border */
.about-item {
    border-right: 3px solid transparent !important;
    transition: border-color 0.3s ease, background 0.35s ease, transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s ease !important;
}
.about-item:hover { border-right-color: var(--secondary) !important; }
html[dir="ltr"] .about-item { border-right: none !important; border-left: 3px solid transparent !important; }
html[dir="ltr"] .about-item:hover { border-left-color: var(--secondary) !important; }
/* Icon pop on hover */
.about-icon-wrapper { transition: transform 0.35s cubic-bezier(0.23,1,0.32,1); }
.about-item:hover .about-icon-wrapper { transform: scale(1.14) rotate(-6deg); }
/* Pulsing experience badge */
.experience-badge { animation: badgePulse 3.5s ease-in-out infinite; }
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(89,130,180,0.4); }
    50%       { box-shadow: 0 18px 50px rgba(89,130,180,0.65), 0 0 0 10px rgba(89,130,180,0.07); }
}

/* ---- PROCESS ---------------------------------------------- */
.step-icon { position: relative; transition: transform 0.4s ease; z-index: 2; }
.step-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(89,130,180,0.32);
    animation: stepRing 13s linear infinite;
}
@keyframes stepRing { to { transform: rotate(360deg); } }
.process-step { transition: transform 0.3s ease; }
.process-step:hover .step-icon {
    transform: translateY(-10px) scale(1.12) !important;
    box-shadow: 0 18px 45px rgba(89,130,180,0.6), 0 0 0 14px rgba(89,130,180,0.07) !important;
}
.step-content h3 { transition: color 0.3s ease; }
.process-step:hover .step-content h3 { color: var(--accent) !important; }

/* ---- PROJECTS --------------------------------------------- */
.project-item {
    transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), box-shadow 0.45s ease !important;
    border-radius: 16px !important;
}
.project-item:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 35px 65px rgba(0,0,0,0.25) !important;
}
.project-zoom {
    background: var(--accent) !important;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s ease !important;
}
.project-zoom svg { color: var(--primary) !important; }
.project-item:hover .project-zoom { box-shadow: 0 6px 22px rgba(232,185,49,0.5); }

/* Filter btn ripple */
.filter-btn { position: relative; overflow: hidden; }
.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(89,130,180,0.1);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}
.filter-btn:hover::before { width: 220px; height: 220px; }

/* ---- CONTACT ---------------------------------------------- */
.contact { position: relative; }
.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.3;
    pointer-events: none;
}
/* Card side accent */
.contact-card {
    border-right: 3px solid transparent !important;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s ease, border-color 0.3s ease !important;
}
.contact-card:hover { transform: translateX(-10px) !important; border-right-color: var(--secondary) !important; }
html[dir="ltr"] .contact-card { border-right: none !important; border-left: 3px solid transparent !important; }
html[dir="ltr"] .contact-card:hover { transform: translateX(10px) !important; border-left-color: var(--secondary) !important; }
/* Icon pop */
.contact-card-icon { transition: transform 0.35s cubic-bezier(0.23,1,0.32,1); }
.contact-card:hover .contact-card-icon { transform: rotate(-8deg) scale(1.12); }
/* Form lift on focus */
.form-group input, .form-group select, .form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease !important;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(89,130,180,0.15) !important;
}
/* Form wrapper gold top */
.contact-form-wrapper {
    position: relative;
    border-top: 3px solid var(--secondary) !important;
}
/* Social icons */
.social-icon {
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s ease !important;
}
.social-icon:hover {
    transform: translateY(-9px) rotate(-5deg) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.3) !important;
}

/* ---- FOOTER ----------------------------------------------- */
.footer-top { position: relative; overflow: hidden; }
.footer-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 60%, rgba(255,255,255,0.09) 0%, transparent 55%);
    animation: ftGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes ftGlow {
    0%   { transform: translateX(-25px) scale(1); opacity: 0.6; }
    100% { transform: translateX(25px) scale(1.08); opacity: 1; }
}
.footer-main { position: relative; }
.footer-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(89,130,180,0.6), var(--accent), rgba(89,130,180,0.6), transparent);
    animation: fmLine 5s ease-in-out infinite alternate;
}
@keyframes fmLine { 0% { opacity: 0.5; } 100% { opacity: 1; } }
.footer a:hover { color: var(--accent) !important; }
.footer-cert span {
    transition: background 0.3s ease, transform 0.3s ease;
}
.footer-cert span:hover {
    background: rgba(232,185,49,0.15) !important;
    transform: translateY(-3px);
}

/* ---- FLOATING BUTTONS ------------------------------------- */
.floating-call { transition: transform 0.3s ease, box-shadow 0.3s ease !important; }
.floating-call:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 10px 35px rgba(89,130,180,0.65) !important;
}
.whatsapp-btn { animation: waBounce 3.5s ease-in-out infinite !important; }
@keyframes waBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-10px) scale(1.04); }
}
.whatsapp-btn:hover {
    animation: none !important;
    transform: scale(1.15) !important;
    box-shadow: 0 10px 35px rgba(37,211,102,0.55) !important;
}

/* ---- PROCESS SECTION LIGHT HEADER ------------------------- */
.section-header.light .section-tag {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.18);
}
.section-header.light h2 { color: var(--white); }
.section-header.light h2::after { background: linear-gradient(90deg, var(--accent), var(--secondary-light)); }
.section-header.light p { color: rgba(255,255,255,0.72); }

/* ---- AOS TIMING ------------------------------------------- */
[data-aos] { transition-duration: 0.8s !important; }

/* ---- AREA ITEMS ------------------------------------------- */
.area-item { transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease !important; }
.area-item:hover { transform: translateY(-8px) !important; }

/* ---- MAP -------------------------------------------------- */
.map-container { transition: box-shadow 0.4s ease !important; }
.map-container:hover { box-shadow: 0 30px 70px rgba(0,0,0,0.18) !important; }

/* ---- PRELOADER -------------------------------------------- */
.preloader-logo img {
    animation: preloaderPulse 1.5s ease-in-out infinite !important;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(89,130,180,0.4)); }
    50%       { transform: scale(1.09); filter: drop-shadow(0 0 32px rgba(89,130,180,0.75)); }
}
