/* =========================================================
   PROTECTION SHIELD & FRAME WRAPPER
========================================================= */
.preview-frame-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 65px);
    overflow: hidden;
    background: #ffffff;
}

.preview-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Protection Shield Layer */
.preview-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: none; /* Clicks and scroll go to iframe */
}

/* Active Shield when Right Click occurs */
.preview-shield.protect-active {
    pointer-events: auto !important;
}

/* =========================================================
   FONTS & ROOT VARIABLES
========================================================= */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-display: swap;
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-display: swap;
}

:root {
    --bg: #07111f;
    --bg2: #0b1729;
    --card: rgba(255, 255, 255, .055);
    --border: rgba(255, 255, 255, .10);
    --text: #f5f7fb;
    --muted: #9baac0;
    --primary: #6c63ff;
    --secondary: #00d4ff;
    --green: #25d366;
}

/* =========================================================
   GLOBAL RESET & MOBILE OVERFLOW FIX
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(108, 99, 255, .18), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(0, 212, 255, .12), transparent 25%),
        var(--bg);
}

/* Prevent Bootstrap row margin spill */
.container, .container-fluid {
    overflow: hidden;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

/* Prevent AOS Animation horizontal scroll bug */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    background: rgba(7, 17, 31, .72) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: .5px;
}

.brand-dot {
    color: var(--secondary);
}

.nav-link {
    color: #cbd5e1 !important;
    margin-left: 12px;
}

.nav-link:hover {
    color: #fff !important;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 212, 255, .25);
    background: rgba(0, 212, 255, .07);
    color: #8beaff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 6.2rem);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -2px;
    word-break: break-word;
}

.gradient-text {
    background: linear-gradient(100deg, #fff 5%, #9d97ff 48%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 0;
    color: white;
    font-weight: 800;
    padding: 14px 23px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(108, 99, 255, .25);
    transition: .3s;
}

.btn-main:hover {
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 20px 50px rgba(0, 212, 255, .2);
}

.btn-outline {
    border: 1px solid var(--border);
    color: white;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, .035);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

/* =========================================================
   PROFILE WRAPPER & CARDS
========================================================= */
.profile-wrap {
    position: relative;
    width: min(380px, 78vw);
    height: min(380px, 78vw);
    margin: auto;
    animation: float 5s ease-in-out infinite;
}

.profile-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--secondary), var(--primary), transparent, var(--secondary));
    animation: spin 8s linear infinite;
    filter: blur(.2px);
}

.profile-ring::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg);
}

.profile-photo {
    position: absolute;
    inset: 10px;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .08);
    background: linear-gradient(135deg, #151e36, #0a1425);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    text-align: center;
    padding: 30px;
}

.avatar-placeholder .initials {
    width: 150px;
    height: 150px;
    margin: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, .18);
}

.avatar-placeholder small {
    display: block;
    color: #9baac0;
    margin-top: 18px;
}

.floating-card {
    position: absolute;
    z-index: 5;
    background: rgba(13, 25, 43, .88);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 15px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    animation: float 4s ease-in-out infinite reverse;
    white-space: nowrap;
}

.card-one {
    left: -10px;
    bottom: 45px;
}

.card-two {
    right: -10px;
    top: 45px;
}

.floating-card i {
    color: var(--secondary);
    margin-right: 8px;
}

/* =========================================================
   SECTIONS & GLASS CARDS
========================================================= */
section {
    padding: 105px 0;
}

.section-tag {
    color: #7de8ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .75rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
}

.section-sub {
    color: var(--muted);
    max-width: 700px;
    line-height: 1.8;
}

.glass {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
}

.about-card {
    padding: 35px;
}

.about-card p {
    color: #b6c1d2;
    line-height: 1.9;
}

.stat {
    padding: 25px;
    text-align: center;
    height: 100%;
}

.stat h3 {
    font-size: 1rem !important; 
    font-weight: 900;
    margin: 0;
}

.stat p {
    color: var(--muted);
    margin: 6px 0 0;
}

.service {
    padding: 30px;
    height: 100%;
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.service::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(55px);
    opacity: .18;
    top: -30px;
    right: -30px;
}

.service:hover {
    transform: translateY(-9px);
    border-color: rgba(0, 212, 255, .3);
}

.service-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 99, 255, .2), rgba(0, 212, 255, .14));
    color: #7de8ff;
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.service h4 {
    font-weight: 800;
}

.service p {
    color: var(--muted);
    line-height: 1.7;
}

.skill-box {
    padding: 30px;
}

.skill-item {
    margin-bottom: 22px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
}

.skill-top span:last-child {
    color: #8beaff;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, .07);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
}

.pill {
    display: inline-block;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .035);
    color: #d7deea;
    padding: 8px 12px;
    border-radius: 999px;
    margin: 4px;
    font-size: .85rem;
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(var(--secondary), var(--primary), transparent);
}

.timeline-item {
    position: relative;
    padding: 0 0 42px 25px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 6px rgba(0, 212, 255, .10), 0 0 25px rgba(0, 212, 255, .5);
}

.timeline-date {
    color: #7de8ff;
    font-weight: 800;
    font-size: .85rem;
}

.timeline h4 {
    font-weight: 850;
    margin: 7px 0;
}

.timeline h5 {
    color: #aebbd0;
    font-size: 1rem;
}

