/* ============================================================
   AK WEB STUDIO — Master Stylesheet
   Advanced Animations, Glassmorphism, Particles, Scroll Reveals
   ============================================================ */

/* ---------- Brand Logo ---------- */
.brand-logo {
    mix-blend-mode: multiply;
}

/* Dark themes: invert the logo so it's visible on dark backgrounds */
[data-theme="ak_crimson"] .brand-logo,
[data-theme="dark_matter"] .brand-logo {
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- Base Body ---------- */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', 'Outfit', 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ---------- Brand Text Color Animation ---------- */
@keyframes brandColorShift {
    0% {
        color: #f97316;
    }

    /* Orange */
    15% {
        color: #ec4899;
    }

    /* Pink */
    30% {
        color: #8b5cf6;
    }

    /* Purple */
    45% {
        color: #06b6d4;
    }

    /* Cyan */
    60% {
        color: #10b981;
    }

    /* Emerald */
    75% {
        color: #f59e0b;
    }

    /* Amber */
    90% {
        color: #3b82f6;
    }

    /* Blue */
    100% {
        color: #f97316;
    }

    /* Back to Orange */
}

.brand-text-animate {
    animation: brandColorShift 8s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

/* Hide system cursor on desktop when custom cursor is active */
@media (min-width: 768px) and (pointer: fine) {

    *,
    *::before,
    *::after {
        cursor: none !important;
    }
}

/* ---------- Selection ---------- */
::selection {
    background: var(--accent-color);
    color: #fff;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInBlur {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes floatReverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-3deg);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(var(--accent-rgb, 249, 115, 22), 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(var(--accent-rgb, 249, 115, 22), 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes morphBlob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes typewrite {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: var(--accent-color);
    }

    50% {
        border-color: transparent;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 600px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes drawLine {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes progressFill {
    from {
        stroke-dashoffset: 283;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
    box-shadow: 0 0 8px rgba(var(--accent-rgb, 249, 115, 22), 0.5);
}

.cursor-ring {
    display: none !important;
}

.cursor-dot.hovered {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 16px rgba(var(--accent-rgb, 249, 115, 22), 0.7);
}

.cursor-dot.clicking {
    transform: translate(-50%, -50%) scale(0.6);
}

/* ============================================================
   GLASSMORPHISM NAVIGATION
   ============================================================ */
.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.mobile-menu a {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open a {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.open a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.open a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.open a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.open a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.open a:nth-child(5) {
    transition-delay: 0.3s;
}

/* ---------- Theme Dropdown ---------- */
.theme-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-trigger:hover .theme-dropdown,
.theme-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: morphBlob 8s ease-in-out infinite, float 6s ease-in-out infinite;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

/* Geometric floating shapes */
.geo-shape {
    position: absolute;
    opacity: 0.06;
    animation: float 8s ease-in-out infinite;
}

.geo-shape:nth-child(2) {
    animation-delay: 1s;
    animation-duration: 10s;
}

.geo-shape:nth-child(3) {
    animation-delay: 2s;
    animation-duration: 12s;
}

.geo-shape:nth-child(4) {
    animation-delay: 3s;
    animation-duration: 9s;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6, #06b6d4, var(--accent-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* Typed cursor */
.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent-color);
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

/* CTA Shimmer Button */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: var(--accent-color);
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-shimmer:hover::before {
    left: 100%;
}

.btn-shimmer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(var(--accent-rgb, 249, 115, 22), 0.4);
}

/* Outline Button */
.btn-outline {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline:hover {
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ============================================================
   SCROLL REVEAL SYSTEM
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
    background: rgba(var(--card-rgb, 255, 255, 255), 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(var(--accent-rgb, 249, 115, 22), 0.1);
}

/* ============================================================
   TILT CARD 3D EFFECT
   ============================================================ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease;
}

.tilt-card .tilt-inner {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.tilt-card:hover .tilt-icon {
    transform: translateZ(50px) scale(1.1);
    transition: transform 0.4s ease;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    background: var(--accent-color) !important;
    color: #fff !important;
    transform: scale(1.1) rotate(5deg);
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    opacity: 0.9;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-filters button {
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-filters button.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb, 249, 115, 22), 0.4);
}

.portfolio-card {
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img {
    transform: scale(1.15);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 249, 115, 22), 0.9), rgba(139, 92, 246, 0.9));
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--accent-color), #8b5cf6);
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step {
    position: relative;
    transition: all 0.5s ease;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid var(--accent-color);
    background: var(--bg-primary);
    color: var(--accent-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.timeline-step:hover .timeline-number {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(var(--accent-rgb, 249, 115, 22), 0.4);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(var(--card-rgb, 255, 255, 255), 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 249, 115, 22), 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.5;
}

/* Light Theme Overrides for Inputs */
[data-theme="fluid_tech"] .form-input,
[data-theme="clean_corporate"] .form-input,
[data-theme="vibrant_creative"] .form-input,
[data-theme="minimalist"] .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="fluid_tech"] .form-input:focus,
[data-theme="clean_corporate"] .form-input:focus,
[data-theme="vibrant_creative"] .form-input:focus,
[data-theme="minimalist"] .form-input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.05);
}

/* Contact info card animations */
.contact-info-card {
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-info-card:hover .contact-icon {
    background: var(--accent-color) !important;
    color: #fff !important;
    animation: pulse 1s ease infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
.wave-divider {
    position: relative;
    margin-top: -2px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-social a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.15);
    color: var(--accent-color);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb, 249, 115, 22), 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb, 249, 115, 22), 0.6);
}

.scroll-progress-ring {
    position: absolute;
    inset: -3px;
    width: 54px;
    height: 54px;
    transform: rotate(-90deg);
}

.scroll-progress-ring circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.1s ease;
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
    background: var(--bg-secondary);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 249, 115, 22), 0.07), rgba(var(--accent-rgb, 249, 115, 22), 0.02));
}

