/* ==========================================================================
   PREMIUM STYLE SHEET - PORTFOLIO RAFIKA RAHMA YUNITA (SOFTWARE & AI ENGINEER)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Soothing Slate & Obsidian Tech Theme variables (default) */
    --primary-color: #3b82f6;       /* Royal Blue */
    --secondary-color: #06b6d4;     /* Cyan Accent */
    --accent-color: #10b981;        /* Soothing Emerald */
    --primary-rgb: 59, 130, 246;
    --secondary-rgb: 6, 182, 212;
    --bg-primary: #0a0f1d;          /* Deep Slate Blue-Black */
    --bg-secondary: #0f172a;        /* Dark Slate */
    --bg-glass: rgba(15, 23, 42, 0.75);
    --border-glass: rgba(59, 130, 246, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.65);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #2dd4bf 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-color-1: rgba(59, 130, 246, 0.18);
    --glow-color-2: rgba(6, 182, 212, 0.15);
}

[data-theme="light"] {
    /* Premium Elegant Light variables */
    --primary-color: #2563eb;       /* Royal Blue (Contrast) */
    --secondary-color: #0891b2;     /* Cyan Accent (Contrast) */
    --accent-color: #059669;        /* Emerald (Contrast) */
    --primary-rgb: 37, 99, 235;
    --secondary-rgb: 8, 145, 178;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(37, 99, 235, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-glow: 0 4px 20px rgba(37, 99, 235, 0.08);
    --shadow-medium: 0 10px 25px rgba(37, 99, 235, 0.05);
    --shadow-heavy: 0 20px 40px rgba(37, 99, 235, 0.1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --glow-color-1: rgba(37, 99, 235, 0.08);
    --glow-color-2: rgba(8, 145, 178, 0.06);
}

/* Premium Light Theme Visual Overrides */
[data-theme="light"] body {
    background-image: radial-gradient(rgba(var(--primary-rgb), 0.12) 1px, transparent 1px);
}

[data-theme="light"] .glow-1 {
    background: radial-gradient(circle, var(--glow-color-1) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="light"] .glow-2 {
    background: radial-gradient(circle, var(--glow-color-2) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .portfolio-item,
[data-theme="light"] .cert-card,
[data-theme="light"] .org-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .skills-column {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.04), 0 1px 3px rgba(var(--primary-rgb), 0.02);
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .timeline-content:hover,
[data-theme="light"] .portfolio-item:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .org-card:hover,
[data-theme="light"] .skills-column:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.08), 0 0 15px rgba(var(--primary-rgb), 0.05);
}

[data-theme="light"] .prof-skill-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

[data-theme="light"] .prof-skill-card:hover {
    border-color: var(--secondary-color);
    background: rgba(var(--secondary-rgb), 0.04);
    box-shadow: 0 5px 15px rgba(var(--secondary-rgb), 0.05);
}

[data-theme="light"] .timeline-container::after {
    background: #ffffff;
}

[data-theme="light"] .timeline::after {
    background: rgba(var(--primary-rgb), 0.15);
}

[data-theme="light"] .cert-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.6) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.05);
}

[data-theme="light"] .cert-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.12), 0 0 20px rgba(var(--secondary-rgb), 0.1);
}

[data-theme="light"] .cert-badge {
    background: rgba(var(--primary-rgb), 0.08);
}

[data-theme="light"] .timeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.6) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.05);
}

[data-theme="light"] .timeline-content:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.12), 0 0 20px rgba(var(--secondary-rgb), 0.1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    background-image: radial-gradient(var(--border-glass) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease, background-image 0.4s ease;
}

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

/* ===== GLOWING BACKGROUND DECORATIONS ===== */
.bg-glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-snail {
    font-size: 5rem;
    display: inline-block;
    animation: snail-crawl 3s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.5));
    margin-bottom: 20px;
    line-height: 1;
}

@keyframes snail-crawl {
    0% { transform: translateX(-45px) scaleX(-1) rotate(-3deg); }
    45% { transform: translateX(45px) scaleX(-1) rotate(3deg) scaleY(0.9); }
    50% { transform: translateX(45px) scaleX(1) rotate(3deg); }
    95% { transform: translateX(-45px) scaleX(1) rotate(-3deg) scaleY(0.9); }
    100% { transform: translateX(-45px) scaleX(-1) rotate(-3deg); }
}

#loading-screen p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ===== FLOATING NAVBAR ===== */
.navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.navbar.scrolled {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 30px;
}

