/* ============================================================
   AHMED ABDULRAHIM — PORTFOLIO STYLES
   Design: "Obsidian Architect" — Ultra-dark theme
   Completely redesigned from scratch
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-elevated: #252525;

    --accent-violet: #00d4ff;
    --accent-violet-light: #00d4ff;
    --accent-violet-dark: #0099cc;
    --accent-rose: #0099cc;
    --accent-rose-light: #00bfea;
    --accent-emerald: #00d4ff;
    --accent-amber: #00d4ff;
    --accent-cyan: #00d4ff;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-violet: linear-gradient(135deg, #00d4ff 0%, #00bfea 100%);
    --gradient-rose: linear-gradient(135deg, #0099cc 0%, #00bfea 100%);
    --gradient-mesh: linear-gradient(135deg, #0a0a0a 0%, #0a1520 40%, #0a0a0a 100%);

    --border-color: rgba(0, 212, 255, 0.15);
    --border-hover: rgba(0, 212, 255, 0.35);
    --border-subtle: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow-violet: 0 0 60px rgba(0, 212, 255, 0.15);
    --shadow-glow-rose: 0 0 40px rgba(0, 153, 204, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-pill: 100px;

    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(0, 212, 255, 0.35);
    color: #e0e0e0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    width: 70px;
    height: 70px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-violet);
    border-right-color: var(--accent-rose);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
}

.preloader-text {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

/* ==================== SCROLL TO TOP ==================== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-glow-violet);
}
#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollTopBtn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

/* ==================== NAVIGATION ==================== */
#mainNav {
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
#mainNav.scrolled {
    padding: 0.6rem 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}
.brand-code {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mainNav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
}
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition);
    transform: translateX(-50%);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text-primary);
}
#mainNav .nav-link.active::after,
#mainNav .nav-link:hover::after {
    width: 60%;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-violet);
    color: #fff;
}

/* Hamburger */
.hamburger-custom {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.hamburger-custom span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Offcanvas (Mobile) */
.offcanvas {
    background: var(--bg-surface) !important;
    border-right: 1px solid var(--border-color) !important;
    max-width: 300px;
}
.offcanvas-title {
    font-family: var(--font-mono);
    font-weight: 700;
}
.mobile-nav-list .nav-link {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.mobile-nav-list .nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.06);
    padding-left: 1.5rem;
}
.mobile-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}
.mobile-socials a:hover {
    background: var(--accent-violet);
    color: #fff;
    transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--gradient-mesh);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}
.orb-violet {
    width: 600px;
    height: 600px;
    background: var(--accent-violet);
    top: -15%;
    right: -10%;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-rose {
    width: 400px;
    height: 400px;
    background: var(--accent-rose);
    bottom: -10%;
    left: -5%;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-cyan {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 40%;
    left: 30%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}
.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-inline {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--accent-violet-light);
    min-height: 2.5rem;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.8;
}

/* Hero Stats */
.stat-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}
.stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-plus {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-primary-glow:hover::before {
    transform: translateX(100%);
}
.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
    color: #fff;
}

.btn-outline-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-outline-glow:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.btn-sm-custom {
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
}

/* Hero Socials */
.hero-socials {
    display: flex;
    gap: 0.8rem;
}
.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.15rem;
    transition: var(--transition);
}
.social-link:hover {
    background: rgba(0, 212, 255, 0.25);
    color: var(--accent-violet-light);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-4px) rotate(-5deg);
    box-shadow: var(--shadow-glow-violet);
}

/* ==================== TERMINAL MOCKUP ==================== */
.terminal-wrapper {
    position: relative;
    padding: 2rem;
}
.terminal-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.terminal-mockup {
    position: relative;
    z-index: 1;
    background: #0d0d0d;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.12);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 212, 255, 0.08);
    animation: terminalFloat 6s ease-in-out infinite;
}
@keyframes terminalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.terminal-actions {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.9;
}

