/* ============================================
   MUHAMMAD AHMED - PORTFOLIO CSS
   Premium Gold-Orange & Charcoal Theme
   ============================================ */

/* --- CSS Variables (Dark Theme - Default) --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-lighter: #222222;
    --gold: #ff6b00;
    --gold-light: #ff8c33;
    --gold-dark: #e55a00;
    --gold-gradient: linear-gradient(135deg, #ff6b00, #ff8c33);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: rgba(255, 107, 0, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(255, 107, 0, 0.25);
    --transition: all 0.3s ease;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Light Theme --- */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-lighter: #f0f0f0;
    --gold: #ff6b00;
    --gold-light: #ff8c33;
    --gold-dark: #e55a00;
    --gold-gradient: linear-gradient(135deg, #ff6b00, #ff8c33);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: rgba(255, 107, 0, 0.25);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 4px 20px rgba(255, 107, 0, 0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gold {
    color: var(--gold) !important;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
    padding: 10px 28px;
    font-size: 0.8rem;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link.active {
    position: relative;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.theme-toggle:hover {
    box-shadow: var(--shadow-gold);
    transform: scale(1.05);
}

.theme-icon-dark,
.theme-icon-light {
    position: absolute;
    font-size: 0.7rem;
    transition: var(--transition);
    z-index: 1;
}

.theme-icon-dark {
    color: var(--gold);
    left: 7px;
    opacity: 1;
}

.theme-icon-light {
    color: var(--text-muted);
    right: 7px;
    opacity: 0.5;
}

.theme-toggle-slider {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold-gradient);
    border-radius: 50%;
    left: 3px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4);
}

.light-theme .theme-toggle-slider {
    left: calc(100% - 23px);
}

.light-theme .theme-icon-dark {
    opacity: 0.5;
    color: var(--text-muted);
}

.light-theme .theme-icon-light {
    opacity: 1;
    color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroContentFadeIn 1s ease forwards;
}

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

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    animation: heroImageFadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes heroImageFadeIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-circle-solid {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    height: 280px;
    background: var(--gold);
    border-radius: 50%;
    z-index: 0;
    animation: circlePulse 3s ease-in-out infinite;
}

@keyframes circlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero-circle-outline {
    position: absolute;
    bottom: 10px;
    right: -10px;
    width: 220px;
    height: 220px;
    border: 5px solid var(--gold);
    border-radius: 50%;
    z-index: 0;
    background: transparent;
    animation: outlineRotate 8s linear infinite;
}

@keyframes outlineRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-profile-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    z-index: 1;
    transition: transform 0.4s ease;
}

.hero-image-wrapper:hover .hero-profile-img {
    transform: translate(-50%, -50%) scale(1.03);
}

/* ============================================
    HERO SOCIAL SIDEBAR
    ============================================ */
.hero-social-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.hero-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.hero-social-link::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hero-social-link:hover {
    color: #fff;
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.hero-social-link:hover::before {
    opacity: 0.3;
}

.hero-social-line {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    margin-top: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 380px;
    height: 450px;
    margin: 0 auto;
    animation: aboutImageFadeIn 1s ease forwards;
    opacity: 0;
}

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

.about-profile-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    z-index: 1;
    transition: all 0.4s ease;
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.about-image-wrapper:hover .about-profile-img {
    transform: translateX(-50%) translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.3);
}

.about-text {
    animation: aboutTextFadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes aboutTextFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-details {
    margin-top: 24px;
    display: grid;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: var(--bg-lighter);
    transform: translateX(8px);
    border-left: 3px solid var(--gold);
}

.detail-label {
    font-weight: 600;
    min-width: 80px;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-buttons {
    margin-top: 28px;
    display: flex;
    gap: 16px;
}

/* ============================================
   SERVICE SECTION - Alternating Zigzag Layout
   ============================================ */
.service {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.service-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.service-header {
    text-align: center;
    margin-bottom: 70px;
}

.service-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

/* --- Service Stack (Vertical rows) --- */
.service-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Service Row (Each alternating row) --- */
.service-row {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(50px);
}

.service-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient border glow on hover */
.service-row::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, var(--gold) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.service-row:hover::before {
    opacity: 1;
}

/* Shimmer sweep */
.service-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.04), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

.service-row:hover::after {
    left: 100%;
}

.service-row:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(255, 107, 0, 0.12),
        0 0 50px rgba(255, 107, 0, 0.06);
    border-color: transparent;
}

/* Reverse layout: image LEFT, content RIGHT */
.service-row-reverse {
    flex-direction: row-reverse;
}

/* --- Content Side --- */
.service-row-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-row-number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 8px;
    transition: all 0.5s ease;
}

