/* CSS Variables for consistent theming */
:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --accent-color: #e63946;
    --accent-color2: #ff6b6b;
    --accent-hover: #ff5252;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.22, 0.9, 0.3, 1);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    --glass-blur: 12px;
    --vh: 1vh;
}

/* Light Mode Variables - Premium Off-White Gradient */
.light-mode {
    --primary-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --secondary-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --accent-color: #dc2626;
    --accent-color2: #ef4444;
    --accent-hover: #b91c1c;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color2));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent-color2));
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* Dark Mode Specific Background with Shine Effect */
body:not(.light-mode) {
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
}

/* Light Mode Specific Background */
body.light-mode {
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    animation: fadeInUp 1s ease-out;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    border-radius: 2px;
    animation: slideIn 1s ease-out 0.5s both;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    border-color: transparent;
}

/* Glass Card Effect */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    width: 100%;
    animation: fadeInUp 1s ease-out;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Shine effect for cards in dark mode */
body:not(.light-mode) .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

body:not(.light-mode) .card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
#progress-bar {
    position: fixed;
    left: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    width: 0;
    z-index: 9999;
    transition: width .2s linear;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Header & Navigation - COMPLETELY FIXED VERSION */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    width: 100%;
    animation: slideDown 0.8s ease-out;
}

.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    animation: fadeInLeft 1s ease-out;
}

.logo span {
    color: var(--accent-color);
}

/* DESKTOP NAVIGATION - FIXED */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px; /* Reduced gap for better spacing */
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s ease; /* Simpler transition */
    position: relative;
    overflow: hidden;
    display: block;
    /* Remove all transforms initially */
    transform: none;
    margin: 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

/* FIXED HOVER EFFECT - NO JUMPING */
.nav-links a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
    /* NO TRANSFORM - This prevents jumping */
    transform: none;
    /* Add scale effect instead of translate */
    scale: 1.05;
}

.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
    transform: none; /* Ensure no transform */
}

