/* ==========================================
   PORTFOLIO STYLES - Dark Theme
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-elevated: #0a0a0a;
    --bg-subtle: #111111;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-body: #e8e8e8;
    --text-muted: #a3a3a3;
    --text-tertiary: #6b7280;
    --accent: #c8f560;
    --accent-hover: #b9e650;
    --accent-pressed: #a3d147;
    --accent-glow: rgba(200, 245, 96, 0.15);
    --accent-bg: rgba(200, 245, 96, 0.1);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(200, 245, 96, 0.3);
    --divider: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --hero-size: clamp(3rem, 10vw, 8rem);
    --h2-size: clamp(2rem, 5vw, 4rem);
    --h3-size: clamp(1.25rem, 2vw, 1.75rem);
    --body-size: 1rem;
    --small-size: 0.875rem;
    --nav-size: 0.9375rem;

    /* Spacing */
    --section-padding: clamp(80px, 12vh, 140px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 5vw, 60px);
    --card-gap: 24px;
    --space-unit: 16px;

    /* Border Radius */
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-img: 12px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(200, 245, 96, 0.15);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 60px rgba(200, 245, 96, 0.08);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    /* Z-index */
    --z-nav: 100;
    --z-toast: 200;
    --z-backtotop: 90;
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===== Utilities ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.accent {
    color: var(--accent);
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-xs {
    width: 16px;
    height: 16px;
}

/* Scroll Reveal Base */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(200, 245, 96, 0.1); }
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== Components ===== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: var(--nav-size);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    background: var(--accent-pressed);
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* Section Tag */
.section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.tag-text {
    font-size: var(--small-size);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Section Title */
.section-title {
    font-size: var(--h2-size);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: var(--body-size);
    color: var(--text-muted);
    max-width: 500px;
}

.section-header {
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-tag {
    justify-content: center;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    height: 72px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.nav.scrolled {
    border-bottom-color: var(--divider);
    background: rgba(5, 5, 5, 0.95);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: var(--nav-size);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

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

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: var(--nav-size);
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 99;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

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

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: linear-gradient(135deg, rgba(200, 245, 96, 0.08) 0%, rgba(200, 245, 96, 0) 50%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--transition-slow) both;
}

.hero-title {
    font-size: var(--hero-size);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s 0.4s var(--transition-slow) both;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s 0.6s var(--transition-slow) both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s 0.8s var(--transition-slow) both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s 1s var(--transition-slow) both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: var(--small-size);
    color: var(--text-muted);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    animation: slideInRight 0.8s 0.6s var(--transition-slow) both;
}

.hero-image {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(200, 245, 96, 0.2) 0%, transparent 50%);
    border-radius: calc(var(--radius-card) + 20px);
    z-index: -1;
    animation: glow 3s ease-in-out infinite;
}

.hero-floating-tag {
    position: absolute;
    bottom: 40px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: var(--small-size);
    font-weight: 500;
    color: var(--accent);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.hero-floating-tag i {
    color: var(--accent);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeIn 1s 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-tertiary);
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: var(--radius-pill);
    animation: scrollWheel 1.5s ease-in-out infinite;
}


/* ===== About Section ===== */
.about {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-elevated) 100%);
}

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

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 20px 24px;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-elevated);
}

.exp-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: var(--small-size);
    font-weight: 600;
    line-height: 1.3;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: var(--small-size);
}

.info-item i {
    color: var(--accent);
    flex-shrink: 0;
}

/* ===== Services Section ===== */
.services {
    background: var(--bg-elevated);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-smooth);
}

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-bg);
    border-radius: var(--radius-btn);
    margin-bottom: 24px;
}

.service-icon i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.service-title {
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: var(--small-size);
    margin-bottom: 20px;
}

.service-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--small-size);
    color: var(--text-muted);
}

.service-list li i {
    color: var(--accent);
    flex-shrink: 0;
}

/* ===== Tech Stack Section ===== */
.tech-stack {
    background: var(--bg-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-smooth);
}

.tech-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tech-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-btn);
    margin-bottom: 16px;
}

.tech-icon i {
    width: 28px;
    height: 28px;
}

