﻿/* ================================================
   RAMPRABU PORTFOLIO — INTERACTIVE DESIGN SYSTEM
   ================================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --bg: #0a0a0f;
    --bg2: #0f0f1a;
    --surface: #13131f;
    --surface2: #1a1a2e;
    --border: rgba(255,255,255,0.07);
    --text: #e2e8f0;
    --text-muted: #8892a4;
    --accent: #6c63ff;
    --accent2: #a855f7;
    --accent3: #22d3ee;
    --gradient: linear-gradient(135deg, #6c63ff 0%, #a855f7 50%, #22d3ee 100%);
    --gradient2: linear-gradient(135deg, #6c63ff, #a855f7);
    --glow: 0 0 30px rgba(108,99,255,0.4);
    --glow2: 0 0 60px rgba(108,99,255,0.2);
    --nav-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --font: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

[data-theme="light"] {
    --bg: #f0f4ff;
    --bg2: #e8eeff;
    --surface: #ffffff;
    --surface2: #f5f7ff;
    --border: rgba(0,0,0,0.08);
    --text: #1a1a2e;
    --text-muted: #64748b;
    --glow: 0 0 30px rgba(108,99,255,0.2);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}
::selection { background: rgba(108,99,255,0.3); color: #fff; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ==============================
   CUSTOM CURSOR
   ============================== */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    border-radius: 50%; pointer-events: none;
    z-index: 99999; transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.cursor-outline {
    width: 36px; height: 36px;
    border: 2px solid rgba(108,99,255,0.5);
    transition: width 0.3s, height 0.3s, background 0.3s;
}
body.cursor-hover .cursor-outline {
    width: 60px; height: 60px;
    background: rgba(108,99,255,0.1);
    border-color: var(--accent);
}
@media (max-width: 768px) { .cursor-dot, .cursor-outline { display: none; } }

/* ==============================
   LOADER
   ============================== */
#loader {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}
.loader-brand-logo {
    height: 68px;
    animation: pulse 1s ease-in-out infinite;
}
.loader-bar {
    width: 200px; height: 4px;
    background: var(--surface2); border-radius: 10px; overflow: hidden;
    margin: 0 auto;
}
.loader-progress {
    height: 100%; width: 0;
    background: var(--gradient);
    border-radius: 10px;
    animation: loadProgress 1.5s ease-in-out forwards;
}
@keyframes loadProgress { to { width: 100%; } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ==============================
   NAVBAR
   ============================== */
#mainNav {
    height: var(--nav-height);
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
[data-theme="light"] #mainNav { background: rgba(240,244,255,0.85); }
#mainNav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
}
.nav-brand-logo { height: 32px; }

.nav-link {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted) !important;
    padding: 0.5rem 0.8rem !important;
    transition: var(--transition);
    position: relative;
}
.nav-link span { color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; margin-right: 4px; }
.nav-link:hover, .nav-link.active { color: var(--text) !important; }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0.8rem; right: 0.8rem;
    height: 2px; background: var(--gradient); border-radius: 1px;
    transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-resume {
    font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 0.4rem 1rem;
    border-radius: 6px; text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-mono);
}
.btn-resume:hover { background: var(--accent); color: #fff !important; box-shadow: var(--glow); }

.theme-toggle {
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text); width: 38px; height: 38px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); font-size: 0.9rem;
}
.theme-toggle:hover { background: var(--accent); color: #fff; box-shadow: var(--glow); }

.hamburger-icon {
    display: flex; flex-direction: column; gap: 5px;
    width: 22px; cursor: pointer;
}
.hamburger-icon span {
    display: block; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: var(--transition);
}
.navbar-toggler { background: none !important; border: none !important; box-shadow: none !important; padding: 0; }

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--bg);
}
#heroCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.6;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-text { padding: 6rem 0 3rem; }

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.3s forwards;
}
.hero-name {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700; line-height: 1.1;
    color: var(--text);
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.5s forwards;
}
.accent-dot { color: var(--accent); }
.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted); font-weight: 400;
    margin: 0.8rem 0 1.2rem;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.7s forwards;
}
.typewriter { color: var(--accent); font-weight: 600; }
.cursor-blink {
    color: var(--accent);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    color: var(--text-muted); max-width: 520px;
    font-size: 1rem; line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.9s forwards;
}
.hero-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 1.1s forwards;
}

