/* ============================================================
   STYLE.CSS — Portfolio Retro Interactive
   Lengkap dengan Dark Mode, Custom Cursor, Animasi, dll
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #4a8bc2;
    --primary-dark: #3a7ab2;
    --secondary: #0a1628;
    --secondary-light: #1a2a3a;
    --bg: #f5f0eb;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text: #0a1628;
    --text-secondary: #3a4a6a;
    --text-light: #aab8c8;
    --shadow: #0a1628;
    --border: #0a1628;
    --accent: #ff6b6b;
    --accent2: #ffd93d;
    --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bg: #0a0e1a;
    --bg-card: rgba(20, 30, 50, 0.9);
    --text: #e8eef5;
    --text-secondary: #aab8c8;
    --shadow: #000000;
    --border: #4a8bc2;
    --secondary: #4a8bc2;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
    cursor: default;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--primary);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.15s, height 0.15s, background 0.15s, border-radius 0.15s;
    transform: translate(-50%, -50%);
    display: none;
    border-radius: 2px;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.15s, border-radius 0.3s;
    transform: translate(-50%, -50%);
    display: none;
    border-radius: 4px;
    background: rgba(74, 139, 194, 0.04);
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--primary);
    background: rgba(74, 139, 194, 0.1);
    border-radius: 6px;
}

.cursor-dot.hover {
    background: var(--primary);
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Show cursor hanya di desktop */
@media (min-width: 769px) {
    .cursor-dot, .cursor-ring {
        display: block;
    }
    a, button, .btn-primary, .btn-secondary, .skill-card, 
    .exp-item, .about-card, .portfolio-card, .counter-item,
    .theme-toggle, .back-top {
        cursor: none !important;
    }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}

/* ===== BACKGROUND PATTERN ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--secondary) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, var(--secondary) 1px, transparent 2px),
        radial-gradient(circle at 40% 80%, var(--secondary) 3px, transparent 3px),
        radial-gradient(circle at 90% 20%, var(--secondary) 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, var(--secondary) 1px, transparent 2px);
    background-size: 60px 60px;
    transition: opacity 0.4s ease;
}

[data-theme="dark"] .bg-pattern {
    opacity: 0.1;
}

/* ===== FLOATING SHAPES ===== */
.retro-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.08;
    animation: floatShape 20s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

[data-theme="dark"] .shape {
    opacity: 0.05;
}

.shape:nth-child(1) {
    width: 120px;
    height: 120px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
    animation-duration: 18s;
}
.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    background: var(--primary);
    bottom: 15%;
    right: 8%;
    border-radius: 50%;
    animation-delay: 2s;
    animation-duration: 22s;
}
.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    top: 60%;
    left: 3%;
    transform: rotate(45deg);
    animation-delay: 4s;
    animation-duration: 16s;
}
.shape:nth-child(4) {
    width: 100px;
    height: 40px;
    background: var(--primary);
    top: 20%;
    right: 5%;
    border-radius: 20px;
    animation-delay: 1s;
    animation-duration: 25s;
}
.shape:nth-child(5) {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    bottom: 40%;
    left: 50%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 3s;
    animation-duration: 19s;
}
.shape:nth-child(6) {
    width: 70px;
    height: 70px;
    background: var(--primary);
    top: 5%;
    right: 25%;
    border-radius: 50% 50% 0 50%;
    animation-delay: 5s;
    animation-duration: 21s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(30px, -40px) scale(1.2) rotate(45deg); }
    50% { transform: translate(-20px, 30px) scale(0.8) rotate(90deg); }
    75% { transform: translate(40px, 20px) scale(1.1) rotate(135deg); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text);
    transition: var(--transition);
    cursor: pointer;
}

.theme-toggle:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--shadow);
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 999;
    background: var(--primary);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0 var(--shadow);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-top:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--shadow);
    background: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 3px solid var(--border);
    box-shadow: 10px 10px 0 var(--shadow);
    margin-bottom: 3rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    transition: var(--transition);
}

.navbar:hover {
    box-shadow: 14px 14px 0 var(--shadow);
    transform: translate(-2px, -2px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
    transition: color 0.4s ease;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0.3;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.nav-links a::before {
    content: '◆';
    color: var(--primary);
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: 0.2s;
    font-size: 0.6rem;
}

.nav-links a:hover::before {
    opacity: 1;
    left: -16px;
}

.nav-links a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
    padding-left: 6px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
}

/* ===== RETRO DECORATIVE LINE ===== */
.retro-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.retro-line .line {
    flex: 1;
    height: 4px;
    background: var(--border);
    transition: background 0.4s ease;
}

.retro-line .diamond {
    width: 12px;
    height: 12px;
    background: var(--primary);
    transform: rotate(45deg);
    border: 2px solid var(--border);
    transition: border-color 0.4s ease;
}

.retro-line .label {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 12px 12px 0 var(--shadow);
    position: relative;
    transition: var(--transition);
}

.hero:hover {
    box-shadow: 16px 16px 0 var(--shadow);
    transform: translate(-2px, -2px);
}

.hero::before {
    content: '✦';
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 2rem;
    color: var(--primary);
    background: var(--bg);
    padding: 0 0.3rem;
    transition: background 0.4s ease;
}

.hero::after {
    content: '✦';
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 2rem;
    color: var(--primary);
    background: var(--bg);
    padding: 0 0.3rem;
    transition: background 0.4s ease;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.2;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.4s ease;
}

.hero-content .subtitle .badge {
    background: var(--secondary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--shadow);
    transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .hero-content .subtitle .badge {
    background: var(--primary);
    color: #fff;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2.2rem;
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--shadow);
    background: var(--primary-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    color: var(--text);
    padding: 0.8rem 2.2rem;
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--shadow);
    background: var(--bg);
}

/* ===== AVATAR ===== */
.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-wrapper {
    width: 300px;
    height: 350px;
    border: 4px solid var(--border);
    box-shadow: 12px 12px 0 var(--shadow);
    overflow: hidden;
    background: linear-gradient(135deg, #d4e4f7, #b8d4f0);
    position: relative;
    transition: var(--transition);
    animation: avatarFloat 5s ease-in-out infinite;
}

[data-theme="dark"] .avatar-wrapper {
    background: linear-gradient(135deg, #1a2a3a, #2a3a5a);
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.avatar-wrapper:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 16px 16px 0 var(--shadow);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-wrapper .avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.7), transparent);
}

.avatar-wrapper .avatar-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.avatar-frame {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px dashed var(--primary);
    opacity: 0.3;
    pointer-events: none;
    animation: framePulse 3s ease-in-out infinite;
    transition: border-color 0.4s ease;
}

@keyframes framePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.4s ease;
}

