/* ========================================
   NAIM PORTFOLIO - CUSTOM DARK THEME CSS
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Refined Dark Theme - Soft dark blues/charcoal instead of pure black */
    --bg-primary: #13151a;          /* Main background - soft dark */
    --bg-secondary: #1a1d24;        /* Section backgrounds */
    --bg-tertiary: #1e2330;         /* Accent sections with blue tint */
    --bg-card: #1c1f26;             /* Card backgrounds */
    --bg-card-hover: #252a35;       /* Card hover state */

    /* Accent Colors - Vibrant cyan & purple */
    --accent-primary: #00d4ff;      /* Bright cyan */
    --accent-secondary: #7c3aed;    /* Vivid purple */
    --accent-tertiary: #06b6d4;     /* Teal accent */
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --accent-gradient-hover: linear-gradient(135deg, #00e5ff 0%, #8b5cf6 100%);

    /* Text Colors */
    --text-primary: #f1f5f9;        /* Almost white - main text */
    --text-secondary: #94a3b8;      /* Slate gray - secondary text */
    --text-muted: #64748b;          /* Muted slate */

    /* Border Colors */
    --border-color: #2d3748;        /* Subtle borders */
    --border-light: #3d4a5c;        /* Lighter borders */

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.25);
    --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-family: 'Poppins', sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-padding {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--bg-secondary);
}

/* ===== Section Heading ===== */
.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== Navbar ===== */
.navbar-custom {
    background-color: rgba(19, 21, 26, 0.92);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    background-color: rgba(19, 21, 26, 0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.navbar-brand span {
    color: var(--accent-primary);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 20px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, #1a1b2e 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    min-height: 40px;
}

.hero-title .typed-text {
    color: var(--accent-primary);
}

.hero-title .cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background-color: var(--accent-primary);
    margin-left: 5px;
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.stat-item .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

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

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

/* Floating Elements Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* ===== Buttons ===== */
.btn-primary-custom {
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.btn-primary-custom:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.35);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: var(--accent-primary);
    padding: 12px 30px;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.btn-outline-custom:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===== Cards ===== */
.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition-normal);
}

.card-custom:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

/* Glass Morphism Card */
.glass-card {
    background: rgba(30, 35, 48, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Skill Badges ===== */
.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.skill-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
    background: var(--bg-card-hover);
}

.skill-badge i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* ===== Project Cards ===== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

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

.project-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.project-card-overlay a {
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.project-card-overlay a:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.project-card-content {
    padding: 25px;
}

.project-card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

.project-tag {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Project Filter */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

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

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

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

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h5 {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 0.95rem;
    margin: 0;
}

/* ===== About Section ===== */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--accent-gradient);
    color: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.experience-badge p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--accent-primary);
    font-size: 1.1rem;
    width: 20px;
}

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

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

/* ===== Tech Stack Grid ===== */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition-normal);
}

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

.tech-item i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.tech-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Contact Section ===== */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    display: block; /* Override flex from futuristic.css */
}

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

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-info-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info-item a {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px);
}

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

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

.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
}

.form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
    background: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: var(--accent-primary);
}

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

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-social h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-primary);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
}

.toast-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

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

.toast-custom.success {
    border-left: 4px solid #00c853;
}

.toast-custom.success i {
    color: #00c853;
}

.toast-custom.error {
    border-left: 4px solid #ff5252;
}

.toast-custom.error i {
    color: #ff5252;
}

.toast-custom i {
    font-size: 1.5rem;
}

.toast-custom span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .hero-name {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .about-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-section {
        text-align: center;
    }

    .hero-name {
        font-size: 2.5rem;
    }

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

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

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

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-image {
        margin-top: 50px;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .hero-image::before {
        display: none;
    }

    .about-image {
        text-align: center;
        margin-bottom: 40px;
    }

    .about-image::before {
        display: none;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-top: 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .contact-form {
        padding: 25px;
    }

    .navbar-nav {
        padding: 20px 0;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 12px 20px !important;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .project-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== Upwork Badge ===== */
.upwork-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #14a800 0%, #0d7a00 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.upwork-badge i {
    font-size: 1rem;
}

/* ===== Availability Badge ===== */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00c853;
    font-size: 0.95rem;
    font-weight: 500;
}

.availability-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #00c853;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== Tech Stack Statistics Cards ===== */
.tech-stat-card {
    text-align: center;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.tech-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.tech-stat-card:hover::before {
    transform: scaleX(1);
}

.tech-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.2);
}

.tech-stat-icon {
    font-size: 4.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: inline-block;
    transition: all var(--transition-normal);
    line-height: 1;
}

.tech-stat-card:hover .tech-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-stat-icon-large {
    font-size: 6rem;
}

.tech-stat-count {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tech-stat-count .tech-stat-icon {
    margin-bottom: 0;
}

.tech-stat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tech-stat-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tech-stat-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.tech-stat-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
}

.tech-stat-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tech-stat-summary {
    background: linear-gradient(135deg, var(--bg-card) 0%, #252a35 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.tech-stat-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.tech-stat-summary:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

/* Responsive adjustments for tech stat cards */
@media (max-width: 768px) {
    .tech-stat-icon {
        font-size: 3rem;
    }

    .tech-stat-count {
        font-size: 2rem;
        gap: 10px;
    }

    .tech-stat-title {
        font-size: 1.1rem;
    }

    .tech-stat-desc {
        font-size: 0.9rem;
    }

    .tech-stat-icon-large {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .tech-stat-icon {
        font-size: 2.5rem;
    }

    .tech-stat-count {
        font-size: 1.75rem;
        gap: 8px;
    }

    .tech-stat-icon-large {
        font-size: 3.5rem;
    }
}

/* ===== Gallery Lightbox Modal ===== */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: auto;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: translateY(-50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 50px;
    color: var(--text-primary);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-primary);
    transform: rotate(90deg);
    background: rgba(0, 212, 255, 0.2);
}

.lightbox-caption {
    text-align: center;
    color: var(--text-primary);
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 10000;
}

.lightbox-caption h4 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lightbox-caption p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-normal);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Gallery item cursor pointer */
.gallery-full-item {
    cursor: pointer;
    position: relative;
}

.gallery-full-item::after {
    content: '\f065';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 212, 255, 0.9);
    color: var(--bg-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 10;
}

.gallery-full-item:hover::after {
    opacity: 1;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
        width: 50px;
        height: 50px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption h4 {
        font-size: 1.2rem;
    }

    .lightbox-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .lightbox-content {
        max-height: 60vh;
    }

    .lightbox-prev,
    .lightbox-next {
        bottom: 100px;
        top: auto;
        transform: none;
    }

    .lightbox-prev {
        left: 50%;
        margin-left: -80px;
    }

    .lightbox-next {
        right: 50%;
        margin-right: -80px;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: scale(1.1);
    }
}

/* ===== Bootstrap Overrides for Accessibility ===== */
.text-secondary {
    color: var(--text-secondary) !important;
}

.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.footer a {
    color: var(--text-secondary);
}

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