.code-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    white-space: pre;
    opacity: 0;
    animation: codeReveal 0.5s ease forwards;
}
.code-line:nth-child(1) { animation-delay: 0.3s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.55s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.85s; }
.code-line:nth-child(6) { animation-delay: 1s; }
.code-line:nth-child(7) { animation-delay: 1.15s; }
.code-line:nth-child(8) { animation-delay: 1.3s; }
.code-line:nth-child(9) { animation-delay: 1.45s; }
.code-line:nth-child(10) { animation-delay: 1.6s; }
.code-line:nth-child(11) { animation-delay: 1.75s; }
.code-line:nth-child(12) { animation-delay: 1.9s; }
.code-line:nth-child(13) { animation-delay: 2.05s; }
.code-line:nth-child(14) { animation-delay: 2.2s; }
.code-line:nth-child(15) { animation-delay: 2.35s; }
.code-line:nth-child(16) { animation-delay: 2.5s; }

@keyframes codeReveal {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.line-num {
    display: inline-block;
    width: 30px;
    text-align: right;
    margin-right: 16px;
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 0.75rem;
    user-select: none;
    flex-shrink: 0;
}

.code-keyword { color: #c792ea; }
.code-class { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-operator { color: #89ddff; }
.code-bracket { color: #ffcb6b; }

.terminal-cursor {
    color: var(--accent-violet-light);
    animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==================== SECTIONS COMMON ==================== */
.section-padding {
    padding: 7rem 0;
    position: relative;
}
.section-alt {
    background: var(--bg-surface);
}

.section-header {
    margin-bottom: 3rem;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-pill);
    color: var(--accent-violet-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ==================== ABOUT — BENTO GRID ==================== */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.bento-card-inner {
    padding: 2rem;
}

.bento-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.bento-main p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.bento-main p:last-child {
    margin-bottom: 0;
}

.bento-accent {
    text-align: center;
}
.bento-accent .bento-card-inner {
    padding: 1.5rem;
}
.bento-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.2rem;
    color: #fff;
}
.bento-accent h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.bento-accent p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bento-gradient {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(0, 153, 204, 0.03) 100%);
}
.bento-gradient h4 {
    font-weight: 800;
}

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.focus-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.focus-list li i {
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.bento-cta {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(5, 122, 158, 0.04) 100%);
}
.cta-icon-large {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: #fff;
}

.text-violet { color: var(--accent-violet-light) !important; }
.text-rose { color: var(--accent-rose) !important; }

/* ==================== SKILLS — TAG CLOUD ==================== */
.skills-block {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.skills-block:hover {
    border-color: var(--border-hover);
}
.skills-block:last-child {
    margin-bottom: 0;
}

.skills-block-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}
.skills-block-title i {
    color: var(--accent-violet-light);
}

.tags-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
    border: 1px solid transparent;
}
.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
}

.tag-lg {
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    background: rgba(0, 212, 255, 0.06);
    color: var(--accent-violet-light);
    border-color: rgba(0, 212, 255, 0.12);
}
.tag-lg:hover {
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.tag-violet {
    background: rgba(0, 212, 255, 0.05);
    color: var(--accent-violet-light);
    border-color: rgba(0, 212, 255, 0.1);
}
.tag-violet:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.tag-rose {
    background: rgba(0, 153, 204, 0.05);
    color: var(--accent-rose-light);
    border-color: rgba(0, 153, 204, 0.1);
}
.tag-rose:hover {
    background: rgba(0, 153, 204, 0.1);
    box-shadow: 0 0 15px rgba(0, 153, 204, 0.1);
}

.tag-emerald {
    background: rgba(0, 212, 255, 0.05);
    color: var(--accent-emerald);
    border-color: rgba(0, 212, 255, 0.1);
}
.tag-emerald:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.tag-amber {
    background: rgba(0, 180, 220, 0.05);
    color: var(--accent-amber);
    border-color: rgba(0, 180, 220, 0.1);
}
.tag-amber:hover {
    background: rgba(0, 180, 220, 0.1);
    box-shadow: 0 0 15px rgba(0, 180, 220, 0.1);
}

.tag-gradient {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 153, 204, 0.06));
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.12);
    font-weight: 700;
}
.tag-gradient:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 153, 204, 0.1));
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* ==================== SERVICES ==================== */
.service-card-new {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.service-card-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: var(--transition);
}
.service-card-new:hover .service-card-glow {
    top: -40%;
    width: 300px;
    height: 300px;
    opacity: 1;
}
.service-card-new:hover {
    border-color: var(--accent-violet);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-violet);
}

.service-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.04;
    color: var(--accent-violet);
    line-height: 1;
    pointer-events: none;
}

.service-icon-new {
    width: 75px;
    height: 75px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.service-card-new:hover .service-icon-new {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-glow-violet);
}

