/* ================================
   RESET + GLOBAL
==================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background: #030314;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.7;
}

img {
    max-width: 100%;
    border-radius: 12px;
}

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
}

:root {
    --accent: #7f5eff;
    --accent-glow: #9d7bff;
    --dark: #030314;
    --dark2: #0b0f2c;
    --card: #111531;
    --text: #ffffff;
    --text-muted: #b5b6cc;
    --radius: 20px;
}

/* ================================
   HEADER
==================================*/
#header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 999;
    transition: 0.3s ease;
    background: rgba(15, 18, 40, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

#header.scrolled {
    background: rgba(15, 18, 40, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
}

.logo span {
    color: var(--accent);
    text-shadow: 0px 0px 12px var(--accent-glow);
}

nav a {
    color: var(--text-muted);
    margin-left: 18px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

nav a:hover {
    color: #fff;
    text-shadow: 0px 0px 8px var(--accent);
}

/* ================================
   HERO
==================================*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 900;
}

.hero-title span {
    color: var(--accent);
    text-shadow: 0px 0px 12px var(--accent-glow);
}

.hero-sub {
    margin: 18px 0 28px;
    max-width: 520px;
    color: var(--text-muted);
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    border: none;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 24px var(--accent-glow);
}

/* HERO GRAPHIC */
.hero-graphic {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, #7f5eff33, #3d2fa744, transparent);
    box-shadow: 0 0 80px #7f5eff55;
    animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(0px); }
    to   { transform: translateY(-20px); }
}

/* ================================
   SECTIONS
==================================*/
.section {
    padding: 90px 0;
}

.section.alt {
    background: #06081c;
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2.4rem;
    font-weight: 900;
}

.section-title.neon {
    color: var(--accent);
    text-shadow: 0px 0px 12px var(--accent-glow);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-top: -14px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* ================================
   GRID 3
==================================*/
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ================================
   SERVICES CARD
==================================*/
.card {
    background: var(--card);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 24px #7f5eff55;
    border-color: var(--accent);
}

.card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
}

/* ================================
   SKILLS
==================================*/
.skill-box {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #1c1f3f;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #b79fff);
}

/* ================================
   PORTFOLIO GRID
==================================*/
.portfolio-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 18px;
}

.portfolio-item-page img {
    border-radius: 16px;
    transition: 0.3s;
    cursor: pointer;
}

.portfolio-item-page img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #7f5eff55;
}

.portfolio-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ================================
   WHY ME / CLIENT CARDS
==================================*/
.client {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.client strong {
    display: block;
    margin-bottom: 6px;
}

.client p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.client:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px #7f5eff55;
}

/* ================================
   CONTACT
==================================*/
.contact-box {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #0a0d24;
    color: white;
    margin-bottom: 12px;
    outline: none;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.contact-info a {
    color: var(--accent);
}

/* ================================
   WHATSAPP FLOAT
==================================*/
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    padding: 14px 22px;
    color: black;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 0 18px #000000aa;
    transition: 0.2s;
}

.floating-whatsapp:hover {
    transform: translateY(-4px);
}

/* ================================
   SCROLL TO TOP
==================================*/
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: #1b1d35;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    z-index: 999;
    transition: 0.2s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.scroll-top:hover {
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent-glow);
}

/* ================================
   LIGHTBOX
==================================*/
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 18px;
    box-shadow: 0 0 26px #7f5effaa;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 2.2rem;
    cursor: pointer;
}

/* ================================
   ANIMATIONS (REVEAL ON SCROLL)
==================================*/
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0px);
}

.fade { opacity: 0; animation: fadeIn 1.8s forwards; }
@keyframes fadeIn {
    to { opacity: 1; }
}

/* ================================
   RESPONSIVE
==================================*/
@media (max-width: 900px) {

    .hero-box {
        flex-direction: column;
        text-align: center;
    }

    nav {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .portfolio-grid-page {
        grid-template-columns: 1fr;
    }

    .hero-graphic {
        width: 280px;
        height: 280px;
    }
}
