/* ===================================
    SUPERHUMAN DESIGN - ADVANCED OVERRIDES
====================================== */

:root {
    /* Enhanced Palette */
    --primary-color: #ED6837;
    --primary-gradient: linear-gradient(120deg, #ED6837 0%, #2563EB 100%);
    --primary-gradient-hover: linear-gradient(120deg, #EA580C 0%, #1D4ED8 100%);
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Shadows & Glows */
    --glow-primary: 0 0 20px rgba(237, 104, 55, 0.5);
    --shadow-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===================================
    ANIMATIONS & KEYFRAMES
====================================== */

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(237, 104, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(237, 104, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(237, 104, 55, 0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
    GLOBAL STYLES
====================================== */

body {
    font-family: var(--font-body) !important;
    background-color: #f8fafc;
    overflow-x: hidden;
    /* Prevent horizontal scroll from 3D effects */
}

h1,
h2,
h3,
h4,
.text-large {
    font-family: var(--font-heading) !important;
}

/* Gradient Text Effect Removed as per user request */
.sec-title h3 {
    color: #000 !important;
    display: inline-block;
    padding-bottom: 5px;
}

.personal-cape h3 {
    /* Retain white for hero section */
    background: none;
    -webkit-text-fill-color: #fff;
    display: inline-block;
    padding-bottom: 5px;
}

/* ===================================
    HERO SECTION (Supercharged)
====================================== */

.single-portfolio-item.bg3 {
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Overlay */
.single-portfolio-item.bg3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #0f172a, #1e3a8a, #1e40af, #0f172a);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
    z-index: -1;
    opacity: 0.95;
}

.personal-cape h3 {
    -webkit-text-fill-color: #fff;
    /* Reset for hero title */
    font-size: 4rem !important;
    font-weight: 800;
    letter-spacing: -1px;
    animation: slide-up 1s ease-out;
    margin-bottom: 30px !important;
}

.personal-cape p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: slide-up 1s ease-out 0.2s backwards;
}

/* Floating Elements in Hero */
.personal-cape .btn {
    animation: float 6s ease-in-out infinite;
}

/* Wave Divider at Bottom of Hero */
.single-portfolio-item.bg3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23f8fafc" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    pointer-events: none;
}

/* ===================================
    COMPONENTS & CARDS
====================================== */

/* Modern Button with Glow */
.btn {
    position: relative;
    border-radius: 99px !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    background: var(--primary-gradient) !important;
    color: #fff !important;
    border: none !important;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient-hover);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.btn:hover::before {
    opacity: 1;
}

/* Glassmorphism Navbar 2.0 */
nav.navbar {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Premium "How it works" Cards */
.how-box-one {
    background: var(--bg-card) !important;
    border-radius: 24px;
    padding: 50px 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
}

/* 3D Hover Effect */
.how-box-one:hover {
    transform: translateY(-15px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.15);
    background: #fff !important;
    border-color: #fff;
}

.how-box-one .icon-box {
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: var(--primary-gradient) !important;
    border-radius: 28px !important;
    font-size: 36px;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
    margin-bottom: 35px;
    transition: transform 0.5s ease;
}

.how-box-one:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Contact Icons with Pulse */
.contact-icon {
    width: 60px;
    height: 60px;
    line-height: 64px;
    /* Optical center */
    background: #fff;
    color: #2563EB !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: var(--primary-gradient);
    color: #fff !important;
    transform: rotate(15deg);
    animation: pulse-soft 2s infinite;
}

/* About Box Enhancement */
.about-box {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-3d);
}

/* ===================================
    RESPONSIVE FIXES
====================================== */
@media (max-width: 768px) {
    .personal-cape h3 {
        font-size: 2.5rem !important;
    }

    .single-portfolio-item.bg3::after {
        height: 50px;
    }
}

/* Header Links Color Override */
.navbar-default .navbar-nav>li>a {
    color: #000 !important;
}