.nav-logo a {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

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

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

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

/* Theme Toggle Pill */
.theme-toggle {
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: var(--transition);
}

.toggle-icon {
    font-size: 12px;
    z-index: 2;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: var(--transition);
}

[data-theme="light"] .toggle-slider {
    transform: translateX(28px);
}

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

.bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding: 110px 0 30px 0;
}

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

.hero-content {
    text-align: left;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981; /* Green dot */
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.highlight {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 2.5rem;
}

.typing-text::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    max-width: 700px;
}

.hero-content p:last-of-type {
    margin-bottom: 30px;
}

.text-gradient-primary {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

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

.text-secondary-glow {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.2);
    font-weight: 600;
}

.text-primary-glow {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
    font-weight: 600;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

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

.social-links a {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Premium Profile image container */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: min(340px, 80vw);
    height: min(340px, 80vw);
    border-radius: 30px;
    padding: 12px;
    background: var(--gradient-glow);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid var(--bg-primary);
}

/* ===== SECTIONS GENERAL ===== */
section {
    padding: 40px 0;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
    position: relative;
}

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

/* ===== GLASS CARD CLASS ===== */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 35px 0;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 175px;
    height: 175px;
}

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

.stat-icon {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.4);
}

.stat-item h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

.stat-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1.3;
    transition: var(--transition);
}

.stat-detail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 9, 30, 0.98) 0%, rgba(20, 12, 45, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 17px;
    z-index: 5;
}

.stat-detail p {
    font-size: 0.82rem;
    color: var(--text-primary) !important;
    line-height: 1.5;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.stat-item:hover .stat-detail,
.stat-item:focus .stat-detail,
.stat-item.active .stat-detail {
    transform: translateY(0);
}

[data-theme="light"] .stat-item {
    background: rgba(var(--primary-rgb), 0.03);
    border-color: rgba(var(--primary-rgb), 0.08);
}

[data-theme="light"] .stat-detail {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
}

@media (max-width: 1024px) {
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-item {
        min-height: 160px;
        height: 160px;
    }
}


.about-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.info-item strong {
    min-width: 120px;
    color: var(--text-primary);
}

.info-item span {
    color: var(--text-secondary);
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-medium);
}

/* ===== SKILLS SECTION ===== */
.tech-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.tech-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    width: 96px;
    height: 96px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.tech-icon-card i {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-icon-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    text-align: center;
}

.tech-icon-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.tech-icon-card:hover i {
    transform: scale(1.1);
}

.tech-icon-card:hover span {
    color: var(--text-primary);
}