.page-header-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.08;
}

/* ---------- Live Background Canvas (inner pages) ---------- */
.page-header .live-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Morphing Background Blobs ---------- */
@keyframes morphBlob1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    25% {
        transform: translate(30px, -40px) scale(1.15) rotate(90deg);
        border-radius: 50% 30% 50% 70% / 60% 40% 60% 40%;
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9) rotate(180deg);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }

    75% {
        transform: translate(15px, 30px) scale(1.05) rotate(270deg);
        border-radius: 30% 70% 60% 40% / 70% 30% 50% 50%;
    }
}

@keyframes morphBlob2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    33% {
        transform: translate(-40px, 20px) scale(1.2) rotate(120deg);
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    }

    66% {
        transform: translate(20px, -30px) scale(0.85) rotate(240deg);
        border-radius: 70% 30% 40% 60% / 30% 60% 40% 70%;
    }
}

.page-header .morph-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.page-header .morph-blob-1 {
    width: 350px;
    height: 350px;
    background: var(--accent-color);
    top: -80px;
    right: -60px;
    animation: morphBlob1 12s ease-in-out infinite;
}

.page-header .morph-blob-2 {
    width: 280px;
    height: 280px;
    background: var(--accent-hover, var(--accent-color));
    bottom: -60px;
    left: -40px;
    animation: morphBlob2 15s ease-in-out infinite;
    opacity: 0.09;
}

.page-header .morph-blob-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 40%;
    left: 60%;
    animation: morphBlob1 18s ease-in-out infinite reverse;
    opacity: 0.05;
}

/* ---------- Floating Words Animation ---------- */
@keyframes floatWord1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(120px, -180px) rotate(15deg);
        opacity: 0;
    }
}

@keyframes floatWord2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(-100px, -200px) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes floatWord3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(80px, 150px) rotate(8deg);
        opacity: 0;
    }
}

@keyframes floatWordDrift {
    0% {
        transform: translateY(0) translateX(0) rotate(var(--float-rotate, 0deg));
        opacity: 0;
    }

    15% {
        opacity: var(--float-opacity, 0.15);
    }

    85% {
        opacity: var(--float-opacity, 0.15);
    }

    100% {
        transform: translateY(var(--float-y, -100px)) translateX(var(--float-x, 50px)) rotate(calc(var(--float-rotate, 0deg) + 10deg));
        opacity: 0;
    }
}

.floating-word {
    position: absolute;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: floatWordDrift var(--float-duration, 8s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    color: var(--accent-color);
    font-size: var(--float-size, 1rem);
    white-space: nowrap;
}

/* ---------- Accent Glow Text (theme-aware, replaces old color-shift) ---------- */
@keyframes accentPulseText {

    0%,
    100% {
        color: var(--accent-color);
        text-shadow: 0 0 20px rgba(var(--accent-rgb, 249, 115, 22), 0.4);
    }

    50% {
        color: var(--accent-hover, var(--accent-color));
        text-shadow: 0 0 40px rgba(var(--accent-rgb, 249, 115, 22), 0.7), 0 0 80px rgba(var(--accent-rgb, 249, 115, 22), 0.3);
    }
}

.color-shift-text {
    color: var(--accent-color);
    animation: accentPulseText 3s ease-in-out infinite;
}

.color-shift-text-delayed {
    color: var(--accent-color);
    animation: accentPulseText 3s ease-in-out infinite;
    animation-delay: -1s;
}

.color-shift-text-slow {
    color: var(--accent-color);
    animation: accentPulseText 5s ease-in-out infinite;
    animation-delay: -2s;
}

/* ---------- Geometric Floating Shapes ---------- */
@keyframes geoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes geoFloat2 {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(-15px) rotate(225deg);
    }
}