.section-title .number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    background: var(--secondary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 var(--shadow);
    font-weight: 700;
    transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .section-title .number {
    background: var(--primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    transition: color 0.4s ease;
}

/* ===== COUNTER ===== */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.counter-item {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.counter-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--shadow);
}

.counter-item .number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1.2;
    transition: color 0.4s ease;
}

.counter-item .label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 10px 10px 0 var(--shadow);
    padding: 1.8rem;
    transition: var(--transition);
}

.about-card:hover {
    transform: translate(-4px, -4px) scale(1.01);
    box-shadow: 14px 14px 0 var(--shadow);
}

.about-card .icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.4s ease;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.4s ease;
}

/* ===== EXPERIENCE ===== */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    padding: 1.5rem 2rem;
    transition: var(--transition);
    position: relative;
}

.exp-item:hover {
    transform: translate(-4px, -4px) scale(1.01);
    box-shadow: 12px 12px 0 var(--shadow);
}

.exp-item .year {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    transition: color 0.4s ease;
}

.exp-item .year span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.4s ease;
}

.exp-item .exp-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.4s ease;
}

.exp-item .exp-content .company {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    transition: color 0.4s ease;
}

.exp-item .exp-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.exp-item .exp-content .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.exp-item .exp-content .tags span {
    background: var(--bg);
    padding: 0.15rem 0.8rem;
    border: 2px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0 var(--shadow);
    color: var(--text);
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translate(-4px, -4px) scale(1.02);
    box-shadow: 12px 12px 0 var(--shadow);
}

.skill-card .skill-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.4s ease;
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
    transition: color 0.4s ease;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.skill-card::after {
    content: '▲';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.15;
    transform: rotate(45deg);
    transition: color 0.4s ease;
}

/* ===== PROGRESS BAR ===== */
.skill-progress {
    margin-top: 0.8rem;
}

.skill-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.skill-progress .progress-bar .fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.skill-progress .progress-bar .fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.skill-progress .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    transition: color 0.4s ease;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.portfolio-card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translate(-4px, -4px) scale(1.02);
    box-shadow: 12px 12px 0 var(--shadow);
}

.portfolio-card .portfolio-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    border-bottom: 3px solid var(--border);
    transition: border-color 0.4s ease;
}

.portfolio-card .portfolio-info {
    padding: 1.2rem 1.5rem 1.5rem;
}

.portfolio-card .portfolio-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
    transition: color 0.4s ease;
}

.portfolio-card .portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.portfolio-card .portfolio-info .tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.portfolio-card .portfolio-info .tags span {
    background: var(--bg);
    padding: 0.1rem 0.6rem;
    border: 2px solid var(--border);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text);
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}


/* ===== CTA ===== */
.cta-section {
    background: var(--secondary);
    backdrop-filter: blur(5px);
    border: 3px solid var(--border);
    box-shadow: 12px 12px 0 var(--shadow);
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .cta-section {
    background: rgba(10, 14, 26, 0.9);
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-section h2 span {
    color: var(--primary);
}

.cta-section p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
    background: var(--primary);
    box-shadow: 8px 8px 0 var(--shadow);
}

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
}

.cta-section::before {
    content: '◆';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--bg);
    padding: 0 0.3rem;
    transition: background 0.4s ease;
}

.cta-section::after {
    content: '◆';
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--bg);
    padding: 0 0.3rem;
    transition: background 0.4s ease;
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 4px solid var(--border);
    margin-top: 1rem;
    transition: border-color 0.4s ease;
}

.footer .social {
    display: flex;
    gap: 1.2rem;
}

.footer .social a {
    color: var(--text);
    font-size: 1.3rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    padding-bottom: 0.2rem;
    text-decoration: none;
}

.footer .social a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    transform: translateY(-3px);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.4s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 950px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content .subtitle {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0.8rem;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .navbar {
        flex-wrap: wrap;
    }
    .avatar-wrapper {
        width: 220px;
        height: 260px;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .cta-section {
        padding: 2rem 1.5rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .back-top {
        bottom: 5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 1rem;
    }
    .hero {
        padding: 1rem;
        box-shadow: 8px 8px 0 var(--shadow);
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .avatar-wrapper {
        width: 180px;
        height: 210px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .counter-item .number {
        font-size: 2.2rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .exp-item {
        padding: 1rem;
    }
    .cta-section h2 {
        font-size: 1.6rem;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .navbar {
        padding: 0.6rem 1rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .retro-shapes {
        display: none;
    }
    .testimonial-slider {
        padding: 1rem;
    }
    .testimonial-slide blockquote {
        font-size: 0.9rem;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 12px;
    background: var(--bg);
}
::-webkit-scrollbar-track {
    border: 2px solid var(--border);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--border);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }