/* Main Stylesheet - Portfolio Website */
:root {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    
    /* Section Background Colors */
    --bg-hero: #DBDBDB;
    --bg-about: #f0f9ff;      /* sky-50 */
    --bg-skills: #faf5ff;     /* purple-50 */
    --bg-services: #fefce8;   /* yellow-50 */
    --bg-projects: #ecfdf5;   /* emerald-50 */
    --bg-experience: #fff7ed; /* orange-50 */
    --bg-education: #fdf4ff;  /* fuchsia-50 */
    --bg-testimonials: #fef2f2; /* red-50 */
    --bg-contact: #eff6ff;    /* blue-50 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0 auto 24px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 14px 32px;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* Navbar */
#mainNavbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition);
    z-index: 1030;
}

#mainNavbar.scrolled {
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.navbar-brand {
    font-size: 24px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.1);
}

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

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

/* ========================================
   HERO SECTION - Modern Design
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--hero-background-color);
}

/* Background Animation */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Matrix Code Rain */
.code-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.06;
}

.code-rain-column {
    position: absolute;
    top: -100%;
    width: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.4;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: codeRainFall linear infinite;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes codeRainFall {
    to {
        transform: translateY(200vh);
    }
}

/* Gradient Orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    bottom: 10%;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    animation: floatItem 15s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.float-1 { top: 15%; left: 5%; animation-delay: 0s; }
.float-2 { top: 25%; right: 8%; animation-delay: -2.5s; }
.float-3 { top: 50%; left: 3%; animation-delay: -5s; }
.float-4 { bottom: 20%; right: 5%; animation-delay: -7.5s; }
.float-5 { bottom: 35%; left: 10%; animation-delay: -10s; }
.float-6 { top: 65%; right: 12%; animation-delay: -12.5s; }

@keyframes floatItem {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* Hero Content */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 24px;
    animation: slideInLeft 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 8px;
    animation: slideInLeft 0.8s ease-out 0.1s both;
}

.greeting {
    display: block;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.name-animated {
    display: inline-block;
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

.name-typing {
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 6s steps(30, end) infinite, blink 1s step-end infinite;
    overflow: hidden;
}

@keyframes typing {
    0% { width: 0; }
    15% { width: 2ch; }      /* Md */
    20% { width: 2ch; }      /* pause */
    30% { width: 7ch; }      /* Md Tamim */
    35% { width: 7ch; }      /* pause */
    50% { width: 12ch; }     /* Md Tamim Iqbal */
    55% { width: 12ch; }     /* pause */
    70% { width: 7ch; }      /* delete back to Tamim */
    75% { width: 7ch; }      /* pause */
    85% { width: 2ch; }      /* delete back to Md */
    90% { width: 2ch; }      /* pause */
    100% { width: 0; }       /* delete all */
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin-top: 10px;
    animation: expandWidth 0.8s ease-out 0.4s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

.hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.8;
    margin-bottom: 32px;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    margin-bottom: 32px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

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

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.btn-hero {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.btn-hero .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    transform: translateX(0);
}

.btn-primary.btn-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: var(--shadow-lg);
}

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

.btn-primary.btn-hero:hover .btn-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.btn-secondary.btn-hero {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

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

/* Hero Social */
.hero-social {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.social-link-modern {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(0);
    border-radius: 14px;
    transition: var(--transition);
    z-index: -1;
}

.social-link-modern:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.social-link-modern:hover::before {
    transform: scale(1);
}

/* Hero Tech Stack */
.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    animation: slideInLeft 0.8s ease-out 0.7s both;
}

.tech-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 8px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-icons img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0.7;
}

.tech-icons img:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Hero Visual */
.hero-visual-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
}

.hero-image-container.transparent {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    isolation: isolate;
}

.hero-image-container.transparent::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--info-color), var(--success-color), var(--warning-color), var(--danger-color), var(--primary-color));
    background-size: 400% 100%;
    z-index: -1;
    animation: borderRotate 10s linear infinite;
}

.hero-image-container.transparent .hero-profile-img,
.hero-image-container.transparent .hero-profile-placeholder {
    border-radius: calc(var(--radius-lg) - 2px);
    box-shadow: none;
    background: transparent;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-glow {
    display: none;
}

.image-border {
    display: none;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.hero-profile-img,
.hero-profile-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.hero-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-color), var(--border-color));
    color: var(--text-muted);
    font-size: 80px;
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: floatCard 6s ease-in-out infinite;
    pointer-events: auto;
    transition: var(--transition);
}

