﻿/* ==========================================================================
   Expert-Level Professional Portfolio Stylesheet
   Theme: Bootstrap Primary Blue with Vibrant Multi-Sector Accents
   ========================================================================== */

:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Body & Typography */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================================================
   2. Responsive Navbar & Hover Expandable Effect (Desktop)
   ========================================================================== */
.navbar-custom {
    background: linear-gradient(135deg, #0b5ed7 0%, #0d6efd 100%);
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

    .navbar-custom .navbar-brand {
        font-weight: 700;
        letter-spacing: 0.5px;
        font-size: 1.25rem;
    }

    .navbar-custom .nav-link {
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        border-radius: 6px;
        transition: var(--transition-smooth);
    }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link:focus {
            background-color: rgba(255, 255, 255, 0.15);
            color: #ffffff !important;
        }

/* Desktop Hover Expandable Dropdown */
@media all and (min-width: 992px) {
    .navbar-custom .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDropdown 0.25s ease-in-out forwards;
    }
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

    .dropdown-item:hover {
        background-color: rgba(13, 110, 253, 0.1);
        color: var(--bs-primary);
    }

/* ==========================================================================
   3. Beautiful Cards & Colorful Sector Accents
   ========================================================================== */
.expert-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

    .expert-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(13, 110, 253, 0.15);
    }

    /* Colored top border indicator for cards */
    .expert-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
    }

.card-education::before {
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.card-healthcare::before {
    background: linear-gradient(90deg, #198754, #20c997);
}

.card-retail::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.card-mobile::before {
    background: linear-gradient(90deg, #6f42c1, #d63384);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   4. Footer matching Menu Bar
   ========================================================================== */
.footer-custom {
    background: linear-gradient(135deg, #0b5ed7 0%, #0d6efd 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    box-shadow: 0 -4px 20px rgba(13, 110, 253, 0.1);
    margin-top: auto;
}

    .footer-custom a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: var(--transition-smooth);
    }

        .footer-custom a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

/* ==========================================================================
   Footer Social Icons Fix
   ========================================================================== */
.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important; /* Ensure default state is white */
    text-decoration: none;
    transition: var(--transition-smooth);
}

    .social-icon-btn:hover {
        background: #ffffff !important;
        color: var(--bs-primary) !important;
        transform: scale(1.1);
    }

    /* Ensure child <i> icon inherits the button's color properly */
    .social-icon-btn i {
        color: inherit !important;
        font-size: 1.1rem;
    }

/* ==========================================================================
   5. Utility Animations & Custom Badges
   ========================================================================== */
.badge-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
    font-weight: 600;
}
/* ==========================================================================
   3D Hero Banner & Orbit Service Showcase Styles
   ========================================================================== */
.hero-banner-section {
    background: radial-gradient(circle at 80% 20%, #fbeee6 0%, #f3e8ff 40%, #e0f2fe 80%, #fdfbf7 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.08);
    overflow: hidden;
}

    .hero-banner-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
        background-size: 24px 24px;
        opacity: 0.5;
        pointer-events: none;
    }

/* 3D Ambient Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.orb-primary {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    top: 10%;
    right: 15%;
}

.orb-accent {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    bottom: 5%;
    left: 10%;
}

.orb-coral {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    top: 45%;
    left: 20%;
}

/* 3D Showcase & Phone Container */
.hero-showcase-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.phone-3d-wrapper {
    position: relative;
    z-index: 5;
    transform: rotateY(-14deg) rotateX(8deg) rotateZ(2deg);
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
}

    .phone-3d-wrapper:hover {
        transform: rotateY(-6deg) rotateX(4deg) rotateZ(0deg) scale(1.02);
    }

.phone-3d-chassis {
    width: 210px;
    height: 380px;
    background: #0f172a;
    border-radius: 42px;
    padding: 10px;
    position: relative;
    box-shadow: inset 0 0 0 2px #475569, inset 0 0 0 4px #1e293b, -12px 18px 30px rgba(15, 23, 42, 0.45), -4px 8px 12px rgba(99, 102, 241, 0.25);
    border: 3px solid #64748b;
}

.phone-screen-3d {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    height: 100%;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.phone-island {
    width: 70px;
    height: 16px;
    background: #000;
    border-radius: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.screen-content {
    width: 100%;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-header-chip {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.holo-card {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
}

.holo-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    transform: rotate(25deg);
    pointer-events: none;
}

.qr-3d-frame {
    width: 82px;
    height: 82px;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #6366f1;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.phone-3d-shadow {
    position: absolute;
    bottom: -25px;
    left: 10%;
    width: 80%;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
    transform: rotateX(80deg);
    filter: blur(8px);
    pointer-events: none;
}

/* 3D Orbit Ring & Nodes */
.orbit-ring {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 6;
}

.orbit-node {
    pointer-events: auto;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orbit-icon-3d {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), inset 0 4px 6px rgba(255, 255, 255, 0.5), inset 0 -4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease-in-out;
}

.bg-gradient-indigo {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.38);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.38);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.38);
}

.bg-gradient-crimson {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.38);
}

.bg-gradient-emerald {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.38);
}

.bg-gradient-violet {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.38);
}

.orbit-label-3d {
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.orbit-node:hover {
    transform: scale(1.2) translateY(-6px);
    color: #ffffff !important;
}

    .orbit-node:hover .orbit-icon-3d {
        color: #ffffff !important;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), inset 0 4px 8px rgba(255, 255, 255, 0.6);
    }

        .orbit-node:hover .orbit-icon-3d i {
            color: #ffffff !important;
        }

    .orbit-node:hover .orbit-label-3d {
        background: #0f172a;
        color: #ffffff !important;
        border-color: #0f172a;
    }

/* Balanced Circular Spread around the phone */
.node-1 {
    top: 2%;
    left: 12%;
}
/* School Portals (Top Left) */
.node-2 {
    top: 32%;
    left: -14%;
}
/* Clinic Systems (Far Left) */
.node-3 {
    bottom: 18%;
    left: -10%;
}
/* eCommerce (Bottom Left) */
.node-4 {
    bottom: -6%;
    left: 24%;
}
/* Android Apps (Bottom Center-Left) */
.node-5 {
    bottom: -6%;
    right: 20%;
}
/* ASP.NET Core (Bottom Center-Right) */
.node-6 {
    top: 38%;
    right: -14%;
}
/* Secure & Fast (Far Right) */

/* Mobile Viewport Adaptation */
@media (max-width: 768px) {
    .hero-showcase-container {
        height: 360px;
        max-width: 360px;
        perspective: none;
    }

    .phone-3d-wrapper {
        transform: none !important;
    }

    .phone-3d-chassis {
        width: 170px;
        height: 300px;
        border-radius: 32px;
    }

    .orbit-ring {
        width: 340px;
        height: 340px;
    }

    .orbit-icon-3d {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .orbit-label-3d {
        font-size: 0.62rem;
        padding: 2px 6px;
    }

    .node-1 {
        top: 0%;
        left: 15%;
    }

    .node-2 {
        top: 30%;
        left: -8%;
    }

    .node-3 {
        bottom: 20%;
        left: -6%;
    }

    .node-4 {
        bottom: -4%;
        left: 25%;
    }

    .node-5 {
        bottom: -4%;
        right: 25%;
    }

    .node-6 {
        top: 35%;
        right: -8%;
    }
}
