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

:root {
    --primary-black: #020617;
    --secondary-black: #020617;
    --dark-gray: #020617;
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --accent-light: #60a5fa;
    --text-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --border-soft: rgba(148, 163, 184, 0.25);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Image loading states */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.profile-img,
.about-img {
    transition: opacity 0.3s ease;
    background: var(--dark-gray);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img[src=""],
.about-img[src=""] {
    opacity: 0;
}

/* Selection */
::selection {
    background: var(--accent-light);
    color: #0b1120;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.9);
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.95);
    background-color: rgba(15, 23, 42, 0.98);
}

.navbar-toggler {
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Brand */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}


.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem !important;
    transition: all 0.25s ease;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;            /* به جای right:50% و transform */
    margin: 0 auto;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
    border-radius: 999px;
}

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


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

/* Navbar collapse on mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(15, 23, 42, 0.98);
        margin-top: 0.75rem;
        padding: 0.8rem;
        border-radius: 14px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-custom {
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--accent);
    padding: 0.7rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* Better focus states */
a:focus-visible,
button:focus-visible,
.btn-primary-custom:focus-visible,
.btn-outline-custom:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.4) 0, transparent 55%),
        radial-gradient(circle at bottom, rgba(37, 99, 235, 0.35) 0, transparent 55%),
        linear-gradient(135deg, #020617 0%, #020617 100%);
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
    animation: rotate 22s linear infinite;
    opacity: 0.7;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.badge-custom {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: inline-block;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

.social-links {
    animation: fadeInUp 1s ease 0.8s both;
}

.social-link {
    display: inline-block;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    color: var(--accent-light);
    border-radius: 999px;
    margin-left: 0.6rem;
    font-size: 1.15rem;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
}

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 460px;
}

.profile-image {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background:
        radial-gradient(circle at top, #60a5fa 0, transparent 60%),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.9);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
    border: 5px solid rgba(59, 130, 246, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0, transparent 65%);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 190px;
    height: 190px;
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 140px;
    height: 140px;
    bottom: 0;
    left: 0;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 52%;
    left: 12%;
    animation-delay: 4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down {
    color: var(--accent-light);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: var(--accent);
    transform: translateY(4px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section-padding {
    padding: 100px 0;
}

.bg-dark-section {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.14) 0, transparent 55%),
        #020617;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    margin: 0 auto;
    border-radius: 999px;
}

.text-orange {
    color: var(--accent) !important;
}

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

.image-card {
    width: 100%;
    height: 400px;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.15) 0, transparent 60%),
        linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 80px rgba(30, 64, 175, 0.95);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.02rem;
    line-height: 1.9;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-item h4 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

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

/* ============================================
   Skills Section
   ============================================ */
.skill-card {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.12) 0, transparent 60%),
        #020617;
    padding: 2.3rem;
    border-radius: 22px;
    text-align: right;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

.skill-icon {
    width: 76px;
    height: 76px;
    margin: 0 0 1.5rem auto;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.skill-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.skill-card p {
    color: var(--text-gray);
    margin-bottom: 1.4rem;
    font-size: 0.98rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    background: rgba(15, 23, 42, 0.95);
    color: var(--accent-light);
    padding: 0.28rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

/* Skill levels */
.skill-level {
    text-align: right;
    margin-bottom: 0.8rem;
}

.skill-level span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: inherit;
    width: 0;
    transition: width 0.7s ease;
}

/* ============================================
   Experience (Timeline)
   ============================================ */
/* ============================================
   Experience Timeline (نسخه ساده و تمیز)
   ============================================ */

.timeline {
    position: relative;
    padding-right: 1.5rem;
    border-right: 2px solid rgba(148, 163, 184, 0.4); /* خط عمودی سمت راست */
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-right: 0.8rem;
}

/* نقطه‌ی روی خط تایم‌لاین */
.timeline-dot {
    position: absolute;
    right: -11px;
    top: 16px;
    width: 14px;
    height: 14px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* با آیکن داخل نقطه (اگه خواستی نگه داری) */
.timeline-dot i {
    display: none; /* اگه خواستی آیکن دیده بشه این خط رو حذف کن */
}

/* جعبه‌ی متن هر تجربه */
.timeline-content {
    background-color: #020617;
    border-radius: 14px;
    padding: 1.1rem 1.1rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

/* هدر بالای هر تجربه (عنوان + برچسب) */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.timeline-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* برچسب کوچیک کنار عنوان (مثلا: همین حالا، فریلنس، شروع داستان) */
.timeline-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.6);
    color: #bfdbfe;
    white-space: nowrap;
}

.timeline-badge-outline {
    background-color: transparent;
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.timeline-badge-soft {
    background-color: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

/* تاریخ */
.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.4rem;
}

/* متن توضیح */
.timeline-content p {
    margin-bottom: 0.6rem;
    font-size: 0.93rem;
    color: var(--text-light);
}

/* تگ‌های تکنولوژی زیر هر تجربه */
.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.tag-sm {
    background-color: rgba(15, 23, 42, 0.95);
    color: #bfdbfe;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .timeline {
        padding-right: 1.1rem;
    }

    .timeline-item {
        margin-bottom: 1.6rem;
    }

    .timeline-dot {
        right: -10px;
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-header h4 {
        font-size: 0.95rem;
    }
}


/* ============================================
   Projects Section
   ============================================ */
.portfolio-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.3rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.portfolio-filters .btn {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
}

.portfolio-filters .btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent-dark);
}

.project-card {
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.13) 0, transparent 55%),
        #020617;
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.22);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.95);
    border-color: var(--accent);
}