/* Brand specific colors (permanently active) */
/* Python */
.tech-icon-card.python { border-color: rgba(55, 118, 171, 0.4); box-shadow: 0 0 10px rgba(55, 118, 171, 0.15); }
.tech-icon-card.python i { color: #3776ab; }
.tech-icon-card.python span { color: var(--text-primary); }
.tech-icon-card.python:hover { border-color: #3776ab; box-shadow: 0 0 20px rgba(55, 118, 171, 0.45); }

/* React */
.tech-icon-card.react { border-color: rgba(97, 218, 251, 0.4); box-shadow: 0 0 10px rgba(97, 218, 251, 0.15); }
.tech-icon-card.react i { color: #61dafb; }
.tech-icon-card.react span { color: var(--text-primary); }
.tech-icon-card.react:hover { border-color: #61dafb; box-shadow: 0 0 20px rgba(97, 218, 251, 0.45); }

/* NodeJS */
.tech-icon-card.node { border-color: rgba(51, 153, 51, 0.4); box-shadow: 0 0 10px rgba(51, 153, 51, 0.15); }
.tech-icon-card.node i { color: #339933; }
.tech-icon-card.node span { color: var(--text-primary); }
.tech-icon-card.node:hover { border-color: #339933; box-shadow: 0 0 20px rgba(51, 153, 51, 0.45); }

/* Laravel */
.tech-icon-card.laravel { border-color: rgba(255, 45, 32, 0.4); box-shadow: 0 0 10px rgba(255, 45, 32, 0.15); }
.tech-icon-card.laravel i { color: #ff2d20; }
.tech-icon-card.laravel span { color: var(--text-primary); }
.tech-icon-card.laravel:hover { border-color: #ff2d20; box-shadow: 0 0 20px rgba(255, 45, 32, 0.45); }

/* MySQL */
.tech-icon-card.mysql { border-color: rgba(0, 117, 143, 0.4); box-shadow: 0 0 10px rgba(0, 117, 143, 0.15); }
.tech-icon-card.mysql i { color: #00758f; }
.tech-icon-card.mysql span { color: var(--text-primary); }
.tech-icon-card.mysql:hover { border-color: #00758f; box-shadow: 0 0 20px rgba(0, 117, 143, 0.45); }

/* Docker */
.tech-icon-card.docker { border-color: rgba(36, 150, 237, 0.4); box-shadow: 0 0 10px rgba(36, 150, 237, 0.15); }
.tech-icon-card.docker i { color: #2496ed; }
.tech-icon-card.docker span { color: var(--text-primary); }
.tech-icon-card.docker:hover { border-color: #2496ed; box-shadow: 0 0 20px rgba(36, 150, 237, 0.45); }

/* Git & GitHub */
.tech-icon-card.github-tech { border-color: rgba(240, 80, 50, 0.4); box-shadow: 0 0 10px rgba(240, 80, 50, 0.15); }
.tech-icon-card.github-tech i { color: #f05032; }
.tech-icon-card.github-tech span { color: var(--text-primary); }
.tech-icon-card.github-tech:hover { border-color: #f05032; box-shadow: 0 0 20px rgba(240, 80, 50, 0.45); }

/* HTML5 */
.tech-icon-card.html5 { border-color: rgba(227, 79, 38, 0.4); box-shadow: 0 0 10px rgba(227, 79, 38, 0.15); }
.tech-icon-card.html5 i { color: #e34f26; }
.tech-icon-card.html5 span { color: var(--text-primary); }
.tech-icon-card.html5:hover { border-color: #e34f26; box-shadow: 0 0 20px rgba(227, 79, 38, 0.45); }

/* CSS3 */
.tech-icon-card.css3 { border-color: rgba(21, 114, 182, 0.4); box-shadow: 0 0 10px rgba(21, 114, 182, 0.15); }
.tech-icon-card.css3 i { color: #1572b6; }
.tech-icon-card.css3 span { color: var(--text-primary); }
.tech-icon-card.css3:hover { border-color: #1572b6; box-shadow: 0 0 20px rgba(21, 114, 182, 0.45); }

/* JS / TS */
.tech-icon-card.js { border-color: rgba(247, 223, 30, 0.4); box-shadow: 0 0 10px rgba(247, 223, 30, 0.15); }
.tech-icon-card.js i { color: #f7df1e; }
.tech-icon-card.js span { color: var(--text-primary); }
.tech-icon-card.js:hover { border-color: #f7df1e; box-shadow: 0 0 20px rgba(247, 223, 30, 0.45); }

/* AI & Data Science Tech Icons */
.tech-icon-card.tensorflow { border-color: rgba(255, 115, 0, 0.4); box-shadow: 0 0 10px rgba(255, 115, 0, 0.15); }
.tech-icon-card.tensorflow i { color: #ff7300; }
.tech-icon-card.tensorflow span { color: var(--text-primary); }
.tech-icon-card.tensorflow:hover { border-color: #ff7300; box-shadow: 0 0 20px rgba(255, 115, 0, 0.45); }

.tech-icon-card.sklearn { border-color: rgba(249, 148, 6, 0.4); box-shadow: 0 0 10px rgba(249, 148, 6, 0.15); }
.tech-icon-card.sklearn i { color: #f99406; }
.tech-icon-card.sklearn span { color: var(--text-primary); }
.tech-icon-card.sklearn:hover { border-color: #f99406; box-shadow: 0 0 20px rgba(249, 148, 6, 0.45); }

.tech-icon-card.pandas { border-color: rgba(130, 80, 255, 0.4); box-shadow: 0 0 10px rgba(130, 80, 255, 0.15); }
.tech-icon-card.pandas i { color: #8250ff; }
.tech-icon-card.pandas span { color: var(--text-primary); }
.tech-icon-card.pandas:hover { border-color: #8250ff; box-shadow: 0 0 20px rgba(130, 80, 255, 0.45); }

.tech-icon-card.flask { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 10px rgba(16, 185, 129, 0.15); }
.tech-icon-card.flask i { color: #10b981; }
.tech-icon-card.flask span { color: var(--text-primary); }
.tech-icon-card.flask:hover { border-color: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.45); }

.tech-icon-card.n8n { border-color: rgba(234, 88, 12, 0.4); box-shadow: 0 0 10px rgba(234, 88, 12, 0.15); }
.tech-icon-card.n8n i { color: #ea580c; }
.tech-icon-card.n8n span { color: var(--text-primary); }
.tech-icon-card.n8n:hover { border-color: #ea580c; box-shadow: 0 0 20px rgba(234, 88, 12, 0.45); }

.tech-icon-card.ollama { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 0 10px rgba(139, 92, 246, 0.15); }
.tech-icon-card.ollama i { color: #8b5cf6; }
.tech-icon-card.ollama span { color: var(--text-primary); }
.tech-icon-card.ollama:hover { border-color: #8b5cf6; box-shadow: 0 0 20px rgba(139, 92, 246, 0.45); }


.skills-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.skills-column {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    height: 100%;
}

.skills-column-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.skills-sub-group {
    margin-bottom: 25px;
}

.skills-sub-group h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-tags span {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.skills-tags span i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.skills-tags span:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.prof-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.prof-skill-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    transition: var(--transition);
}

.prof-skill-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.prof-skill-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.prof-skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    background: rgba(var(--secondary-rgb), 0.08);
    box-shadow: 0 5px 15px rgba(var(--secondary-rgb), 0.15);
}

.prof-skill-card:hover i {
    transform: scale(1.1);
}

.prof-skill-card:hover span {
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .prof-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-icon-card {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    .tech-icon-card i {
        font-size: 1.8rem;
    }
}

/* ===== EXPERIENCE TIMELINE (Left-Aligned for all screens) ===== */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 40px auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-glass);
    top: 10px;
    bottom: 10px;
    left: 20px;
}

.timeline-container {
    padding: 15px 0 15px 55px;
    position: relative;
    width: 100%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 13px;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(13, 9, 30, 0.8) 0%, rgba(20, 12, 45, 0.4) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.timeline-content:hover::before {
    opacity: 0.8;
}

.timeline-container:hover::after {
    background: var(--primary-color);
    transform: scale(1.2);
}

.timeline-content:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.2), 0 0 20px rgba(var(--secondary-rgb), 0.15);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-desc ul {
    list-style: none;
}

.timeline-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.timeline-desc li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    padding-top: 30px;
    background: linear-gradient(135deg, rgba(13, 9, 30, 0.85) 0%, rgba(20, 12, 45, 0.5) 100%);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
    z-index: 5;
    transition: var(--transition);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
    z-index: 6;
}

[data-theme="light"] .portfolio-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.6) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.05);
}

[data-theme="light"] .portfolio-item::before {
    background: rgba(0, 0, 0, 0.03);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.25), 0 0 20px rgba(var(--secondary-rgb), 0.15);
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 4, 16, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 24px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.portfolio-tech {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.portfolio-tech span {
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.portfolio-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.portfolio-links a i {
    color: #fff !important;
}

/* Fallback SVG override for portfolio links overlay to make them white if Font Awesome fallback is active */
.portfolio-links a i.fa-eye::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E") !important;
}

.portfolio-links a i.fa-github::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E") !important;
}

.portfolio-links a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

/* Portfolio CTA */
.portfolio-cta {
    text-align: center;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== CERTIFICATIONS & AWARDS ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cert-card {
    background: linear-gradient(135deg, rgba(13, 9, 30, 0.8) 0%, rgba(30, 15, 60, 0.4) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.25), 0 0 20px rgba(var(--secondary-rgb), 0.15);
}

.cert-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.cert-card:hover .cert-badge {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: rotate(360deg);
}

.cert-issuer {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cert-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    max-width: 80%;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== ORGANIZATIONS & VOLUNTEERING ===== */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.org-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 28px;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

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

.org-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.org-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.org-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.org-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: var(--transition);
    text-align: left;
    box-shadow: var(--shadow-medium);
}

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

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

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

/* ===== FOOTER ===== */
.footer {
    background: #04020a;
    padding: 30px 0;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

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

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===== BACK TO TOP PILL ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.5);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
    }
    .nav-container {
        padding: 0 15px;
    }
    .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        top: 10px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 1.5rem;
    }
    
    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--border-glass);
        border-radius: 24px;
        flex-direction: column;
        padding: 30px 20px;
        gap: 1.2rem;
        box-shadow: var(--shadow-heavy);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        margin-left: 0;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .contact-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .timeline::after {
        left: 15px;
    }

    .timeline-container {
        padding-left: 35px;
    }

    .timeline-container::after {
        left: 5px;
    }

}

/* ===== CUSTOM SELECTION & SCROLLBAR ===== */
::selection {
    background: var(--primary-color);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

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

/* ===== PORTFOLIO DETAIL MODAL ===== */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(7, 4, 16, 0.85); /* Black w/ opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.modal-content {
    position: relative;
    background-color: var(--bg-secondary);
    margin: 8% auto;
    padding: 0;
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: 90%;
    max-width: 750px;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    padding: 35px;
}

.modal-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-primary);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.modal-tech span {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.modal-links .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 25px;
    }
    
    .modal-content {
        margin: 15% auto;
        width: 95%;
    }
}
