/* ===== Modern projects Styles ===== */
/* Custom Properties - Modern Color Palette */
:root {
    /* Primary Gradient Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --accent-secondary: #8b5cf6;
    
    /* Background Colors */
    --bg-color: #fafafa;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --section-bg: #f1f5f9;
    
    /* Text Colors */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Form Controls */
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: rgba(30, 41, 59, 0.18);
    --input-placeholder: var(--text-muted);
    
    /* Effects */
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Glassmorphism */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.9);
    --glass-bg: rgba(30, 41, 59, 0.5);
    --section-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.4);

    /* Form Controls */
    --input-bg: var(--bg-color);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-placeholder: var(--text-muted);
}

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

html {
    scroll-behavior: smooth;
}

/* Remove underlines from all icon links */
a {
    text-decoration: none;
}

/* Show pointer cursor on interactive controls */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.portfolio-filter-btn,
.blog-filter-btn,
.theme-toggle,
.carousel-dot,
.nav-menu a,
.mobile-nav-menu a,
.social-links a,
.about-social-links a,
.close {
    cursor: pointer;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===== Animated Background ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1002;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-color);
    border: var(--glass-border);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    transform: translateY(-3px) rotate(15deg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.theme-toggle i {
    transition: transform var(--transition-normal);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.95) 0%, 
        rgba(139, 92, 246, 0.95) 50%, 
        rgba(236, 72, 153, 0.95) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: white;
    padding: 32px 24px;
    z-index: 1000;
    transition: all var(--transition-normal);
    overflow-y: auto;
    overflow-x: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.header h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.header > p {
    text-align: center;
    margin-bottom: 24px;
    opacity: 0.9;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.social-links a {
    color: white;
    font-size: 18px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    position: relative;
    z-index: 1;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all var(--transition-normal);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: width var(--transition-normal);
    border-radius: 12px;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    transform: translateX(6px);
}

.nav-menu i {
    margin-right: 12px;
    width: 20px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.nav-menu span {
    position: relative;
    z-index: 1;
}

/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none !important;
    visibility: hidden;
}

/* ===== Mobile Bottom Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 12px 20px;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    border: var(--glass-border);
}

.mobile-nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.mobile-nav-menu a {
    color: var(--text-color);
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 54px;
}

.mobile-nav-menu a i {
    font-size: 18px;
}

.mobile-nav-menu a span {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 280px;
    transition: all var(--transition-normal);
}

.main-content.full-width {
    margin-left: 0;
}

section {
    min-height: 100vh;
    padding: 100px 60px 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    color: var(--text-color);
    letter-spacing: -1px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 0;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.carousel-slide .hero-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide .hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.08);
    animation: smoothZoom 8s ease-out forwards;
}

@keyframes smoothZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(99, 102, 241, 0.45) 0%, 
        rgba(139, 92, 246, 0.35) 50%, 
        rgba(236, 72, 153, 0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
    opacity: 0.95;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease 0.4s both;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.about-image-container {
    text-align: center;
    position: sticky;
    top: 120px;
}

.about-image-container img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.about-image-container img:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.about-social-links a {
    color: var(--primary-color);
    font-size: 22px;
    width: 52px;
    height: 52px;
    border: 2px solid transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.about-social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-6px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.about-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 24px;
    line-height: 1.9;
    color: var(--text-light);
    font-size: 16px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.about-info div {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.about-info div:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-info strong {
    min-width: 130px;
    color: var(--primary-color);
    font-weight: 600;
}

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

/* ===== Skills Section ===== */
.skills {
    background: var(--section-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.skill-item {
    background: var(--card-bg);
    padding: 36px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

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

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.skill-item i {
    font-size: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: inline-block;
}

.skill-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-color);
    font-weight: 600;
}

.skill-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.progress-bar {
    background: var(--section-bg);
    height: 8px;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 2s ease;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== projects Section ===== */
.projects-filters {
    text-align: center;
    margin-bottom: 48px;
}

.projects-filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 28px;
    margin: 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
    font-size: 14px;
}

.projects-filter-btn.active,
.projects-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.projects-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.projects-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.projects-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.projects-item:hover img {
    transform: scale(1.1);
}

.projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(99, 102, 241, 0.95) 0%, 
        rgba(236, 72, 153, 0.9) 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all var(--transition-normal);
    padding: 30px;
}

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

.projects-overlay h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.projects-item:hover .projects-overlay h4 {
    transform: translateY(0);
}

.projects-overlay p {
    text-align: center;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.1s;
    font-size: 14px;
    opacity: 0.9;
}

.projects-item:hover .projects-overlay p {
    transform: translateY(0);
}

/* ===== Blog Section ===== */
.blog-filters {
    text-align: center;
    margin-bottom: 48px;
}

.blog-filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 28px;
    margin: 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
    font-size: 14px;
}

.blog-filter-btn.active,
.blog-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.blog-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.blog-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-item:hover img {
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(99, 102, 241, 0.95) 0%, 
        rgba(236, 72, 153, 0.9) 100%
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all var(--transition-normal);
    padding: 30px;
}

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

.blog-overlay h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.blog-item:hover .blog-overlay h4 {
    transform: translateY(0);
}

.blog-overlay p {
    text-align: center;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.1s;
    font-size: 14px;
    opacity: 0.9;
}

.blog-item:hover .blog-overlay p {
    transform: translateY(0);
}

/* ===== experiences Section ===== */
.experiences {
    background: var(--section-bg);
}

.experiences-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.experiences-section {
    position: relative;
}

.experiences-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    margin-bottom: 36px;
    color: var(--text-color);
    padding-bottom: 14px;
    position: relative;
    font-weight: 600;
}