.project-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.6rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.project-card:hover .project-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.06) rotate(2deg);
    border-color: var(--accent);
}

.project-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.project-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--text-light);
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 1.1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}


.project-item {
    transition: opacity 0.2s ease;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-form {
    margin-top: 2rem;
}

.form-control-custom {
    width: 100%;
    padding: 1rem;
    background: #020617;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
    background: #020617;
}

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

/* Validation feedback */
.invalid-feedback-custom {
    font-size: 0.8rem;
    color: #f97373;
    margin-top: 0.3rem;
    display: none;
}

.form-control-custom.is-invalid {
    border-color: #f97373;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-status {
    font-size: 0.9rem;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: #f97373;
}

.contact-info {
    padding: 2rem;
}

.contact-info i {
    font-size: 2.3rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.contact-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

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

/* ============================================
   Back to top
   ============================================ */
.back-to-top {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

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

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #020617;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.22);
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        justify-content: space-around;
    }

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 150px;
    }
}

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

    .hero-subtitle {
        font-size: 0.97rem;
    }

    .profile-image {
        width: 240px;
        height: 240px;
    }

    .image-wrapper {
        height: 380px;
    }

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

    .social-link {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 1rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.4rem;
    }

    .skill-card {
        padding: 2rem;
    }

    .project-card {
        padding: 1.7rem;
    }

    .contact-info {
        padding: 1.6rem;
    }

    .navbar-nav {
        text-align: right;
        padding: 0.4rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .image-wrapper {
        height: 320px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .about-content h3 {
        font-size: 1.4rem;
    }

    .image-card {
        height: 280px;
    }

    .skill-card h4 {
        font-size: 1.15rem;
    }

    .project-content h4 {
        font-size: 1.05rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .form-control-custom {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

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

    .contact-info h5 {
        font-size: 1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .portfolio-filters {
        border-radius: 16px;
        flex-wrap: wrap;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .image-wrapper {
        height: 260px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stat-item h4 {
        font-size: 1.8rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .image-wrapper {
        height: 300px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }
}

/* Container improvements for mobile */
@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Ensure images don't break layout */
.project-img,
.about-img,
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