.service-row:hover .service-row-number {
    opacity: 0.35;
    transform: translateX(5px);
}

.service-row-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 14px;
    transition: color 0.4s ease;
}

.service-row:hover .service-row-title {
    color: var(--gold);
}

.service-row-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-row-line {
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-row:hover .service-row-line {
    width: 70px;
}

/* --- Visual Side (Image) --- */
.service-row-visual {
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-row-img-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
}

.service-row-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-row:hover .service-row-img {
    transform: scale(1.08);
}

.service-row-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 0, 0.08) 0%,
        transparent 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.service-row:hover .service-row-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 0, 0.18) 0%,
        transparent 50%,
        rgba(10, 10, 10, 0.2) 100%
    );
}

/* Icon Badge floating on image */
.service-row-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--gold-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    z-index: 3;
    box-shadow: 0 10px 28px rgba(255, 107, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid var(--bg-card);
}

.service-row-reverse .service-row-icon-badge {
    right: auto;
    left: 30px;
}

.service-row:hover .service-row-icon-badge {
    transform: translateY(-8px) scale(1.1) rotate(-5deg);
    box-shadow: 0 16px 40px rgba(255, 107, 0, 0.55);
}

/* Stagger animation delays */
.service-row[data-delay="0"] { transition-delay: 0s; }
.service-row[data-delay="100"] { transition-delay: 0.1s; }
.service-row[data-delay="200"] { transition-delay: 0.2s; }
.service-row[data-delay="300"] { transition-delay: 0.3s; }
.service-row[data-delay="400"] { transition-delay: 0.4s; }
.service-row[data-delay="500"] { transition-delay: 0.5s; }

/* ============================================
    HERO SHOWCASE - Big Name + Profile
    ============================================ */
.hero-showcase {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-showcase-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    z-index: 10;
}

.hero-menu-btn {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-menu-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 107, 0, 0.05);
}

.hero-signature {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
}

.hero-showcase-center {
    text-align: center;
    position: relative;
}

.hero-big-name {
    display: flex;
    justify-content: center;
    gap: 2px;
    line-height: 0.85;
    margin-bottom: 10px;
}

.hero-big-name-bottom {
    margin-top: 10px;
    margin-bottom: 0;
}

.blur-letter {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -2px;
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-30px);
    transition: all 0.6s ease-out;
    text-shadow: 0 0 40px rgba(255, 107, 0, 0.15);
}

.hero-showcase.animate .blur-letter {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

.hero-showcase.animate .blur-letter[data-index="0"] { transition-delay: 0ms; }
.hero-showcase.animate .blur-letter[data-index="1"] { transition-delay: 100ms; }
.hero-showcase.animate .blur-letter[data-index="2"] { transition-delay: 200ms; }
.hero-showcase.animate .blur-letter[data-index="3"] { transition-delay: 300ms; }
.hero-showcase.animate .blur-letter[data-index="4"] { transition-delay: 400ms; }
.hero-showcase.animate .blur-letter[data-index="5"] { transition-delay: 500ms; }
.hero-showcase.animate .blur-letter[data-index="6"] { transition-delay: 600ms; }
.hero-showcase.animate .blur-letter[data-index="7"] { transition-delay: 700ms; }
.hero-showcase.animate .blur-letter[data-index="8"] { transition-delay: 850ms; }
.hero-showcase.animate .blur-letter[data-index="9"] { transition-delay: 950ms; }
.hero-showcase.animate .blur-letter[data-index="10"] { transition-delay: 1050ms; }
.hero-showcase.animate .blur-letter[data-index="11"] { transition-delay: 1150ms; }
.hero-showcase.animate .blur-letter[data-index="12"] { transition-delay: 1250ms; }

.hero-profile-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: clamp(70px, 10vw, 130px);
    height: clamp(110px, 15vw, 200px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 107, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--gold);
    transition: all 0.4s ease;
    opacity: 0;
    scale: 0.8;
}

.hero-showcase.animate .hero-profile-circle {
    opacity: 1;
    scale: 1;
    transition-delay: 1s;
}