.service-card-new h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card-new p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.service-tags span {
    padding: 0.3rem 0.9rem;
    background: rgba(0, 212, 255, 0.06);
    color: var(--accent-violet-light);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==================== PROJECTS ==================== */
.project-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}
.project-showcase:last-child {
    margin-bottom: 0;
}
.project-showcase:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-img-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-showcase:hover .project-img {
    transform: scale(1.05);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.88), rgba(0, 153, 204, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}
.project-showcase:hover .project-img-overlay {
    opacity: 1;
}

.project-action-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.project-action-btn:hover {
    background: #fff;
    color: var(--accent-violet);
    transform: scale(1.15);
}

.project-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.project-label {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.project-details h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-details p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
.project-tech-tags span {
    padding: 0.25rem 0.8rem;
    background: rgba(0, 212, 255, 0.06);
    color: var(--accent-violet-light);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.project-links-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.3rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.project-link-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-violet-light);
    transform: translateY(-2px);
}
.project-link-live {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}
.project-link-live:hover {
    color: #fff;
    box-shadow: var(--shadow-glow-violet);
}

/* ==================== CONTACT ==================== */
.contact-info-block {
    height: 100%;
}

.contact-info-heading {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.contact-info-item:hover {
    border-color: var(--accent-violet);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}
.contact-info-item:last-of-type {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.contact-info-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.contact-info-item a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}
.contact-info-item a:hover {
    color: var(--accent-violet-light);
}

.contact-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.contact-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}
.contact-social-link:hover {
    background: var(--accent-violet);
    color: #fff;
    border-color: var(--accent-violet);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 0;
}

.form-input-custom {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 212, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-input-custom:focus {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.06);
    background: rgba(0, 212, 255, 0.03);
}

.form-floating-custom label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
    padding: 0 0.3rem;
}
.form-input-custom:focus + label,
.form-input-custom:not(:placeholder-shown) + label {
    top: -0.55rem;
    left: 0.9rem;
    font-size: 0.75rem;
    color: var(--accent-violet-light);
    background: var(--bg-card);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.footer-tagline {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--accent-violet-light);
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--accent-violet);
    color: #fff;
    border-color: var(--accent-violet);
    transform: translateY(-2px);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1.5rem;
    opacity: 1;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-copy i {
    animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

/* ==================== SCROLL REVEAL ==================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
}

@media (max-width: 991px) {
    /* Nav */
    .navbar-collapse { display: none !important; }
    .navbar-toggler { display: block !important; }

    /* Hero */
    .hero-section { padding-top: 90px; }
    .hero-section .row { min-height: calc(100vh - 90px) !important; }
    .hero-content { text-align: center; align-items: center; }
    .hero-desc { max-width: 100%; }
    .hero-badge { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-stats { max-width: 400px; margin: 0 auto; }

    .terminal-wrapper { padding: 1rem; max-width: 500px; margin: 0 auto 2rem; }
    .terminal-mockup { animation: none; }

    /* Projects */
    .project-img-wrap { min-height: 250px; }
    .project-details { padding: 2rem; }

    /* Footer */
    .footer-brand, .footer-tagline { text-align: center; }
    .footer-socials { justify-content: center; }
}

@media (max-width: 767px) {
    .section-padding { padding: 5rem 0; }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-desc { font-size: 0.95rem; }
    .terminal-body { font-size: 0.72rem; padding: 1rem; }
    .line-num { width: 22px; margin-right: 10px; font-size: 0.65rem; }

    .bento-card-inner { padding: 1.5rem; }
    .skills-block { padding: 1.5rem; }

    .project-details { padding: 1.5rem; }
    .project-details h3 { font-size: 1.3rem; }

    .contact-form-card { padding: 1.8rem; }
    .contact-info-heading { font-size: 1.3rem; }

    .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .stat-card { padding: 0.8rem; }
    .stat-num { font-size: 1.5rem; }

    .btn-primary-glow,
    .btn-outline-glow {
        padding: 0.7rem 1.5rem;
        font-size: 0.88rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .service-card-new { padding: 2rem 1.5rem; }
    .project-img-wrap { min-height: 200px; }
    .project-details { padding: 1.2rem; }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 350px) {
    .hero-title { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary-glow,
    .hero-actions .btn-outline-glow { width: 100%; }
}