.btn-glow {
    display: inline-flex; align-items: center;
    background: var(--gradient); color: #fff !important;
    padding: 0.75rem 1.8rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
    position: relative; overflow: hidden;
}
.btn-glow::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #a855f7, #6c63ff);
    opacity: 0; transition: opacity 0.3s;
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(108,99,255,0.6); }
.btn-glow:hover::before { opacity: 1; }
.btn-glow i, .btn-glow span { position: relative; z-index: 1; }

.btn-glass {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: 0.75rem 1.8rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(108,99,255,0.1);
    border-color: var(--accent); color: var(--accent) !important;
    transform: translateY(-3px);
}

.hero-socials {
    display: flex; gap: 0.8rem;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 1.3s forwards;
}
.social-icon {
    width: 42px; height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface);
}
.social-icon:hover {
    border-color: var(--accent); color: var(--accent) !important;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--glow);
}

/* ---- Hero Avatar ---- */
.hero-avatar-wrap {
    position: relative; width: 340px; height: 340px;
}
.avatar-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(108,99,255,0.3);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ring-1 { width: 100%; height: 100%; animation: spin 20s linear infinite; }
.ring-2 { width: 80%; height: 80%; animation: spin 15s linear infinite reverse; border-style: dashed; }
.ring-3 { width: 60%; height: 60%; border-color: rgba(168,85,247,0.3); animation: spin 10s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.avatar-img-wrap {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50%; height: 50%;
    border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--glow);
}
.avatar-placeholder {
    font-size: 4rem; color: rgba(255,255,255,0.9);
}