.hero-profile-circle:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 80px rgba(255, 107, 0, 0.5), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-profile-img-showcase {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-showcase-tagline {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.blur-word {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(15px);
    transition: all 0.5s ease-out;
}

.hero-showcase.animate .blur-word {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

.hero-showcase.animate .blur-word[data-index="0"] { transition-delay: 1500ms; }
.hero-showcase.animate .blur-word[data-index="1"] { transition-delay: 1650ms; }
.hero-showcase.animate .blur-word[data-index="2"] { transition-delay: 1800ms; }
.hero-showcase.animate .blur-word[data-index="3"] { transition-delay: 1950ms; }
.hero-showcase.animate .blur-word[data-index="4"] { transition-delay: 2100ms; }
.hero-showcase.animate .blur-word[data-index="5"] { transition-delay: 2250ms; }
.hero-showcase.animate .blur-word[data-index="6"] { transition-delay: 2400ms; }
.hero-showcase.animate .blur-word[data-index="7"] { transition-delay: 2550ms; }
.hero-showcase.animate .blur-word[data-index="8"] { transition-delay: 2700ms; }
.hero-showcase.animate .blur-word[data-index="9"] { transition-delay: 2850ms; }

.hero-showcase-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-showcase.animate .hero-showcase-scroll {
    opacity: 1;
    transition-delay: 3s;
    animation: scrollBounce 2s ease-in-out 3.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero-showcase-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-showcase-scroll a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(4px);
}

@keyframes scrollBounce {
    to { opacity: 1; }
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
    FREELANCER CTA
    ============================================ */
.freelancer-cta {
    background: var(--bg-lighter);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
}

.cta-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 30px;
}

/* ============================================
   RESUME SECTION
   ============================================ */
.resume {
    background: var(--bg-secondary);
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.resume-category {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.resume-category i {
    font-size: 1.1rem;
}

.resume-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition);
}

.resume-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 2px 0 0 2px;
}

.resume-card:hover {
    transform: translateX(5px);
    border-color: var(--gold);
}

.resume-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.resume-card-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.resume-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.resume-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ============================================
    ACHIEVEMENTS & CERTIFICATES SECTION
    ============================================ */
.achievements {
    background: var(--bg-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.certificate-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

.certificate-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}

/* ============================================
    TESTIMONIALS - PREMIUM DESIGN
    ============================================ */
.testimonials {
    background: var(--bg-primary);
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.testimonials-main-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    transition: all 0.5s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, transparent 50%, rgba(255, 107, 0, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0.02));
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.testimonial-avatar i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.7;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.3;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 28px;
    position: relative;
}

.testimonial-author {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
}

/* ============================================
    PORTFOLIO - PREMIUM 3D CARDS
    ============================================ */
.portfolio {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.portfolio-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.portfolio-main-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.75rem;
}

.filter-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.filter-btn.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-item {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 107, 0, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 0, 0.1);
    border-color: transparent;
}

.portfolio-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.1);
}

.portfolio-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card-shine {
    left: 100%;
}

.portfolio-card-body {
    padding: 22px;
}

.portfolio-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-badge i {
    font-size: 0.65rem;
}

.badge-web {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-pos {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-ai {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.portfolio-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.portfolio-card-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-title {
    color: var(--gold);
}

.portfolio-card-desc {
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.portfolio-card-link:hover {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
}

.portfolio-card-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.portfolio-card-link:hover i {
    transform: translateX(3px);
}

/* ============================================
    BLOG - PREMIUM CARDS
    ============================================ */
.blog {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.blog-main-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 107, 0, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 107, 0, 0.08);
    border-color: transparent;
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-card-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-gradient {
    transform: scale(1.1);
}

.gradient-1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d132c 50%, #4a1942 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #1a1a2e 0%, #1b262c 50%, #0f4c75 100%);
}

.blog-card-icon {
    font-size: 3.5rem;
    color: var(--gold);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.blog-card:hover .blog-card-icon {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.4));
}

/* Blog Badge */
.blog-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
}

/* Blog Content */
.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card-meta i {
    font-size: 0.7rem;
    color: var(--gold);
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--gold);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Blog Link */
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.blog-card-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.blog-card-link:hover {
    gap: 12px;
}

.blog-card-link:hover i {
    transform: translateX(4px);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 36px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 0.9rem;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.divider-icon {
    color: var(--gold);
    opacity: 0.6;
    animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 1px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
    transition: var(--transition);
}

.footer-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gold-gradient);
    color: #fff;
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.35);
}