/* Theme Toggle Button - Fixed */
.theme-toggle {
    width: 70px;
    height: 34px;
    border-radius: 25px;
    border: 2px solid var(--glass-border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInRight 1s ease-out 0.4s both;
    /* Prevent jumping */
    transform: none;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
    /* Scale instead of transform */
    scale: 1.05;
}

.theme-toggle .icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle .sun {
    left: 3px;
    opacity: 0;
    transform: translateX(-10px) scale(0.5);
}

.theme-toggle .moon {
    right: 3px;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.theme-toggle.active .sun {
    left: 3px;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.theme-toggle.active .moon {
    right: 3px;
    opacity: 0;
    transform: translateX(10px) scale(0.5);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        transition: var(--transition);
        text-align: center;
        transform: none; /* Ensure no transform */
    }
    
    .nav-links a:hover {
        background: var(--accent-color);
        color: white;
        transform: none; /* No transform on mobile */
        scale: 1.02; /* Use scale instead */
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        transform: none; /* No transform */
    }
    
    .menu-toggle:hover {
        scale: 1.1; /* Use scale instead of transform */
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important; /* Force display */
        gap: 18px;
    }
}

/* Common Styles */
.menu-toggle {
    display: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 70px;
    height: 34px;
    border-radius: 25px;
    border: 2px solid var(--glass-border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.theme-toggle:hover {
    transform: none;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.theme-toggle .icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle .sun {
    left: 3px;
    opacity: 0;
    transform: translateX(-10px) scale(0.5);
}

.theme-toggle .moon {
    right: 3px;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.theme-toggle.active .sun {
    left: 3px;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.theme-toggle.active .moon {
    right: 3px;
    opacity: 0;
    transform: translateX(10px) scale(0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    width: 100%;
}

.bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 80px 0;
    width: 100%;
}

.headline {
    font-size: 48px;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
    animation: fadeInUp 1s ease-out 0.3s both;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.typed {
    color: var(--accent-color2);
    font-weight: 700;
}

.cursor {
    color: var(--accent-color2);
    opacity: 1;
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.lead {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.7s both;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-social {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: var(--transition);
    animation: bounceIn 1s ease-out;
    border: 1px solid var(--glass-border);
}

.hero-social a:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

/* Profile Image with Glow */
.profile-glow {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.15), transparent 50%);
    box-shadow: 
        0 0 80px rgba(230, 57, 70, 0.3),
        0 20px 60px rgba(2, 6, 12, 0.6);
    animation: scaleIn 1s ease-out 0.5s both, float 6s ease-in-out infinite;
}

.profile-glow img {
    width: 86%;
    height: 86%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.profile-card {
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.badges span {
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.badges span:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: var(--secondary-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 18px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    animation: fadeInLeft 1s ease-out;
    transition: var(--transition);
    padding: 12px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

.feature-list li:hover {
    transform: translateX(10px);
    color: var(--accent-color2);
    border-color: var(--accent-color);
}

.feature-list i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    color: #ffffff;
    transition: var(--transition);
    font-size: 1.2rem;
}

.feature-list li:hover i {
    transform: scale(1.1) rotate(10deg);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat {
    text-align: center;
    animation: pulse 2s infinite;
    padding: 30px;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.skill h4 {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.skill ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
}

.skill ul li {
    margin-bottom: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

.skill ul li::before {
    content: '▹';
    position: absolute;
    left: -20px;
    color: var(--accent-color);
    transition: var(--transition);
}

.skill ul li:hover {
    transform: translateX(5px);
    color: var(--accent-color2);
}

.skill ul li:hover::before {
    transform: scale(1.2);
}

/* Projects Section */
.projects {
    background: var(--secondary-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.project .proj-media {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: var(--transition);
    overflow: hidden;
    animation: zoomIn 0.8s ease-out;
    position: relative;
}

.project .proj-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.project:hover .proj-media::after {
    opacity: 1;
}

.project .proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
}

.project:hover .proj-media {
    transform: scale(1.02);
}

.project:hover .proj-media img {
    transform: scale(1.1);
}

.proj-body h3 {
    color: var(--accent-color2);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.proj-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.btn.small {
    padding: 10px 20px;
    font-size: 14px;
}

/* Experience & Education Sections */
.experience {
    background: var(--primary-bg);
}

.education {
    background: var(--secondary-bg);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    padding: 30px;
    position: relative;
}

.timeline-item h4 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.timeline-item .muted {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 5px 0;
}

.timeline-item p {
    margin: 6px 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.interest {
    text-align: center;
    animation: bounceIn 1s ease-out;
    transition: var(--transition);
    padding: 30px 20px;
}

.interest:hover {
    transform: translateY(-10px) scale(1.05);
}

.interest i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.interest:hover i {
    color: var(--accent-color2);
    transform: scale(1.2) rotate(15deg);
}

.interest p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* Contact Section */
.contact {
    background: var(--secondary-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* সমান দুই কলাম */
    gap: 30px;
    align-items: start;
}

/* Let's Connect Section (বাম পাশে) */
.contact-grid .contact-card:first-child {
    order: 1; /* বামে রাখবে */
}

/* Form Section (ডান পাশে) */
.contact-grid .contact-card:last-child {
    order: 2; /* ডানে রাখবে */
}

.contact-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-card .muted {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-card .contact-info p {
    margin: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    padding: 12px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

.contact-card .contact-info p:hover {
    color: var(--accent-color2);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.contact-card .contact-info a:hover {
    color: var(--accent-color);
}

/* Form Styles */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contactForm label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#contactForm textarea {
    min-height: 130px;
}

#contactForm .btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

#contactForm .btn:hover {
    background: var(--accent-color2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* SOCIAL BUTTONS - FIXED ARRANGEMENT */
.social-section {
    margin-top: 25px;
}

.social-section h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-row {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

/* Social button base styles */
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social a i {
    font-size: 1.2rem;
}

/* Shine effect on hover */
.social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social a:hover::before {
    left: 100%;
}

/* Individual platform colors on hover */
.social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

/* GitHub */
.social a[aria-label="GitHub"]:hover {
    background: linear-gradient(135deg, #333333, #000000);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.4);
}

/* LinkedIn */
.social a[aria-label="LinkedIn"]:hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

/* Facebook */
.social a[aria-label="Facebook"]:hover {
    background: linear-gradient(135deg, #1877f2, #3b5998);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

/* YouTube */
.social a[aria-label="Youtube"]:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

/* Instagram */
.social a[aria-label="Instagram"]:hover {
    background: linear-gradient(135deg, #e4405f, #833ab4, #405de6);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(228, 64, 95, 0.4);
}

/* Telegram */
.social a[aria-label="Telegram"]:hover {
    background: linear-gradient(135deg, #0088cc, #00aced);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4);
}

/* X/Twitter */
.social a[aria-label="X (Twitter)"]:hover {
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Dribbble */
.social a[aria-label="Dribbble"]:hover {
    background: linear-gradient(135deg, #ea4c89, #c32361);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(234, 76, 137, 0.4);
}

/* Behance */
.social a[aria-label="Behance"]:hover {
    background: linear-gradient(135deg, #1769ff, #0057ff);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(23, 105, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid .contact-card:first-child,
    .contact-grid .contact-card:last-child {
        order: unset; /* মোবাইলে স্বাভাবিক অর্ডার */
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .social {
        align-items: center;
    }
    
    .social-row {
        justify-content: center;
    }
    
    .social a {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .social {
        gap: 8px;
    }
    
    .social a {
        width: 42px;
        height: 42px;
    }
    
    .social a i {
        font-size: 1.1rem;
    }
    
    #contactForm input,
    #contactForm textarea {
        padding: 14px;
    }
    
    .contact-card {
        padding: 15px;
    }
}

/* ========== SIMPLE FOOTER ========== */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    animation: fadeInUp 1s ease-out;
    background: var(--primary-bg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Remove unnecessary footer elements */
.footer-logo,
.footer-links {
    display: none !important;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Tablet Styles */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 360px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 350px 1fr;
    }
    
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        scroll-padding-top: 70px;
    }
    
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    /* Navigation for Mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        transition: var(--transition);
        text-align: center;
    }
    
    .nav-links a:hover {
        background: var(--accent-color);
        color: white;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
    }
    
    /* Hero Section Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0 !important;
        text-align: center;
    }
    
    .headline {
        font-size: 32px !important;
        text-align: center;
    }
    
    .typing-wrap {
        justify-content: center;
    }
    
    .typed {
        font-size: 1.2rem;
    }
    
    .lead {
        text-align: center;
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    
    .profile-glow {
        width: 220px !important;
        height: 220px !important;
    }
    
    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }
    
    /* Contact Section Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section Padding Mobile */
    section {
        padding: 60px 0 !important;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 2.2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
    
    /* Skills grid for mobile */
    .skills-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Interests grid for mobile */
    .interests-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    /* Card padding for mobile */
    .card {
        padding: 20px 15px;
    }
    
    /* Social icons mobile */
    .hero-social {
        justify-content: center;
    }
    
    /* Feature list mobile */
    .feature-list li {
        padding: 10px;
    }
    
    .feature-list i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Stats mobile */
    .stat {
        padding: 20px;
    }
    
    .stat h4 {
        font-size: 2rem;
    }
    
    /* Project actions mobile */
    .proj-actions {
        flex-direction: column;
    }
    
    .btn.small {
        width: 100%;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    html {
        font-size: 13px;
        scroll-padding-top: 60px;
    }
    
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .headline {
        font-size: 24px !important;
    }
    
    .profile-glow {
        width: 180px !important;
        height: 180px !important;
    }
    
    .interests-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-cta .btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.9rem;
    }
}

/* Very Small Mobile Styles */
@media (max-width: 360px) {
    .profile-glow {
        width: 150px !important;
        height: 150px !important;
    }
    
    .headline {
        font-size: 22px !important;
    }
    
    .nav-links {
        width: 250px;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Common Styles */
.menu-toggle {
    display: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Email Link Styles */
.contact-info a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

.contact-info a:hover {
    color: var(--accent-color2) !important;
}




/* Projects Section Styles */
.projects {
    background: var(--secondary-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 18px;
}

.project {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project .proj-media {
    height: 220px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.project .proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project:hover .proj-media img {
    transform: scale(1.1);
}

.proj-body h3 {
    color: var(--accent-color2);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.proj-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.proj-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn.small {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 2% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), transparent);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.8rem;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-color);
    background: rgba(230, 57, 70, 0.1);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Websites Modal Specific Styles */
.websites-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    min-height: 500px;
}

.websites-list {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--glass-border);
}

.websites-list h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.website-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.website-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    color: var(--text-secondary);
}

.website-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(5px);
}

.website-item.active {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), transparent);
    border-color: var(--accent-color);
    color: var(--accent-color2);
}

.website-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.website-item span {
    font-weight: 500;
}

.github-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.github-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    font-size: 14px;
}

.website-preview {
    flex: 1;
}

.preview-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.preview-content.active {
    display: block;
}

.preview-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.preview-info h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.preview-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* Designs Modal Styles */
.designs-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.design-category h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.design-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.design-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.design-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.design-info {
    padding: 15px;
}

.design-info h5 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.design-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Coming Soon Styles */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.coming-soon i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.coming-soon h4 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.coming-soon p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 10px auto;
}

/* Mobile Responsive for Modals */
@media (max-width: 968px) {
    .websites-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .websites-list {
        order: 2;
    }
    
    .website-preview {
        order: 1;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .website-items {
        gap: 5px;
    }
    
    .website-item {
        padding: 12px;
    }
}



/* GitHub Repositories Styles */
.loading-repos {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-secondary);
    text-align: center;
    justify-content: center;
}

.loading-repos i {
    font-size: 1.2rem;
}

.repo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.repo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(5px);
}

.repo-item.active {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), transparent);
    border-color: var(--accent-color);
    color: var(--accent-color2);
}

.repo-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.repo-info {
    flex: 1;
}

.repo-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: inherit;
}

.repo-description {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

.repo-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.8rem;
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* GitHub Stats */
.github-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-item small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Preview Placeholder */
.preview-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.preview-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.preview-placeholder h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.preview-placeholder p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Repository Preview */
.repo-preview {
    animation: fadeIn 0.3s ease;
}

.repo-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.repo-title {
    flex: 1;
}

.repo-title h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repo-title h4 i {
    color: var(--accent-color);
}

.repo-title p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.repo-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.repo-preview-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.02);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repo-preview-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.repo-preview-image .placeholder-image {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.repo-preview-image .placeholder-image i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.repo-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item h5 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.detail-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Language Colors */
.language-javascript { background: #f7df1e !important; }
.language-html { background: #e34f26 !important; }
.language-css { background: #1572b6 !important; }
.language-python { background: #3776ab !important; }
.language-java { background: #ed8b00 !important; }
.language-php { background: #777bb4 !important; }
.language-typescript { background: #3178c6 !important; }
.language-cpp { background: #00599c !important; }
.language-c { background: #a8b9cc !important; }
.language-shell { background: #89e051 !important; }
.language-dart { background: #00b4ab !important; }
.language-kotlin { background: #7f52ff !important; }
.language-swift { background: #f05138 !important; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .repo-details {
        grid-template-columns: 1fr;
    }
    
    .github-stats {
        grid-template-columns: 1fr;
    }
    
    .repo-header {
        flex-direction: column;
    }
    
    .repo-links {
        width: 100%;
        justify-content: center;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions .btn {
        width: 100%;
    }
}

/* Client Projects Styles */
.client-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    min-height: 500px;
}

.client-list {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--glass-border);
}

.client-list h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.client-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    color: var(--text-secondary);
}

.client-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(5px);
}

.client-item.active {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), transparent);
    border-color: var(--accent-color);
    color: var(--accent-color2);
}

.client-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.client-info {
    flex: 1;
}

.client-name {
    font-weight: 600;
    display: block;
    color: inherit;
}

.client-info small {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* Client Preview */
.client-preview {
    flex: 1;
}

.client-preview-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.client-preview-content.active {
    display: block;
}

.client-preview-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.client-preview-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.client-preview-info h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.client-preview-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.client-details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.detail {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.detail strong {
    color: var(--text-primary);
}

.detail:last-child {
    margin-bottom: 0;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* Mobile Responsive for Client Modal */
@media (max-width: 968px) {
    .client-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .client-list {
        order: 2;
    }
    
    .client-preview {
        order: 1;
    }
}

@media (max-width: 768px) {
    .client-preview-image img {
        height: 250px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions .btn {
        width: 100%;
    }
}

/* Client Preview Image Styles */
.client-preview-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition);
}

.client-preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.client-preview-image img {
    width: 100%;
    height: 350px; /* Increased height for better view */
    object-fit: cover;
    transition: var(--transition);
}

.client-preview-image:hover img {
    transform: scale(1.05);
}

/* Add overlay effect on image */
.client-preview-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.client-preview-image:hover::after {
    opacity: 1;
}

/* Mobile Responsive for Client Images */
@media (max-width: 768px) {
    .client-preview-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .client-preview-image img {
        height: 200px;
    }
}


/* Footer Styles */
.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

.inspiration {
    margin-left: 5px;
}

.inspiration a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.inspiration a:hover {
    color: var(--accent-color2);
    text-decoration: underline;
}

/* Mobile Responsive for Footer */
@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 12px;
        flex-direction: column;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}