.floating-badge {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.35rem 0.8rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-family: var(--font-mono);
    animation: floatBadge 3s ease-in-out infinite;
}
.badge-html { top: 10%; right: -5%; animation-delay: 0s; color: #e34c26; border-color: #e34c26; }
.badge-css { bottom: 30%; right: -10%; animation-delay: 0.5s; color: #264de4; border-color: #264de4; }
.badge-js { top: 35%; left: -8%; animation-delay: 1s; color: #f7df1e; border-color: #f7df1e; }
.badge-react { bottom: 10%; left: 5%; animation-delay: 1.5s; color: #61dafb; border-color: #61dafb; }
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.75rem;
    animation: fadeIn 1s ease 2s both;
}
.scroll-mouse {
    width: 26px; height: 40px;
    border: 2px solid var(--text-muted); border-radius: 13px;
    display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: var(--accent); border-radius: 2px;
    animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(12px);opacity:0} }

/* ==============================
   STATS BAR
   ============================== */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.stat-item { position: relative; padding: 1rem; }
.stat-item + .stat-item::before {
    content: ''; position: absolute; left: 0; top: 20%;
    height: 60%; width: 1px; background: var(--border);
}
.stat-num {
    font-size: 2.5rem; font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.stat-plus { color: var(--accent); font-size: 1.5rem; font-weight: 700; }
.stat-item p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* ==============================
   SECTION BASE
   ============================== */
.section-pad { padding: 6rem 0; }

.section-header { text-align: center; margin-bottom: 1rem; }
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent); font-size: 0.85rem;
    letter-spacing: 3px; text-transform: uppercase;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: 20px; margin-bottom: 1rem;
    background: rgba(108,99,255,0.05);
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--text);
    position: relative;
}
.section-title::after {
    content: ''; display: block;
    width: 50px; height: 4px;
    background: var(--gradient); border-radius: 2px;
    margin: 0.8rem auto 0;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about-img-card {
    position: relative;
    padding: 2rem;
}
.about-img-inner {
    border-radius: 24px;
    background: var(--gradient2);
    padding: 3rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
    position: relative; overflow: hidden;
}
.about-avatar-lg {
    font-size: 6rem;
    color: rgba(255,255,255,0.9);
    position: relative; z-index: 2;
}
.about-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}
.about-exp-badge {
    position: absolute; bottom: 1rem; right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.exp-num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.exp-label { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }

.about-name { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.about-bio { color: var(--text-muted); line-height: 1.9; margin-bottom: 1.5rem; }

.about-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.info-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}
.info-item:hover { border-color: var(--accent); transform: translateX(4px); }
.info-item > i {
    width: 36px; height: 36px;
    background: rgba(108,99,255,0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 0.9rem; flex-shrink: 0;
}
.info-item span { display: block; font-size: 0.7rem; color: var(--text-muted); }
.info-item strong { font-size: 0.85rem; color: var(--text); word-break: break-word; }
.available-badge { color: #22c55e !important; }

.about-services { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.service-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 50px; font-size: 0.82rem; color: var(--text-muted);
    transition: var(--transition);
}
.service-pill i { color: var(--accent); }
.service-pill:hover { background: rgba(108,99,255,0.1); border-color: var(--accent); color: var(--text); }

/* ==============================
   PROJECTS SECTION
   ============================== */
.projects-section { background: var(--bg2); }

.project-filters {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem;
    margin-top: 2rem;
}
.filter-btn {
    padding: 0.5rem 1.4rem;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
    font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gradient); color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(108,99,255,0.4);
}

.proj-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    height: 100%;
    position: relative; overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.proj-card:hover {
    border-color: rgba(108,99,255,0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), var(--glow2);
}
.proj-card-glow {
    position: absolute; top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(108,99,255,0.08), transparent 60%);
    pointer-events: none;
}
.proj-icon-wrap {
    width: 52px; height: 52px;
    background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.proj-card:hover .proj-icon-wrap { background: rgba(108,99,255,0.2); box-shadow: var(--glow); }
.proj-icon { color: var(--accent); font-size: 1.3rem; }
.proj-num {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--accent); margin-bottom: 0.5rem;
    opacity: 0.7;
}
.proj-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.proj-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.proj-tags span {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    padding: 0.2rem 0.6rem; border-radius: 4px;
}
.proj-links { display: flex; gap: 1rem; }
.proj-link {
    font-size: 0.82rem; color: var(--text-muted) !important;
    text-decoration: none;
    display: flex; align-items: center; gap: 0.3rem;
    transition: var(--transition);
}
.proj-link:hover { color: var(--accent) !important; }

.project-item { transition: all 0.4s ease; }
.project-item.hidden { display: none; }

/* Tilt effect via JS */
.tilt-card { transform-style: preserve-3d; }

/* ==============================
   SKILLS SECTION
   ============================== */
.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}
.skill-card:hover {
    border-color: rgba(108,99,255,0.4);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.skill-icon-wrap {
    width: 56px; height: 56px;
    margin: 0 auto 0.8rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--clr, var(--accent));
    transition: var(--transition);
}
.skill-card:hover .skill-icon-wrap {
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 20px color-mix(in srgb, var(--clr, var(--accent)) 40%, transparent);
    transform: scale(1.1) rotate(5deg);
}
.skill-card span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.8rem; }
.skill-level {
    height: 3px; background: var(--surface2);
    border-radius: 2px; overflow: hidden;
}
.skill-level div {
    height: 100%; background: var(--gradient);
    border-radius: 2px; width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
   TIMELINE SECTION
   ============================== */
.timeline-section { background: var(--bg2); }

.timeline {
    position: relative; max-width: 800px; margin: 0 auto;
    padding: 0 1rem;
}
.timeline::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px; background: var(--border);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%; padding: 0 2.5rem 2.5rem 0;
    text-align: right;
}
.timeline-item.right {
    margin-left: 50%;
    padding: 0 0 2.5rem 2.5rem;
    text-align: left;
}
.timeline-dot {
    position: absolute; right: -8px; top: 6px;
    width: 16px; height: 16px;
    background: var(--gradient); border-radius: 50%;
    border: 3px solid var(--bg2);
    z-index: 1;
    box-shadow: var(--glow);
}
.timeline-item.right .timeline-dot { left: -8px; right: auto; }

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: var(--transition);
}
.timeline-card:hover { border-color: rgba(108,99,255,0.4); transform: scale(1.02); }
.tl-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.timeline-item.right .tl-header { flex-direction: row; }
.tl-header h5 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0; }
.tl-badge {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); background: rgba(108,99,255,0.1);
    padding: 0.2rem 0.6rem; border-radius: 20px;
    white-space: nowrap;
}
.tl-company { font-size: 0.82rem; color: var(--accent); margin-bottom: 0.5rem; }
.tl-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

@media (max-width: 640px) {
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item.right {
        width: 100%; margin-left: 0;
        padding: 0 0 2rem 3.5rem;
        text-align: left;
    }
    .timeline-dot { left: 12px; right: auto; }
    .timeline-item.right .timeline-dot { left: 12px; }
}

/* ==============================
   CONTACT SECTION
   ============================== */