.page-header .geo-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
}

.page-header .geo-shape-1 {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    top: 20%;
    left: 8%;
    animation: geoFloat2 6s ease-in-out infinite;
}

.page-header .geo-shape-2 {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    top: 65%;
    right: 12%;
    animation: geoFloat 8s ease-in-out infinite;
    opacity: 0.12;
}

.page-header .geo-shape-3 {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(var(--accent-rgb, 249, 115, 22), 0.15);
    bottom: 25%;
    left: 75%;
    animation: geoFloat2 10s ease-in-out infinite;
}

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover, var(--accent-color)), rgba(var(--accent-rgb, 249, 115, 22), 0.6));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.cta-float-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 10s ease-in-out infinite;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-heading .heading-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover, var(--accent-color)));
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.section-heading p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.btn-loading .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .hero-blob-1 {
        width: 300px;
        height: 300px;
    }

    .hero-blob-2 {
        width: 250px;
        height: 250px;
    }

    .hero-blob-3 {
        width: 200px;
        height: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-heading h2 {
        font-size: 1.75rem;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .whatsapp-float {
        bottom: 5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 90vh;
    }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #0a0a0a;
}

/* Slides */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Image */
.slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease-out;
    filter: brightness(0.6);
}

.slide.active .slide-image img {
    transform: scale(1.08);
}

/* THEME-REACTIVE: Gradient Overlay uses accent CSS vars */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(var(--accent-rgb, 249, 115, 22), 0.55) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(var(--accent-rgb, 249, 115, 22), 0.25) 100%);
    z-index: 1;
    transition: background 0.8s ease;
}

/* Secondary blend layer for depth */
.slide-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-content-inner {
    max-width: 680px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.slide.active .slide-content-inner {
    opacity: 1;
    transform: translateY(0);
}

.slide-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
}

.slide-label-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.slide-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.hero-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb, 249, 115, 22), 0.5);
}

/* Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    position: relative;
    transition: all 0.4s ease;
    padding: 0;
}

.slider-dot svg {
    position: absolute;
    inset: -4px;
    width: 22px;
    height: 22px;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-dot svg circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    r: 9;
}

.slider-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-rgb, 249, 115, 22), 0.5);
    transform: scale(1.3);
}

.slider-dot.active svg {
    opacity: 1;
}

.slider-dot.active svg circle {
    animation: sliderDotProgress 6s linear forwards;
}

@keyframes sliderDotProgress {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.slider-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.slider-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover, var(--accent-color)));
    transition: width 0.1s linear;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 85vh;
        min-height: 500px;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
        opacity: 1;
    }

    .slider-prev {
        left: 1rem;
    }

    .slider-next {
        right: 1rem;
    }

    .slide-content-inner {
        padding-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 80vh;
        min-height: 450px;
    }

    .slider-dots {
        bottom: 1.5rem;
        gap: 0.6rem;
    }

    .slide-subtitle {
        font-size: 0.95rem;
    }
}


/* ============================================================
   AK 3D LOADER STYLES
   ============================================================ */
.loader-content {
    perspective: 1000px;
}

.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.ak-3d-text {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

.animate-loader-spin {
    animation: loaderSpin 2.5s infinite linear;
}

@keyframes loaderSpin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.translate-z-10 {
    transform: translateZ(20px);
}

/* Ensure Logo Color Adaptation */
[data-theme="dark_matter"] .brand-logo,
[data-theme="minimalist"] .brand-logo {
    filter: brightness(0) invert(1);
}

/* Toast Animation */
#toast-notification {
    will-change: transform, opacity;
}

/* ============================================================
   AK CRIMSON THEME — Dark Black + Red Animations
   ============================================================ */

/* Force all backgrounds deep black */
[data-theme="ak_crimson"] body,
[data-theme="ak_crimson"] .bg-primary {
    background-color: #0a0a0a !important;
}

[data-theme="ak_crimson"] .bg-secondary {
    background-color: #141414 !important;
}

/* Hero slider — darker overlay, no light leak at bottom */
[data-theme="ak_crimson"] .slide-overlay {
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.4) 0%,
            rgba(0, 0, 0, 0.85) 50%,
            rgba(220, 38, 38, 0.15) 100%) !important;
}

[data-theme="ak_crimson"] .slide-overlay::before {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 50%) !important;
}

[data-theme="ak_crimson"] .hero-slider {
    background: #0a0a0a !important;
}

/* Hero fallback (no slides) — dark bg */
[data-theme="ak_crimson"] .hero-section {
    background: #0a0a0a !important;
}