.tech-icon.php { background: rgba(119, 123, 180, 0.15); color: #777bb4; }
.tech-icon.sql { background: rgba(0, 117, 143, 0.15); color: #00758f; }
.tech-icon.python { background: rgba(255, 209, 63, 0.15); color: #ffd13f; }
.tech-icon.figma { background: rgba(242, 78, 30, 0.15); color: #f24e1e; }
.tech-icon.html { background: rgba(227, 79, 38, 0.15); color: #e34f26; }
.tech-icon.js { background: rgba(247, 223, 30, 0.15); color: #f7df1e; }
.tech-icon.react { background: rgba(97, 218, 251, 0.15); color: #61dafb; }
.tech-icon.git { background: rgba(240, 80, 50, 0.15); color: #f05032; }

.tech-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: var(--body-size);
}

.tech-level {
    display: block;
    font-size: var(--small-size);
    color: var(--text-muted);
}

/* ===== Projects Section ===== */
.projects {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

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

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: var(--small-size);
    transform: translateY(10px);
    transition: transform var(--transition-fast);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link i {
    width: 18px;
    height: 18px;
}

.project-content {
    padding: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
}

.project-title {
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-desc {
    font-size: var(--small-size);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Experience Section ===== */
.experience {
    background: var(--bg-elevated);
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.exp-col-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.exp-col-title i {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--divider);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--text-muted);
}

.timeline-dot.accent-dot {
    border-color: var(--accent);
    background: var(--accent);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--border-hover);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-org {
    font-size: var(--small-size);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: var(--small-size);
    color: var(--text-muted);
    line-height: 1.6;
}


/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-elevated) 100%);
}

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

.contact-text {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-bg);
    border-radius: var(--radius-btn);
    flex-shrink: 0;
}

.contact-icon i {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.contact-item-content {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: var(--small-size);
    color: var(--text-muted);
}

.contact-value {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.social-link i {
    width: 20px;
    height: 20px;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--small-size);
    font-weight: 500;
    color: var(--text-body);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--body-size);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-error {
    display: none;
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 4px;
}

.form-error.show {
    display: block;
}

.form-success,
.form-error-message {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-btn);
    font-size: var(--small-size);
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-success.show,
.form-error-message.show {
    display: flex;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading i.spin {
    animation: spin 1s linear infinite;
}

/* Backend Note */
.backend-note {
    margin-top: 24px;
    padding: 16px;
    background: rgba(200, 245, 96, 0.05);
    border: 1px solid rgba(200, 245, 96, 0.15);
    border-radius: var(--radius-btn);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.backend-note strong {
    color: var(--accent);
}

.backend-note code {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--divider);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-tagline {
    margin-top: 12px;
    font-size: var(--small-size);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-title {
    font-size: var(--small-size);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: var(--small-size);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social-links a:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.footer-social-links i {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--divider);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 100px;
    right: 24px;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--text-primary);
    font-size: var(--small-size);
    font-weight: 500;
    box-shadow: var(--shadow-elevated);
    z-index: var(--z-toast);
}

.toast.show {
    display: flex;
    animation: toastIn 0.4s var(--transition-smooth) both;
}

.toast.hide {
    animation: toastOut 0.4s var(--transition-smooth) both;
}

.toast i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: var(--z-backtotop);
}

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

.back-to-top:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
}

.back-to-top i {
    width: 20px;
    height: 20px;
}


/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1023px) {
    .nav-menu {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 0;
    }

    .hero-image {
        width: 300px;
        height: 380px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-desc {
        margin: 0 auto 32px;
    }

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

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

    .hero-floating-tag {
        left: 20px;
        bottom: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .experience-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

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

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

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-image {
        width: 240px;
        height: 300px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

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

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

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

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

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

    .footer-tagline {
        max-width: 100%;
    }

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

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

    .about-experience-badge {
        right: 10px;
        bottom: -10px;
        padding: 14px 18px;
    }

    .exp-num {
        font-size: 1.75rem;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-image {
        width: 200px;
        height: 260px;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tech-item {
        padding: 20px 12px;
    }

    .projects-grid {
        gap: 20px;
    }

    .project-content {
        padding: 16px;
    }

    .timeline-content {
        padding: 16px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