.contact-section { background: var(--bg); }

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}
.contact-intro { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-detail {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-detail:last-of-type { border-bottom: none; }
.cd-icon {
    width: 44px; height: 44px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1rem; flex-shrink: 0;
}
.contact-detail span { display: block; font-size: 0.72rem; color: var(--text-muted); }
.contact-detail strong { font-size: 0.88rem; color: var(--text); }
.contact-socials { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cs-link {
    width: 42px; height: 42px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted) !important; text-decoration: none;
    font-size: 1rem; transition: var(--transition);
}
.cs-link:hover {
    background: var(--gradient);
    border-color: transparent; color: #fff !important;
    transform: translateY(-3px); box-shadow: var(--glow);
}

/* ---- Floating Label Form ---- */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.form-float {
    position: relative; margin-bottom: 0;
}
.form-input {
    width: 100%; padding: 1.2rem 1rem 0.6rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text);
    font-size: 0.95rem; font-family: var(--font);
    outline: none; transition: var(--transition);
    resize: vertical;
}
.form-input:focus { border-color: var(--accent); background: var(--bg); }
.form-float label {
    position: absolute; left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.9rem;
    pointer-events: none; transition: var(--transition);
    white-space: nowrap;
}
textarea.form-input ~ label { top: 1.2rem; transform: none; }
.form-input:focus ~ label,
.form-input:not(:placeholder-shown) ~ label {
    top: 0.4rem; transform: none;
    font-size: 0.72rem; color: var(--accent);
}
textarea.form-input:focus ~ label,
textarea.form-input:not(:placeholder-shown) ~ label {
    top: 0.3rem;
}
.form-focus-line {
    display: block; height: 2px;
    background: var(--gradient); border-radius: 0 0 10px 10px;
    transform: scaleX(0); transition: transform 0.3s ease;
}
.form-input:focus ~ .form-focus-line { transform: scaleX(1); }

.form-help-text {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    padding-left: 0.15rem;
}

.file-upload-wrap {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem 0.8rem;
}

.file-upload-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
}

.file-upload-wrap .form-input {
    padding: 0.6rem 0.7rem;
    background: var(--surface);
}

.file-upload-wrap .form-input::file-selector-button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    margin-right: 0.75rem;
    cursor: pointer;
    font-family: var(--font);
}

.file-upload-help {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.btn-send {
    width: 100%; padding: 0.9rem 2rem;
    background: var(--gradient); color: #fff;
    border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-send:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(108,99,255,0.6); }
.btn-send:active { transform: translateY(0); }

/* ==============================
   FOOTER
   ============================== */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    position: relative; overflow: hidden;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.footer-brand-logo { height: 24px; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a {
    width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted) !important; text-decoration: none;
    font-size: 0.85rem; transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent) !important; transform: translateY(-3px); }
.footer-gradient {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient);
}

/* ==============================
   SCROLL TO TOP
   ============================== */
.scroll-top-btn {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 46px; height: 46px;
    background: var(--gradient); color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(108,99,255,0.5);
    z-index: 999;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(108,99,255,0.7); }

/* ==============================
   TOAST NOTIFICATION
   ============================== */
