/* ═══════════════════════════════════════════
   HAMZA DATI — PORTFOLIO
   Playful, intuitive, developer-themed
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B85FF;
    --accent: #FF6584;
    --accent-alt: #00D9A6;
    --bg-dark: #0F0F1A;
    --bg-card: #1A1A2E;
    --bg-card-hover: #222240;
    --bg-section-alt: #141425;
    --text-primary: #EAEAF5;
    --text-secondary: #9B9BC0;
    --text-muted: #6B6B8D;
    --border-subtle: rgba(108, 99, 255, 0.15);
    --gradient-primary: linear-gradient(135deg, #6C63FF, #FF6584);
    --gradient-card: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(255, 101, 132, 0.05));
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ── 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-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ═══════ NAVBAR ═══════ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -1px;
}

.brand-bracket {
    color: var(--primary);
    font-weight: 300;
}

.navbar-toggler {
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28108, 99, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* ═══════ HERO ═══════ */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-alt);
    top: 40%;
    left: 30%;
    animation: float 12s ease-in-out infinite 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    top: 20%;
    left: 60%;
    animation: float 18s ease-in-out infinite 1s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: var(--accent);
    bottom: 20%;
    right: 20%;
    animation: float 14s ease-in-out infinite 3s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, -15px) rotate(2deg); }
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60%, 100% { transform: rotate(0deg); }
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-alt);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.hero-title-prefix {
    color: var(--primary);
    font-weight: 700;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--primary-light);
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF6584, #6C63FF);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.35);
    color: white;
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-primary-custom i,
.btn-primary-custom span {
    position: relative;
    z-index: 1;
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary-light);
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Code Window */
.hero-illustration {
    perspective: 1000px;
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transform: rotateY(-5deg) rotateX(3deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.code-window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-window-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-window-body {
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-window-body pre {
    margin: 0;
}

.code-window-body code {
    color: var(--text-secondary);
}

.code-keyword { color: #C792EA; }
.code-type { color: #82AAFF; }
.code-string { color: #C3E88D; }

/* ═══════ SECTION COMMONS ═══════ */
.section-padding {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.section-closer {
    text-align: center;
    margin-top: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ═══════ ABOUT ═══════ */
.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-placeholder {
    width: 250px;
    height: 250px;
    background: var(--gradient-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.about-image-placeholder:hover {
    transform: rotate(-3deg) scale(1.03);
    border-color: var(--primary);
}

.about-image-decoration {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    top: 15px;
    left: calc(50% - 110px);
    opacity: 0.3;
    z-index: 0;
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.accent-dot {
    color: var(--accent);
    font-size: 2.5rem;
    line-height: 0;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-content p strong {
    color: var(--primary-light);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 1.3rem;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Industry Tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.industry-tag {
    background: rgba(0, 217, 166, 0.08);
    color: var(--accent-alt);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 166, 0.2);
    transition: var(--transition);
}

.industry-tag:hover {
    background: rgba(0, 217, 166, 0.15);
    border-color: var(--accent-alt);
    transform: translateY(-2px);
}

/* ═══════ SKILLS ═══════ */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-card-primary {
    background: var(--gradient-card);
}

.skill-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.skill-card-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.skill-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
    min-width: 35px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-light);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--primary);
}

/* Mini Skill Cards */
.skill-card-mini {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.skill-card-mini:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-card-mini i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.skill-card-mini h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mini-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════ EXPERIENCE STAIRCASE ═══════ */
.staircase-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.staircase-wrapper::-webkit-scrollbar {
    height: 4px;
}

.staircase-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}

.staircase-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.staircase-track {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 450px;
    padding: 0;
}

.stair-step {
    flex: 1;
    min-width: 115px;
    border-radius: 12px 12px 0 0;
    padding: 1rem 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    border: 1px solid transparent;
    border-bottom: none;
}

.stair-step:hover {
    transform: translateY(-6px);
}

/* Step heights & colors — the ascending staircase */
.stair-1 {
    min-height: 130px;
    background: linear-gradient(to top, rgba(0, 217, 166, 0.22), rgba(0, 217, 166, 0.06));
}
.stair-2 {
    min-height: 175px;
    background: linear-gradient(to top, rgba(15, 200, 172, 0.22), rgba(15, 200, 172, 0.06));
}
.stair-3 {
    min-height: 190px;
    background: linear-gradient(to top, rgba(35, 180, 180, 0.22), rgba(35, 180, 180, 0.06));
}
.stair-4 {
    min-height: 220px;
    background: linear-gradient(to top, rgba(55, 160, 195, 0.22), rgba(55, 160, 195, 0.06));
}
.stair-5 {
    min-height: 250px;
    background: linear-gradient(to top, rgba(70, 140, 210, 0.22), rgba(70, 140, 210, 0.06));
}
.stair-6 {
    min-height: 280px;
    background: linear-gradient(to top, rgba(85, 120, 220, 0.22), rgba(85, 120, 220, 0.06));
}
.stair-7 {
    min-height: 310px;
    background: linear-gradient(to top, rgba(95, 110, 230, 0.22), rgba(95, 110, 230, 0.06));
}
.stair-8 {
    min-height: 340px;
    background: linear-gradient(to top, rgba(105, 100, 240, 0.22), rgba(105, 100, 240, 0.06));
}
.stair-9 {
    min-height: 380px;
    background: linear-gradient(to top, rgba(108, 99, 255, 0.30), rgba(108, 99, 255, 0.10));
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 -5px 30px rgba(108, 99, 255, 0.15);
}

/* Hover glows */
.stair-1:hover { box-shadow: 0 -5px 25px rgba(0, 217, 166, 0.2); border-color: rgba(0, 217, 166, 0.3); }
.stair-2:hover { box-shadow: 0 -5px 25px rgba(15, 200, 172, 0.2); border-color: rgba(15, 200, 172, 0.3); }
.stair-3:hover { box-shadow: 0 -5px 25px rgba(35, 180, 180, 0.2); border-color: rgba(35, 180, 180, 0.3); }
.stair-4:hover { box-shadow: 0 -5px 25px rgba(55, 160, 195, 0.2); border-color: rgba(55, 160, 195, 0.3); }
.stair-5:hover { box-shadow: 0 -5px 25px rgba(70, 140, 210, 0.2); border-color: rgba(70, 140, 210, 0.3); }
.stair-6:hover { box-shadow: 0 -5px 25px rgba(85, 120, 220, 0.2); border-color: rgba(85, 120, 220, 0.3); }
.stair-7:hover { box-shadow: 0 -5px 25px rgba(95, 110, 230, 0.2); border-color: rgba(95, 110, 230, 0.3); }
.stair-8:hover { box-shadow: 0 -5px 25px rgba(105, 100, 240, 0.2); border-color: rgba(105, 100, 240, 0.3); }
.stair-9:hover { box-shadow: 0 -5px 40px rgba(108, 99, 255, 0.3); }

/* Current step pulse */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 -5px 30px rgba(108, 99, 255, 0.15); }
    50% { box-shadow: 0 -5px 40px rgba(108, 99, 255, 0.3); }
}

.stair-9 {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Stair content elements */
.stair-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-current {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.badge-start {
    background: rgba(0, 217, 166, 0.1);
    color: var(--accent-alt);
    border: 1px solid rgba(0, 217, 166, 0.25);
}

.stair-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    opacity: 0.7;
    transition: var(--transition);
}

.stair-step:hover .stair-icon {
    opacity: 1;
    transform: scale(1.15);
}

.stair-title {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.stair-company {
    font-size: 0.65rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.2rem;
    margin-top: 0;
}

.stair-date {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-muted);
}

/* ═══════ EDUCATION ═══════ */
.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.education-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.education-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 1.2rem;
}

.education-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.education-school {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.education-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* ═══════ REVIEWS ═══════ */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.review-quote {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 0.8rem;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.review-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.review-position {
    display: block;
    font-size: 0.78rem;
    color: var(--primary-light);
    font-weight: 500;
}

.review-company {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════ REVIEW CARD FIXED HEIGHT ═══════ */
.review-card {
    height: 280px;
    display: flex;
    flex-direction: column;
}

.review-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    position: relative;
}

.review-card .review-show-more {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.4rem;
    transition: var(--transition);
    font-family: var(--font-main);
    display: none;
}

.review-card .review-show-more:hover {
    color: var(--accent);
}

.review-card .review-show-more.visible {
    display: inline-block;
}

/* ═══════ REVIEW MODAL ═══════ */
.review-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 550px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.review-modal-overlay.active .review-modal {
    transform: translateY(0) scale(1);
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.review-modal-body .review-quote {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.review-modal-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review-modal-body .review-author {
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
}

.review-modal-body .review-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.review-modal-body .review-name {
    font-size: 1.05rem;
}

/* Review Form Modal */
.review-modal-form {
    max-width: 580px;
}

.review-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.review-form-title i {
    color: var(--primary);
}

.review-form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ═══════ REVIEWS SLIDER ═══════ */
.reviews-slider {
    margin: 0 -10px;
}

.review-slide {
    padding: 0 10px;
}

/* Slick Dots */
.reviews-slider .slick-dots {
    bottom: -40px;
}

.reviews-slider .slick-dots li button:before {
    color: var(--text-muted);
    font-size: 8px;
    opacity: 0.4;
}

.reviews-slider .slick-dots li.slick-active button:before {
    color: var(--primary);
    opacity: 1;
}

/* Slick Arrows */
.slick-prev-custom,
.slick-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slick-prev-custom {
    left: -20px;
}

.slick-next-custom {
    right: -20px;
}

.slick-prev-custom:hover,
.slick-next-custom:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

/* Code number color */
.code-number {
    color: #F78C6C;
}

/* ═══════ CONTACT ═══════ */
.contact-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-floating-custom .form-control:focus {
    background: rgba(108, 99, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
}

.form-floating-custom .form-control::placeholder {
    color: var(--text-muted);
}

.form-floating-custom label {
    display: none;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* ═══════ FOOTER ═══════ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.footer-text strong {
    color: var(--text-primary);
}

.footer-year {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ═══════ BACK TO TOP ═══════ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(20px);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid var(--border-subtle);
    }

    .hero-section {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-title-wrapper {
        justify-content: center;
    }

    .about-stats {
        justify-content: center;
    }

    .skill-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skill-tags {
        justify-content: center;
    }

    .staircase-track {
        min-width: max-content;
    }

    .stair-step {
        flex: none;
        width: 115px;
        min-width: 115px;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 250px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.2s; }
.hero-content > :nth-child(3) { animation-delay: 0.4s; }
.hero-content > :nth-child(4) { animation-delay: 0.6s; }
.hero-content > :nth-child(5) { animation-delay: 0.8s; }

.code-window {
    animation: slideUp 1s ease 0.5s forwards;
    opacity: 0;
}