/* Footer Columns */
.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.footer-col:hover .footer-heading::after {
    width: 50px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.84rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.footer-contact li i {
    color: var(--gold);
    font-size: 0.8rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

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

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 0, 0.2);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

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

.back-to-top:hover {
    background: var(--gold-gradient);
    color: #fff;
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.35);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-social-sidebar {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-image-wrapper {
        width: 350px;
        height: 350px;
    }

    .hero-circle-solid {
        width: 240px;
        height: 240px;
    }

    .hero-circle-outline {
        width: 180px;
        height: 180px;
    }

    .hero-profile-img {
        width: 280px;
        height: 340px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image-wrapper {
        width: 320px;
        height: 380px;
    }

    .about-circle-solid {
        width: 220px;
        height: 220px;
    }

    .about-circle-outline {
        width: 220px;
        height: 220px;
    }

    .about-profile-img {
        width: 260px;
        height: 360px;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .detail-item {
        justify-content: center;
    }

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

    .service-row {
        flex-direction: column !important;
        padding: 28px;
        gap: 24px;
    }

    .service-row-img-wrap {
        height: 220px;
    }

    .service-row-icon-badge {
        bottom: -16px;
        right: 20px;
    }

    .service-row-reverse .service-row-icon-badge {
        right: 20px;
        left: auto;
    }

    .service-row-number {
        font-size: 2.2rem;
    }

    .hero-big-name .blur-letter {
        font-size: clamp(3rem, 10vw, 8rem);
    }

    .hero-profile-circle {
        width: clamp(60px, 8vw, 100px);
        height: clamp(90px, 12vw, 160px);
    }

    .hero-showcase-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificate-img {
        height: 280px;
    }

    .resume-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonial-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }

    .testimonial-left {
        flex-direction: row;
        justify-content: center;
    }

    .testimonials-main-title {
        font-size: 2.2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .portfolio-card-img {
        height: 200px;
    }

    .portfolio-main-title {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-main-title {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 20px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions {
        gap: 10px;
    }

    .theme-toggle {
        width: 48px;
        height: 24px;
    }

    .theme-toggle-slider {
        width: 16px;
        height: 16px;
    }

    .light-theme .theme-toggle-slider {
        left: calc(100% - 19px);
    }

    .theme-icon-dark,
    .theme-icon-light {
        font-size: 0.6rem;
    }

    .theme-icon-dark {
        left: 5px;
    }

    .theme-icon-light {
        right: 5px;
    }

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

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

    .service-row {
        padding: 20px;
        gap: 20px;
    }

    .service-row-img-wrap {
        height: 180px;
    }

    .service-row-title {
        font-size: 0.95rem;
    }

    .service-row-desc {
        font-size: 0.85rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-img {
        height: 220px;
    }

    .portfolio-main-title {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-text {
        font-size: 1.5rem;
    }

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

    .portfolio-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .skills-tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .skills-chart-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-chart-item {
        padding: 18px 8px 16px;
    }

    .skill-ring {
        width: 80px;
        height: 80px;
    }

    .skill-ring-percent {
        font-size: 1rem;
    }

    .skill-ring-label {
        font-size: 0.7rem;
    }

    .skills-col-icon {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .skills-category-text {
        font-size: 0.85rem;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-circle-solid {
        width: 200px;
        height: 200px;
    }

    .hero-circle-outline {
        width: 150px;
        height: 150px;
    }

    .hero-profile-img {
        width: 230px;
        height: 280px;
    }

    .about-image-wrapper {
        width: 260px;
        height: 320px;
    }

    .about-circle-solid {
        width: 180px;
        height: 180px;
    }

    .about-circle-outline {
        width: 180px;
        height: 180px;
    }

    .about-profile-img {
        width: 220px;
        height: 300px;
    }

    .about-title {
        font-size: 1.3rem;
    }

    .section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ============================================
    LIGHT THEME OVERRIDES
    ============================================ */
.light-theme .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.light-theme .hero-image-placeholder,
.light-theme .about-image-placeholder,
.light-theme .blog-image-placeholder,
.light-theme .testimonial-image-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.light-theme .hero-circle-solid,
.light-theme .about-circle-solid {
    opacity: 0.85;
}

.light-theme .hero-circle-outline,
.light-theme .about-circle-outline {
    border-color: var(--gold);
}

.light-theme .hero-profile-img {
    border-color: var(--border-color);
}

.light-theme .btn-primary {
    color: #ffffff;
}

.light-theme .btn-primary:hover {
    color: var(--gold);
    background: transparent;
}

.light-theme .filter-btn {
    border-color: rgba(255, 107, 0, 0.3);
}

.light-theme .nav-link {
    color: var(--text-secondary);
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
    color: var(--gold);
}

.light-theme .theme-toggle {
    background: var(--bg-lighter);
}

.light-theme .resume-card {
    background: var(--bg-card);
}

.light-theme .service-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.light-theme .service-row::before {
    background: linear-gradient(135deg, transparent 30%, var(--gold) 100%);
}

.light-theme .service-row:hover {
    box-shadow:
        0 24px 60px rgba(255, 107, 0, 0.1),
        0 0 50px rgba(255, 107, 0, 0.04);
}

.light-theme .service-row-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 0, 0.05) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.light-theme .service-row:hover .service-row-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 0, 0.12) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.light-theme .service-row-icon-badge {
    border-color: var(--bg-card);
}

.light-theme .service-row-title {
    color: var(--text-primary);
}

.light-theme .service-row:hover .service-row-title {
    color: var(--gold);
}

.light-theme .service-bg-grid {
    background-image:
        linear-gradient(rgba(255, 107, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.06) 1px, transparent 1px);
}

.light-theme .blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.light-theme .blog-card:hover {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.06),
        0 0 30px rgba(255, 107, 0, 0.05);
}

.light-theme .blog-card-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 107, 0, 0.3);
}

.light-theme .testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.light-theme .testimonial-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.light-theme .testimonial-avatar {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.02));
}

.light-theme .certificate-card {
    border-color: var(--border-color);
}

.light-theme .certificate-card:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
}

.light-theme .portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.light-theme .portfolio-card:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(255, 107, 0, 0.06);
}

.light-theme .contact-form {
    background: var(--bg-card);
}

.light-theme .hero-profile-img {
    border-color: var(--border-color);
}

.light-theme .contact-icon {
    background: var(--bg-lighter);
}

.light-theme .form-group input,
.light-theme .form-group textarea {
    background: var(--bg-lighter);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.light-theme .form-group input:focus,
.light-theme .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.light-theme .hero::before {
    background: radial-gradient(ellipse, rgba(255, 107, 0, 0.03) 0%, transparent 70%);
}

.light-theme .skill-ring-bg {
    stroke: rgba(0, 0, 0, 0.08);
}

.light-theme .skill-ring-fill {
    filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.3));
}

