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

:root {
    /* Premium Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.4);
    --border-color: #222222;
    --border-light: #2a2a2a;
    --success: #22c55e;
    --glass: rgba(255, 255, 255, 0.02);
    
    --section-padding: 120px 0;
    --container-max-width: 1200px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', 'Monaco', monospace;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.12;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -300px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.08;
    pointer-events: none;
}

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--success);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2.5px;
}

.hero-title span {
    display: block;
}

.hero-title .name {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-subtitle .divider {
    width: 48px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s both;
}

.profile-container {
    position: relative;
    padding: 20px;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 400px;
    background: var(--accent-gradient);
    border-radius: 32px;
    filter: blur(60px);
    opacity: 0.4;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.05); }
}

.profile-border {
    position: relative;
    z-index: 2;
    padding: 4px;
    background: var(--accent-gradient);
    border-radius: 28px;
    box-shadow: 
        0 0 0 1px rgba(99, 102, 241, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(99, 102, 241, 0.2);
}

.profile-inner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
}

.profile-image {
    width: 320px;
    height: 400px;
    border-radius: 24px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: contrast(1.05) brightness(1.08) saturate(1.1);
    transition: transform 0.5s ease, filter 0.3s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.profile-border:hover .profile-image {
    filter: contrast(1.08) brightness(1.12) saturate(1.15);
}

.profile-border:hover .profile-image {
    transform: scale(1.02);
}

.profile-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 
        0 8px 24px var(--accent-glow),
        0 0 0 4px var(--bg-primary);
    animation: float 3s ease-in-out infinite;
}

.profile-badge i {
    font-size: 26px;
    color: white;
}

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

.profile-decoration-1 {
    position: absolute;
    top: 0;
    right: -25px;
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent-primary);
    border-radius: 12px;
    opacity: 0.3;
    z-index: 1;
    animation: decorFloat 5s ease-in-out infinite;
}

.profile-decoration-2 {
    position: absolute;
    bottom: 40px;
    left: -20px;
    width: 30px;
    height: 30px;
    background: var(--accent-gradient);
    border-radius: 8px;
    opacity: 0.5;
    z-index: 1;
    animation: decorFloat 4s ease-in-out infinite reverse;
}

@keyframes decorFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* ===========================
   SECTION STYLES
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-secondary);
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-tag i {
    font-size: 14px;
}

.section-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -400px;
    width: 700px;
    height: 700px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.05;
    pointer-events: none;
}

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

.about-text-content {
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.about-visual {
    position: relative;
}

.code-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca40; }

.code-title {
    margin-left: 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-code);
}

.code-body {
    padding: 28px;
    font-family: var(--font-code);
    font-size: 14px;
    line-height: 2;
}

.code-line {
    display: flex;
    gap: 20px;
}

.line-number {
    color: var(--text-muted);
    user-select: none;
    min-width: 20px;
    opacity: 0.5;
}

.code-content .keyword { color: #c792ea; }
.code-content .class { color: #ffcb6b; }
.code-content .property { color: #82aaff; }
.code-content .string { color: #c3e88d; }
.code-content .punctuation { color: var(--text-secondary); }

/* ===========================
   TECH STACK SECTION
   =========================== */
.tech-stack {
    background: var(--bg-primary);
    position: relative;
}

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

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.tech-category:hover::before {
    opacity: 1;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.category-icon i {
    font-size: 26px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: var(--glass);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

.tech-item i {
    font-size: 16px;
    color: var(--accent-secondary);
    width: 20px;
}

/* ===========================
   WEBSITES SECTION
   =========================== */
.websites {
    background: var(--bg-secondary);
    position: relative;
}

.websites::before {
    content: '';
    position: absolute;
    top: 0;
    right: -300px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.06;
    pointer-events: none;
}

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

.website-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.website-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    border-color: var(--accent-primary);
}

.website-preview {
    position: relative;
    height: 260px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.website-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.website-placeholder i {
    font-size: 44px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.website-card:hover .website-placeholder {
    transform: scale(1.1);
}

.website-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.visit-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.website-content {
    padding: 32px;
}

.website-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.website-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.website-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.website-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.website-tech-tag {
    padding: 8px 14px;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects {
    background: var(--bg-primary);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.05;
    pointer-events: none;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

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

.project-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.project-icon i {
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.project-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tech-tag {
    background: var(--glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.05);
}

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

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

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 44px;
    transition: all 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.experience-icon {
    width: 72px;
    height: 72px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.experience-icon i {
    font-size: 32px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.experience-description {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    background: var(--bg-primary);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.06;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 320px;
}

.contact-info-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.contact-info-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-value {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 44px 52px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s ease;
    min-width: 180px;
}

.contact-link:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.contact-link i {
    font-size: 40px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-link span {
    font-size: 16px;
    font-weight: 600;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-brand {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===========================
   SCROLL TO TOP
   =========================== */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    font-size: 20px;
    box-shadow: 0 8px 32px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

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

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-image { order: -1; }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-text-content {
        text-align: center;
    }
    
    .about-text-content .section-title {
        text-align: center !important;
    }
    
    .about-visual { order: -1; }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-image {
        width: 280px;
        height: 350px;
    }
    
    .profile-frame {
        border-radius: 22px;
    }
    
    .code-window {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .code-body {
        padding: 20px;
        font-size: 13px;
    }
    
    .contact-link {
        padding: 36px 44px;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s ease;
        padding: 100px 32px;
        gap: 8px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 16px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-subtitle .divider {
        width: 40px;
        height: 2px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .profile-image {
        width: 220px;
        height: 280px;
    }
    
    .profile-frame {
        border-radius: 18px;
    }
    
    .profile-badge {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: -8px;
    }
    
    .profile-badge i {
        font-size: 20px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .section-tag {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .section-title {
        font-size: 28px;
        letter-spacing: -1px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 18px 10px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .code-window {
        max-width: 100%;
    }
    
    .code-header {
        padding: 12px 16px;
    }
    
    .code-dot {
        width: 10px;
        height: 10px;
    }
    
    .code-body {
        padding: 16px;
        font-size: 12px;
        line-height: 1.8;
    }
    
    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .tech-category {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .category-icon i {
        font-size: 20px;
    }
    
    .category-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .tech-item {
        padding: 8px 10px;
        font-size: 12px;
        gap: 8px;
    }
    
    .tech-item i {
        font-size: 14px;
        width: 16px;
    }
    
    .website-card {
        border-radius: 20px;
    }
    
    .website-preview {
        height: 200px;
    }
    
    .website-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .website-placeholder i {
        font-size: 32px;
    }
    
    .website-content {
        padding: 24px;
    }
    
    .website-title {
        font-size: 20px;
    }
    
    .website-description {
        font-size: 13px;
    }
    
    .website-tech-tag {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .project-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .project-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .project-icon i {
        font-size: 20px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 13px;
    }
    
    .tech-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .experience-card {
        padding: 28px;
        border-radius: 16px;
    }
    
    .experience-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
    
    .experience-icon i {
        font-size: 24px;
    }
    
    .experience-title {
        font-size: 18px;
    }
    
    .experience-description {
        font-size: 13px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .contact-info-item {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 20px 24px;
        border-radius: 16px;
    }
    
    .contact-info-icon {
        width: 52px;
        height: 52px;
    }
    
    .contact-info-icon i {
        font-size: 22px;
    }
    
    .contact-info-value {
        font-size: 15px;
    }
    
    .contact-links {
        gap: 12px;
    }
    
    .contact-link {
        padding: 28px 36px;
        min-width: 130px;
        border-radius: 16px;
    }
    
    .contact-link i {
        font-size: 32px;
    }
    
    .contact-link span {
        font-size: 14px;
    }
    
    .footer {
        padding: 32px 0;
    }
    
    .footer p {
        font-size: 12px;
    }
    
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 48px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .hero {
        padding: 90px 0 48px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 20px;
    }
    
    .hero-badge::before {
        width: 6px;
        height: 6px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 28px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .profile-image {
        width: 180px;
        height: 230px;
    }
    
    .profile-frame {
        border-radius: 16px;
    }
    
    .profile-badge {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: -6px;
        border-radius: 10px;
    }
    
    .profile-badge i {
        font-size: 16px;
    }
    
    .profile-dots {
        display: none;
    }
    
    .profile-ring {
        inset: -8px;
    }
    
    .section-header {
        margin-bottom: 36px;
    }
    
    .section-tag {
        font-size: 10px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .about-text {
        font-size: 14px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 14px 8px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .code-body {
        font-size: 11px;
        padding: 12px;
    }
    
    .code-line {
        gap: 12px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tech-category {
        padding: 20px 16px;
    }
    
    .tech-items {
        gap: 8px;
    }
    
    .website-preview {
        height: 160px;
    }
    
    .website-content {
        padding: 20px;
    }
    
    .website-badge {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .website-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .website-description {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .website-tech {
        gap: 6px;
    }
    
    .website-tech-tag {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }
    
    .project-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .project-description {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .project-tech {
        gap: 6px;
    }
    
    .tech-tag {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .experience-card {
        padding: 20px;
    }
    
    .experience-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .experience-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .experience-description {
        font-size: 12px;
    }
    
    .contact-info {
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .contact-info-item {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .contact-info-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .contact-info-icon i {
        font-size: 18px;
    }
    
    .contact-info-label {
        font-size: 11px;
    }
    
    .contact-info-value {
        font-size: 14px;
    }
    
    .contact-links {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .contact-link {
        padding: 20px 24px;
        min-width: auto;
        flex: 1;
        max-width: 110px;
    }
    
    .contact-link i {
        font-size: 26px;
    }
    
    .contact-link span {
        font-size: 12px;
    }
    
    .visit-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
        font-size: 16px;
    }
}