.timeline p {
    color: var(--muted);
    line-height: 1.75;
}

.project {
    min-height: 260px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.project-number {
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(255, 255, 255, .045);
    position: absolute;
    right: 15px;
    top: 5px;
}

.project h4 {
    font-weight: 850;
}

.project p {
    color: var(--muted);
    line-height: 1.7;
}

.project a {
    color: #7de8ff;
    text-decoration: none;
    font-weight: 800;
}

.cta {
    padding: 65px;
    background:
        radial-gradient(circle at 10% 20%, rgba(108, 99, 255, .35), transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(0, 212, 255, .25), transparent 30%),
        rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 30px;
    text-align: center;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item i {
    color: #7de8ff;
    width: 25px;
    margin-top: 3px;
}

.contact-item span {
    color: var(--muted);
}

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: #7f8da3;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: white;
    text-decoration: none;
    border: 1px solid var(--border);
    margin-left: 7px;
    transition: .3s;
}

.social:hover {
    transform: translateY(-4px);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    font-size: 1.7rem;
    z-index: 999;
    box-shadow: 0 12px 35px rgba(37, 211, 102, .35);
    text-decoration: none;
    animation: pulse 2s infinite;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes float {
    50% {
        transform: translateY(-12px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 12px 35px rgba(37, 211, 102, .35);
    }

    50% {
        box-shadow: 0 12px 45px rgba(37, 211, 102, .65);
    }
}

/* =========================================================
   DIGITAL PRODUCTS & MARKETPLACE
========================================================= */
.product-card {
    overflow: hidden;
    height: 100%;
    transition: .35s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, .35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .30);
}

.product-preview {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: #0b1729;
}

.product-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.product-card:hover .product-preview img {
    transform: scale(1.06);
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(3, 10, 20, .72);
    opacity: 0;
    transition: .3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    border-radius: 12px;
    font-weight: 800;
    padding: 11px 16px;
}

.product-body {
    padding: 25px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.product-category {
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #7de8ff;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.product-body h4 {
    font-weight: 850;
    margin-bottom: 10px;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
    transition: .2s;
}

.product-title-link:hover {
    color: #7de8ff;
}

.product-body p {
    color: var(--muted);
    line-height: 1.7;
    min-height: 56px;
}

.product-tags {
    margin: 12px -4px 18px;
}

.product-tags .pill {
    font-size: .75rem;
    padding: 7px 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-actions .btn {
    border-radius: 12px;
}

.btn-wa {
    background: #25d366;
    color: #fff;
    border: 0;
    font-weight: 800;
}

.btn-wa:hover {
    background: #1fbd5b;
    color: #fff;
    transform: translateY(-2px);
}

.product-details-view {
    display: none;
    min-height: 100vh;
    padding: 125px 0 80px;
    background: linear-gradient(180deg, rgba(7, 17, 31, .98), rgba(7, 17, 31, .94));
}

.product-details-view.active {
    display: block;
}

body.product-open #home,
body.product-open #about,
body.product-open #services,
body.product-open #skills,
body.product-open #experience,
body.product-open #contact,
body.product-open footer,
body.product-open #products {
    display: none;
}

.product-detail-hero {
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.detail-label {
    color: #7de8ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .72rem;
    font-weight: 900;
}

.detail-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2px;
}

.detail-description {
    color: #b6c1d2;
    line-height: 1.9;
    font-size: 1.04rem;
}

.detail-panel {
    padding: 30px;
    height: 100%;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: #c7d1df;
}

.detail-list li:last-child {
    border-bottom: 0;
}

.detail-list i {
    color: #7de8ff;
    width: 24px;
}

.detail-section-title {
    font-size: 1.35rem;
    font-weight: 850;
}

.share-box {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}

.share-url {
    width: 100%;
    background: #050b14;
    color: #9baac0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: .86rem;
}

.preview-modal {
    background: #050b14;
    border: 0;
}

.preview-header {
    min-height: 65px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: rgba(7, 17, 31, .98);
    border-bottom: 1px solid var(--border);
    color: #fff;
}

.preview-header .btn {
    border-radius: 10px;
}

.preview-security-note {
    color: #7f8da3;
}

.product-badge {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 3;
    background: rgba(7, 17, 31, .88);
    border: 1px solid var(--border);
    color: #fff;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}

/* =========================================================
   MEDIA QUERIES (RESPONSIVE FIXES)
========================================================= */
@media(max-width:991px) {
    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-wrap {
        margin-top: 50px;
    }

    .card-one {
        left: 0;
    }

    .card-two {
        right: 0;
    }
}

@media(max-width:767px) {
    .product-preview {
        height: 210px;
    }

    .detail-image {
        min-height: 240px;
    }

    .product-actions {
        flex-wrap: wrap;
    }

    .product-actions .btn {
        width: 100%;
    }

    .preview-header {
        padding: 10px 12px;
    }

    .product-details-view {
        padding-top: 105px;
    }

    /* Floating cards mobile positioning fix */
    .floating-card {
        position: relative;
        inset: auto !important;
        margin: 10px auto;
        display: inline-block;
    }
}

@media(max-width:575px) {
    section {
        padding: 65px 0;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .cta {
        padding: 35px 18px;
    }

    .about-card, .skill-box, .service, .project {
        padding: 22px;
    }

    .whatsapp {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}