/* Red text accents */
[data-theme="ak_crimson"] .gradient-text {
    background: linear-gradient(135deg, #dc2626, #ff4444, #b91c1c, #dc2626) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Red glow on glass cards */
[data-theme="ak_crimson"] .glass-card:hover {
    border-color: #dc2626;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(220, 38, 38, 0.15);
}

/* Red-tinted blobs */
[data-theme="ak_crimson"] .hero-blob-1 {
    background: #dc2626 !important;
}

[data-theme="ak_crimson"] .hero-blob-2 {
    background: #b91c1c !important;
}

[data-theme="ak_crimson"] .hero-blob-3 {
    background: #991b1b !important;
}

/* Stats section — red gradient */
[data-theme="ak_crimson"] .stats-section::before {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
}

/* CTA section — red gradient */
[data-theme="ak_crimson"] .cta-section::before {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b) !important;
    background-size: 200% 200% !important;
}

/* Footer wave and background — full dark */
[data-theme="ak_crimson"] .wave-divider svg path {
    fill: #141414 !important;
}

[data-theme="ak_crimson"] footer {
    background-color: #141414 !important;
}

/* Section heading red accent line */
[data-theme="ak_crimson"] .heading-line {
    background: linear-gradient(90deg, #dc2626, #ff4444) !important;
}

/* Service card red top border */
[data-theme="ak_crimson"] .service-card::before {
    background: linear-gradient(90deg, #dc2626, #ff4444) !important;
}

/* Red accent scrollbar */
[data-theme="ak_crimson"] ::-webkit-scrollbar-thumb {
    background: #dc2626 !important;
}

[data-theme="ak_crimson"] ::-webkit-scrollbar-thumb:hover {
    background: #b91c1c !important;
}

/* Red button glow animation */
@keyframes redPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
    }
}

[data-theme="ak_crimson"] .btn-shimmer {
    animation: redPulseGlow 3s ease-in-out infinite;
}

[data-theme="ak_crimson"] .btn-shimmer:hover {
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.5) !important;
}

/* Red scroll-to-top glow */
[data-theme="ak_crimson"] .scroll-to-top {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

[data-theme="ak_crimson"] .scroll-to-top:hover {
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
}

/* Timeline red glow */
[data-theme="ak_crimson"] .timeline-line-fill {
    background: linear-gradient(180deg, #dc2626, #ff4444) !important;
}

[data-theme="ak_crimson"] .timeline-step:hover .timeline-number {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4) !important;
}

/* Page header — dark with red morphing blobs */
[data-theme="ak_crimson"] .page-header {
    background: #141414 !important;
}

[data-theme="ak_crimson"] .page-header::before {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(153, 27, 27, 0.05)) !important;
}

[data-theme="ak_crimson"] .page-header .morph-blob-1 {
    background: #dc2626 !important;
}

[data-theme="ak_crimson"] .page-header .morph-blob-2 {
    background: #b91c1c !important;
}

[data-theme="ak_crimson"] .page-header .morph-blob-3 {
    background: #991b1b !important;
}

/* Portfolio overlay — red tint */
[data-theme="ak_crimson"] .portfolio-overlay {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(153, 27, 27, 0.9)) !important;
}

/* Slider progress bar — red */
[data-theme="ak_crimson"] .slider-progress-fill {
    background: linear-gradient(90deg, #dc2626, #b91c1c) !important;
}

/* Loader accent */
[data-theme="ak_crimson"] .ak-3d-text span.text-accent {
    color: #dc2626 !important;
}

/* Announcement bar red */
[data-theme="ak_crimson"] .bg-accent {
    background-color: #dc2626 !important;
}

/* ============================================================
   MOBILE PERFORMANCE OPTIMIZATIONS (Aggressive)
   ============================================================ */
@media (max-width: 768px) {

    /* Disable Glassmorphism (Heavy GPU usage) */
    .glass-nav,
    .glass-card,
    .theme-dropdown {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-secondary) !important;
        /* Solid background fallback */
    }

    .glass-nav {
        background: var(--nav-bg) !important;
        opacity: 0.98;
    }

    /* Disable Continuous Animations (CPU usage) */
    .hero-blob,
    .geo-shape,
    .brand-text-animate,
    .animate-float,
    .animate-bounce,
    .service-card:hover .service-icon {
        animation: none !important;
        transition: none !important;
    }

    /* Simplify Box Shadows (Render time) */
    .glass-card:hover,
    .btn-shimmer:hover,
    .service-card:hover {
        transform: none !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    }

    /* Disable Tilt Effect (Javascript + Render) is handled in JS, but ensure CSS doesn't fight it */
    .tilt-card {
        transform: none !important;
    }
}