.light-theme .skill-ring-percent {
    color: #1a1a1a;
    text-shadow: none;
}

.light-theme .skill-ring符号 {
    color: rgba(0, 0, 0, 0.3);
}

.light-theme .skill-chart-item:hover .skill-ring-percent {
    color: var(--gold);
}

.light-theme .skill-chart-item:hover .skill-ring符号 {
    color: rgba(255, 107, 0, 0.6);
}

.light-theme .skill-chart-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .skill-chart-item:hover {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.08);
}

.light-theme .skill-ring-label {
    color: rgba(0, 0, 0, 0.5);
}

.light-theme .skill-chart-item:hover .skill-ring-label {
    color: rgba(0, 0, 0, 0.8);
}

.light-theme .skills-title {
    color: #1a1a1a;
}

.light-theme .tech-ecosystem-title {
    color: #1a1a1a;
}

.light-theme .hero-big-name .blur-letter {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(255, 107, 0, 0.1);
}

.light-theme .skills-tagline {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .tech-ecosystem-subtitle {
    color: var(--gold);
}

.light-theme .hero-signature {
    color: var(--gold);
}

.light-theme .hero-menu-btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.light-theme .hero-menu-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.light-theme .tech-ecosystem-subtitle {
    color: var(--gold);
}

.light-theme .skills-col-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.light-theme .skills-category-text {
    color: rgba(0, 0, 0, 0.85);
}

.light-theme .skills-bg-orb-1 {
    background: rgba(255, 107, 0, 0.04);
}

.light-theme .skills-bg-orb-2 {
    background: rgba(255, 170, 85, 0.03);
}

.light-theme .about-profile-img {
    border-color: var(--border-color);
}

.light-theme .freelancer-cta {
    background: var(--bg-lighter);
}

.light-theme ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: var(--gold);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