.experiences-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

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

.timeline-item {
    position: relative;
    background: var(--card-bg);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 32px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 2;
}

.timeline-item:last-child::after {
    content: '';
    position: absolute;
    left: -21px;
    top: 48px;
    bottom: -28px;
    width: 3px;
    background: var(--section-bg);
    z-index: 1;
}

.timeline-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.timeline-item .date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-item .company {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 12px;
    font-size: 14px;
}

.timeline-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 14px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-item {
    background: var(--card-bg);
    padding: 48px 36px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.service-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-item i {
    font-size: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: inline-block;
}

.service-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--section-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

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

.contact-item i {
    font-size: 24px;
    color: white;
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
}

.contact-item h4 {
    color: var(--text-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 16px;
    transition: all var(--transition-normal);
    background: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
}

.contact-form .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-secondary) 100%);
    color: white;
    padding: 50px 40px;
    margin-left: 280px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 16px;
    opacity: 0.9;
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 280px;
    width: calc(100% - 280px);
    height: 4px;
    background: rgba(99, 102, 241, 0.15);
    z-index: 999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    margin: 4% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 32px 36px;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.modal-header .modal-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-normal);
}

.close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-body {
    padding: 36px;
}

.modal-body img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.modal-body p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-light);
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.modal-links {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.modal-links .btn {
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: none;
}

.achievement-list {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
    border-left: 4px solid var(--primary-color);
}

.achievement-list h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===== Custom Scrollbar ===== */
.header::-webkit-scrollbar {
    width: 6px;
}

.header::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.header::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.header::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* General scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-image-container {
        position: static;
        order: -1;
    }

    .about-text {
        text-align: left;
    }

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

    .about-info div {
        justify-content: space-between;
        padding: 14px 20px;
    }

    .experiences-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 80px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .mobile-toggle {
        display: block;
    }

    .header {
        transform: translateX(-100%);
    }

    .header.mobile-visible {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .footer {
        margin-left: 0;
    }

    .mobile-nav {
        display: block;
    }

    section {
        padding: 80px 24px 60px;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-content {
        padding: 0 24px;
        height: 100vh;
    }

    .hero-carousel {
        height: 100vh;
    }

    .carousel-slide {
        height: 100vh;
    }

    .carousel-slide .hero-picture img {
        object-position: center;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-container {
        position: static;
    }

    .about-image-container img {
        width: 100%;
        max-width: 100%;
    }

    .about-social-links {
        gap: 14px;
    }

    .about-social-links a {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .about-text h3 {
        font-size: 26px;
        text-align: center;
    }

    .contact-content,
    .experiences-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .carousel-dots {
        bottom: 120px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .scroll-indicator {
        left: 0;
        width: 100%;
    }

    .timeline {
        padding-left: 35px;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item::before {
        left: -29px;
    }

    .timeline-item:last-child::after {
        left: -18px;
    }

    .contact-form {
        padding: 28px;
    }

    .modal-content {
        width: 95%;
        margin: 8% auto;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .about-image-container img {
        width: 100%;
        max-width: 100%;
    }

    .about-social-links {
        gap: 12px;
    }

    .about-social-links a {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .about-text h3 {
        font-size: 22px;
    }

    .about-text p {
        font-size: 14px;
    }

    .mobile-nav {
        padding: 10px 16px;
        bottom: 20px;
    }

    .mobile-nav-menu {
        gap: 4px;
    }

    .mobile-nav-menu a {
        padding: 6px 8px;
        gap: 3px;
        min-width: 48px;
    }

    .mobile-nav-menu a i {
        font-size: 16px;
    }

    .mobile-nav-menu a span {
        font-size: 9px;
    }

    section {
        padding: 60px 16px 40px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
    }

    .timeline-item {
        padding: 22px;
    }

    .timeline-item::before {
        left: -26px;
        width: 14px;
        height: 14px;
    }

    .timeline-item:last-child::after {
        left: -16px;
        width: 2px;
    }

    .skill-item,
    .service-item {
        padding: 28px 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .about-image-container img {
        max-width: 200px;
    }

    .about-social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .mobile-nav {
        padding: 10px 14px;
    }

    .mobile-nav-menu a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