.toast-notif {
    position: fixed; bottom: 5rem; right: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1.4rem;
    font-size: 0.88rem; color: var(--text);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 9998;
    max-width: 320px;
}
.toast-notif.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast-notif.success { border-left: 4px solid #22c55e; }
.toast-notif.error { border-left: 4px solid #ef4444; }
.toast-notif.warning { border-left: 4px solid #f59e0b; }

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll-reveal base */
[data-reveal] {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; transition: var(--transition); }

/* ==============================
   PROJECT MODAL
   ============================== */
.proj-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.proj-modal-overlay.open { opacity: 1; visibility: visible; }
.proj-modal-box {
    background: var(--surface);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 560px; width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh; overflow-y: auto;
}
.proj-modal-overlay.open .proj-modal-box { transform: translateY(0) scale(1); }
.proj-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 50%; color: var(--text-muted);
    font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.proj-modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.proj-modal-icon {
    width: 60px; height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent);
    margin-bottom: 1.2rem;
}
.proj-modal-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.proj-modal-desc { color: var(--text-muted); line-height: 1.8; font-size: 0.92rem; margin-bottom: 1.4rem; }
.proj-modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.proj-modal-tags span {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--accent); background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 0.25rem 0.7rem; border-radius: 4px;
}
.proj-modal-links { display: flex; gap: 1rem; }
.proj-modal-links a {
    flex: 1; padding: 0.65rem 1rem;
    text-align: center; border-radius: 8px;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.modal-live {
    background: var(--gradient); color: #fff !important;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}
.modal-live:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 99, 255, 0.6); }
.modal-code {
    background: var(--surface2); color: var(--text) !important;
    border: 1px solid var(--border);
}
.modal-code:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 991px) {
    .navbar-collapse { background: var(--surface2); border-radius: var(--radius); padding: 1rem; margin-top: 0.5rem; border: 1px solid var(--border); }
    .nav-brand-logo { height: 30px; }
    .nav-link::after { display: none; }
    .hero-text { padding: 5rem 0 2rem; }
    .hero-text { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-socials { justify-content: center; }
    .scroll-indicator { display: none; }
    .stats-bar { padding: 1.8rem 0; }
    .contact-info-card, .contact-form { height: auto; }
    .about-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    html { font-size: 15px; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .section-pad { padding: 4rem 0; }
    .hero-name { font-size: clamp(2.2rem, 10vw, 3rem); }
    .hero-tagline { font-size: 1.1rem; }
    .hero-actions { gap: 0.7rem; }
    .btn-glow, .btn-glass { width: 100%; justify-content: center; }
    .project-filters { gap: 0.45rem; }
    .filter-btn { padding: 0.45rem 1rem; font-size: 0.8rem; }
    .proj-links { flex-wrap: wrap; gap: 0.6rem; }
    .proj-link { width: 100%; }
    #skills .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }
    #skills .row > [class*="col-"] {
        width: auto;
        flex: 0 0 auto;
    }
    .skill-card {
        min-height: auto;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-align: left;
        padding: 0.95rem 1rem;
    }
    .skill-icon-wrap {
        display: flex;
        width: 32px;
        height: 32px;
        margin: 0;
        border-radius: 8px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    .skill-card span { margin-bottom: 0; font-size: 0.82rem; line-height: 1.35; }
    .skill-level { display: none; }
    .skill-card:hover { transform: none; box-shadow: none; }
    .contact-info-card, .contact-form { padding: 1.3rem; }
    .form-input { font-size: 0.92rem; }
    .file-upload-wrap { padding: 0.75rem 0.8rem 0.7rem; }
    .file-upload-wrap .form-input::file-selector-button { margin-bottom: 0.35rem; }
    .proj-modal-box { padding: 1.2rem; border-radius: 14px; }
    .proj-modal-links { flex-direction: column; }
    .toast-notif {
        left: 1rem;
        right: 1rem;
        bottom: 4.7rem;
        max-width: none;
    }
    .scroll-top-btn {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
    }
    .stat-item + .stat-item::before { display: none; }
    .stat-num { font-size: 2rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .timeline-card .tl-header { flex-direction: column; }
    #about .row.align-items-center { row-gap: 1.1rem; }
    .about-img-card { padding: 0; }
    .about-name { line-height: 1.25; }
    .about-bio { font-size: 0.92rem; line-height: 1.75; }
    .about-services { gap: 0.5rem; }
    .service-pill { font-size: 0.78rem; padding: 0.35rem 0.8rem; }
}

@media (max-width: 575px) {
    .hero-text { padding-top: 4.4rem; }
    .hero-desc { line-height: 1.7; }
    .about-name { font-size: 1.25rem; }
    .about-img-inner { min-height: 185px; padding: 1.4rem; border-radius: 18px; }
    .about-avatar-lg { font-size: 3.4rem; }
    .about-exp-badge {
        position: static;
        margin: 0.65rem auto 0;
        width: 100%;
        max-width: 170px;
        padding: 0.7rem 0.8rem;
    }
    .exp-num { font-size: 1.5rem; }
    .exp-label { font-size: 0.66rem; }
    .about-info-grid { gap: 0.75rem; }
    .info-item { padding: 0.72rem; }
    .proj-card, .timeline-card, .skill-card { padding: 1rem; }
    #skills .row { grid-template-columns: 1fr; }
    .contact-detail { gap: 0.75rem; align-items: flex-start; }
    .contact-detail strong { font-size: 0.82rem; }
    .form-float label { font-size: 0.84rem; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 420px) {
    html { font-size: 14px; }
    .nav-brand-logo { height: 26px; }
    .loader-brand-logo { height: 56px; }
    .footer-brand-logo { height: 20px; }
    .theme-toggle { width: 34px; height: 34px; }
    .hero-name { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
    .stat-num { font-size: 1.7rem; }
    .btn-send { padding: 0.8rem 1rem; }
    .footer-copy { font-size: 0.75rem; }
}