.float-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-1 {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -40px;
    animation-delay: -2s;
}

.card-3 {
    bottom: -25px;
    left: 10%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-color);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: wheelMove 1.5s ease-in-out infinite;
}

@keyframes wheelMove {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

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

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1199px) {
    .hero-content-wrapper {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .float-card {
        display: none;
    }
    
    .floating-elements .float-item {
        display: none;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 130px;
        padding-bottom: 60px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 120px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 160px;
    }
    .hero-name {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .greeting {
        font-size: clamp(16px, 3.5vw, 22px);
    }
    
    .hero-title {
        font-size: clamp(18px, 4vw, 24px);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
    
    .hero-tech-stack {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tech-label {
        margin-right: 0;
        margin-bottom: 12px;
    }
}
}

/* About Section */
#about {
    background: var(--bg-about);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 100%;
    height: auto;
}

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

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--info-color), var(--success-color), var(--primary-color));
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--radius) - 2px);
    background: white;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.stat-card:hover::before {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label {
    color: white;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
    transition: color 0.4s ease;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.4s ease;
}

/* Responsive */
@media (max-width: 991px) {
    .about-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px 12px;
    }
    
    .stat-number {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .about-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 18px 8px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Skills Section */
#skills {
    background: var(--bg-skills);
}

.skill-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.skill-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.skill-progress {
    height: 8px;
    background: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

/* Services Section */
#services {
    background: var(--bg-services);
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-features {
    text-align: left;
    padding-left: 20px;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 12px;
}

/* Projects Section */
#projects {
    background: var(--bg-projects);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 41, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-links {
    display: flex;
    gap: 16px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 16px;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
}

.project-content {
    padding: 24px;
}

.project-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.project-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.project-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.project-tech span {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--light-color);
    border-radius: 20px;
    color: var(--text-muted);
}

/* Experience Section */
#experience {
    background: var(--bg-experience);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

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

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

.timeline-marker {
    position: absolute;
    left: -39px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.timeline-company {
    font-weight: 700;
    color: var(--dark-color);
}

.timeline-period {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-position {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tech span {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--light-color);
    border-radius: 20px;
    color: var(--text-muted);
}

/* Education Section */
#education {
    background: var(--bg-education);
}

.education-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary-color);
}

.education-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.education-institution {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.education-subject {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.education-period {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.education-grade {
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
    margin-top: 8px;
    display: inline-block;
}

/* Testimonials Section */
#testimonials {
    background: var(--bg-testimonials);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 40px;
    color: rgba(37, 99, 235, 0.1);
}

.testimonial-rating {
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: var(--warning-color);
    font-size: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-color);
}

.testimonial-author-info h5 {
    font-size: 16px;
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Contact Section */
#contact {
    background: var(--bg-contact);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 0 -15px;
    padding: 80px 15px;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--info-color), var(--success-color), var(--primary-color));
    background-size: 300% 100%;
    z-index: -1;
    animation: borderRotate 8s linear infinite;
}

#contact .section-title,
#contact .section-subtitle,
#contact .section-label,
#contact .contact-info h5,
#contact .contact-details p,
#contact .contact-details a,
#contact .form-label,
#contact .contact-form p {
    color: var(--text-color);
}

#contact .section-divider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#contact .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#contact .contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}
#contact .section-subtitle {
    color: var(--text-muted);
}

#contact .section-divider {
    margin-left: 0;
    margin-right: 0;
}

.contact-info {
    padding: 40px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-muted);
    margin: 0;
}

.contact-details a {
    color: var(--text-muted);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--text-color);
}

.form-control {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-color);
    font-size: 15px;
    transition: var(--transition);
}

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

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    color: var(--text-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-brand {
    font-size: 24px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: white;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

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

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    border: none;
}

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

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* 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);
}

/* Responsive */
@media (max-width: 991.98px) {
    .section {
        padding: 80px 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-experience-badge {
        position: static;
        display: inline-block;
        margin-top: 20px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-item .number {
        font-size: 28px;
    }
    
    .project-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -34px;
        width: 24px;
        height: 24px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .contact-info,
    .contact-form {
        padding: 24px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 16px 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: #164e63;
    border: 1px solid rgba(6, 182, 212, 0.2);
}