/* 
 * Khant Phyo Wai - Portfolio
 * Enhanced visuals with subtle background elements
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Main color scheme */
    --primary: #2c7a7b;         /* Teal */
    --secondary: #40916c;       /* Dark green */
    --primary-light: #4fd1c5;   /* Light teal */
    --secondary-light: #68d391; /* Light green */
    --dark: #1a202c;            /* Dark blue-gray */
    --light: #f7fafc;           /* Off-white */
    --text: #2d3748;            /* Dark slate */
    --light-text: #718096;      /* Gray */
    --bg: #ffffff;              /* White */
    --accent: #f59e0b;          /* Amber */
    
    /* Additional colors for categories */
    --ai-color: #0d9488;        /* Dark teal */
    --business-color: #40916c;  /* Green */
    --design-color: #f59e0b;    /* Amber */
    --data-color: #6366f1;      /* Indigo */
    --nlp-color: #d946ef;       /* Fuchsia */
    --web-color: #3b82f6;       /* Blue */
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 0 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows and borders */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 2;
}

/* ===== BACKGROUND ELEMENTS ===== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: var(--primary);
    animation: float 15s infinite alternate;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    background: var(--secondary);
    animation: float 20s infinite alternate-reverse;
}

.circle-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 10%;
    background: var(--accent);
    animation: float 18s infinite alternate;
}

.bg-shape {
    position: absolute;
    opacity: 0.06;
    filter: blur(20px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 15%;
    background: var(--primary);
    transform: rotate(45deg);
    animation: rotate 25s infinite linear;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 20%;
    background: var(--secondary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: rotate 30s infinite linear reverse;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 122, 123, 0.03) 0%, rgba(64, 145, 108, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.2rem;
}

.section-title {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    max-width: 700px;
    margin: -1.5rem auto 2rem;
    font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 0.5rem;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: all 0.3s ease-in-out;
}

.btn:hover::after {
    left: 0;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.3);
}

.btn-primary:hover {
    background: #236d6e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 122, 123, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: var(--bg);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 0.7rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

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

.logo span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    background-color: rgba(44, 122, 123, 0.2);
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: height 0.3s ease;
}

.logo:hover span::after {
    height: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.8rem;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

.theme-switch {
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-switch:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Language Toggle */
.language-toggle {
    position: relative;
}

.language-toggle .dropdown {
    cursor: pointer;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background-color: rgba(44, 122, 123, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-toggle .dropdown:hover {
    background-color: rgba(44, 122, 123, 0.2);
    transform: translateY(-2px);
}

.current-lang {
    position: relative;
    padding-right: 15px;
    color: var(--primary);
}

.current-lang::after {
    content: '▼';
    font-size: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.language-toggle.active .current-lang::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg);
    min-width: 120px;
    box-shadow: var(--hover-shadow);
    border-radius: 4px;
    z-index: 100;
    overflow: hidden;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-toggle.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    padding: 0.7rem 1rem;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(44, 122, 123, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(44, 122, 123, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(44, 122, 123, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.typewriter {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    position: relative;
}

.about-image {
    position: relative;
    text-align: center;
}

.image-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    transform: rotate(3deg);
    box-shadow: var(--hover-shadow);
    transition: var(--transition);
    border: 5px solid rgba(255, 255, 255, 0.8);
}

.image-container:hover {
    transform: rotate(0);
}

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

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

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.tech-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100px;
}

.tech-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: translateX(-100%);
    transition: all 0.35s ease;
}

.tech-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(44, 122, 123, 0.15);
}

.tech-logo:hover::before {
    transform: translateX(0);
}

.tech-logo i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.tech-logo:hover i {
    transform: scale(1.1);
}

.tech-logo span {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(44, 122, 123, 0.3);
}

/* ===== EXPERTISE SECTION ===== */
.expertise {
    background-color: var(--bg);
    position: relative;
}

.expertise-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.expertise-category {
    background-color: var(--light);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.expertise-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.expertise-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.expertise-category:nth-child(1) .expertise-header {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(13, 148, 136, 0.02) 100%);
}

.expertise-category:nth-child(2) .expertise-header {
    background: linear-gradient(135deg, rgba(64, 145, 108, 0.08) 0%, rgba(64, 145, 108, 0.02) 100%);
}

.expertise-category:nth-child(3) .expertise-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.expertise-category:nth-child(4) .expertise-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.expertise-category:nth-child(5) .expertise-header {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.08) 0%, rgba(217, 70, 239, 0.02) 100%);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.expertise-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s ease;
}

.expertise-category:hover .expertise-icon::before {
    transform: translateY(5px) scale(1.05);
    opacity: 0.7;
}

.expertise-category:nth-child(1) .expertise-icon {
    background: linear-gradient(135deg, var(--ai-color) 0%, rgba(13, 148, 136, 0.8) 100%);
}

.expertise-category:nth-child(2) .expertise-icon {
    background: linear-gradient(135deg, var(--business-color) 0%, rgba(64, 145, 108, 0.8) 100%);
}

.expertise-category:nth-child(3) .expertise-icon {
    background: linear-gradient(135deg, var(--design-color) 0%, rgba(245, 158, 11, 0.8) 100%);
}

.expertise-category:nth-child(4) .expertise-icon {
    background: linear-gradient(135deg, var(--web-color) 0%, rgba(59, 130, 246, 0.8) 100%);
}

.expertise-category:nth-child(5) .expertise-icon {
    background: linear-gradient(135deg, var(--nlp-color) 0%, rgba(217, 70, 239, 0.8) 100%);
}

.expertise-category h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.expertise-category h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.expertise-category:nth-child(1) h3::after {
    background-color: var(--ai-color);
}

.expertise-category:nth-child(2) h3::after {
    background-color: var(--business-color);
}

.expertise-category:nth-child(3) h3::after {
    background-color: var(--design-color);
}

.expertise-category:nth-child(4) h3::after {
    background-color: var(--web-color);
}

.expertise-category:nth-child(5) h3::after {
    background-color: var(--nlp-color);
}

.expertise-category:hover h3::after {
    width: 100%;
}

.expertise-summary {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.expertise-skills {
    padding: 1.5rem 2rem 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
    position: relative;
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
}

.skill-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.expertise-category:nth-child(1) .skill-progress {
    background: linear-gradient(to right, var(--ai-color), rgba(13, 148, 136, 0.7));
}

.expertise-category:nth-child(2) .skill-progress {
    background: linear-gradient(to right, var(--business-color), rgba(64, 145, 108, 0.7));
}

.expertise-category:nth-child(3) .skill-progress {
    background: linear-gradient(to right, var(--design-color), rgba(245, 158, 11, 0.7));
}

.expertise-category:nth-child(4) .skill-progress {
    background: linear-gradient(to right, var(--web-color), rgba(59, 130, 246, 0.7));
}

.expertise-category:nth-child(5) .skill-progress {
    background: linear-gradient(to right, var(--nlp-color), rgba(217, 70, 239, 0.7));
}

.skill-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0 4px 4px 0;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--light);
    position: relative;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    margin: 0.4rem;
    border: none;
    background-color: transparent;
    color: var(--light-text);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
    font-size: 0.85rem;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 80%;
}

.filter-btn.active[data-filter="all"],
.filter-btn[data-filter="all"]:hover {
    color: var(--primary);
}

.filter-btn.active[data-filter="ai"],
.filter-btn[data-filter="ai"]:hover {
    color: var(--ai-color);
}

.filter-btn.active[data-filter="ai"]::after,
.filter-btn[data-filter="ai"]:hover::after {
    background-color: var(--ai-color);
}

.filter-btn.active[data-filter="business"],
.filter-btn[data-filter="business"]:hover {
    color: var(--business-color);
}

.filter-btn.active[data-filter="business"]::after,
.filter-btn[data-filter="business"]:hover::after {
    background-color: var(--business-color);
}

.filter-btn.active[data-filter="design"],
.filter-btn[data-filter="design"]:hover {
    color: var(--design-color);
}

.filter-btn.active[data-filter="design"]::after,
.filter-btn[data-filter="design"]:hover::after {
    background-color: var(--design-color);
}

.filter-btn.active[data-filter="data"],
.filter-btn[data-filter="data"]:hover {
    color: var(--data-color);
}

.filter-btn.active[data-filter="data"]::after,
.filter-btn[data-filter="data"]:hover::after {
    background-color: var(--data-color);
}

.filter-btn.active[data-filter="nlp"],
.filter-btn[data-filter="nlp"]:hover {
    color: var(--nlp-color);
}

.filter-btn.active[data-filter="nlp"]::after,
.filter-btn[data-filter="nlp"]:hover::after {
    background-color: var(--nlp-color);
}

.filter-btn.active[data-filter="cv"],
.filter-btn[data-filter="cv"]:hover {
    color: var(--ai-color);
}

.filter-btn.active[data-filter="cv"]::after,
.filter-btn[data-filter="cv"]:hover::after {
    background-color: var(--ai-color);
}

.filter-btn.active[data-filter="digital-twin"],
.filter-btn[data-filter="digital-twin"]:hover {
    color: var(--data-color);
}

.filter-btn.active[data-filter="digital-twin"]::after,
.filter-btn[data-filter="digital-twin"]:hover::after {
    background-color: var(--data-color);
}

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

.project-card {
    background-color: var(--bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.project-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background-color: rgba(44, 122, 123, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.skill-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.skill-tag-ai {
    background-color: rgba(13, 148, 136, 0.15);
    color: var(--ai-color);
}

.skill-tag-business {
    background-color: rgba(64, 145, 108, 0.15);
    color: var(--business-color);
}

.skill-tag-design {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--design-color);
}

.skill-tag-data {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--data-color);
}

.skill-tag-nlp {
    background-color: rgba(217, 70, 239, 0.15);
    color: var(--nlp-color);
}

.project-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Project hover details */
.project-hover-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    padding: 1.5rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
}

.project-card.hover-enabled:hover .project-hover-details {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.5s; /* 500ms hover delay */
}

.project-card:not(:hover) .project-hover-details {
    transition-delay: 0s;
}

.hover-details-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.hover-details-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.hover-section {
    margin-bottom: 1rem;
}

.hover-section h4 {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hover-section h4 i {
    margin-right: 0.5rem;
}

.hover-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 0;
}

.hover-tech-stack {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hover-tech-item {
    padding: 0.3rem 0.7rem;
    background-color: rgba(44, 122, 123, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.back-to-project {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
    transition: var(--transition);
}

.back-to-project:hover {
    background-color: #236d6e;
    transform: rotate(90deg);
}

/* ===== WEB PROJECTS SECTION ===== */
.web-projects {
    background-color: var(--bg);
    position: relative;
}

.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.web-project-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.web-project-img {
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

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

.web-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.visit-btn {
    padding: 0.7rem 1.2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.web-project-card:hover .visit-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.visit-btn:hover {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.web-project-info {
    padding: 1.5rem;
}

.web-project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.web-project-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.web-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.web-project-tech span {
    padding: 0.25rem 0.7rem;
    background-color: rgba(44, 122, 123, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates {
    background-color: var(--light);
    position: relative;
    padding: 5rem 0;
}

.certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L55 30 30 55 5 30z' fill='%232c7a7b' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background-color: var(--bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.certificate-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(44, 122, 123, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.certificate-content h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.certificate-content p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.8rem;
}

.certificate-date {
    font-size: 0.8rem;
    color: var(--light-text);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(44, 122, 123, 0.1);
    border-radius: 50px;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background-color: var(--bg);
    position: relative;
    padding: 5rem 0;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L55 30 30 55 5 30z' fill='%232c7a7b' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.experience-journey {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 0;
}

.journey-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), rgba(44, 122, 123, 0.3));
    border-radius: 2px;
}

.experience-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 50px;
}

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

.experience-date {
    margin-bottom: 1rem;
}

.experience-date span {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(44, 122, 123, 0.25);
    position: relative;
}

.experience-content {
    background-color: var(--light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -30px;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.experience-content:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.experience-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(44, 122, 123, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.experience-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(5px);
}

.experience-details {
    flex: 1;
}

.experience-details h3 {
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
    color: var(--dark);
}

.experience-details h4 {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.experience-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.key-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.key-skills span {
    padding: 0.4rem 1rem;
    background-color: rgba(44, 122, 123, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.key-skills span:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-right: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(44, 122, 123, 0.2);
}

.contact-item h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--light-text);
    margin-bottom: 0;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form:hover {
    box-shadow: var(--hover-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group.focused::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.2);
}

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

/* Form status messages */
#form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    display: none;
}

#form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

#form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.8rem;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    max-width: 270px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

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

.footer .social-links {
    margin-top: 0;
}

.footer .social-links a {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.footer .social-links a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
/* Add a new accent button style for the Download CV button */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-accent i {
    margin-right: 0.5rem;
}

/* Improve hero buttons layout */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Fix any left bars issues by ensuring there are no unwanted elements */
body::before, 
body::after,
.container::before,
.container::after,
section::before,
section::after {
    display: none;
}

/* Remove any potential navigation or social bars on the side */
.side-nav,
.social-sidebar,
.side-bar {
    display: none;
}

/* Enhance dark mode for accent button */
.dark-mode .btn-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.dark-mode .btn-accent:hover {
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Adjust navbar mobile view to prevent any side bars */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        left: 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}


/* ===== ANIMATIONS ===== */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Language notification */
.language-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.language-notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

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

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

/* ===== DARK MODE STYLES ===== */
.dark-mode {
    --primary: #4fd1c5;
    --secondary: #68d391;
    --dark: #f7fafc;
    --light: #121a24;
    --text: #e2e8f0;
    --light-text: #a0aec0;
    --bg: #0f172a;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Dark mode footer specific */
    --footer-bg: #070b13;
    --footer-text: #e2e8f0;
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* Navbar in dark mode */
.dark-mode .navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .navbar.scrolled {
    background-color: var(--bg);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .bar {
    background-color: var(--dark);
}

/* Dark mode text and sections */
.dark-mode .section-title,
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: var(--dark);
}

.dark-mode p,
.dark-mode .skill-name {
    color: var(--text);
}

.dark-mode .light-text,
.dark-mode .skill-percentage,
.dark-mode .project-card p,
.dark-mode .experience-details p,
.dark-mode .certificate-content p {
    color: var(--light-text);
}

/* Dark mode cards and backgrounds */
.dark-mode .hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(44, 122, 123, 0.1) 100%);
}

.dark-mode .project-card,
.dark-mode .web-project-card,
.dark-mode .expertise-category,
.dark-mode .certificate-card,
.dark-mode .experience-content,
.dark-mode .contact-form,
.dark-mode .tech-logo,
.dark-mode .stat-item {
    background-color: var(--bg);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .project-hover-details,
.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: var(--light);
    color: var(--text);
}

.dark-mode .project-hover-details {
    background-color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .hover-details-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .hover-tech-stack {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .hover-section p {
    color: var(--light-text);
}

/* Dark mode dropdown */
.dark-mode .dropdown-content {
    background-color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .dropdown-content a {
    color: var(--text);
}

.dark-mode .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode footer */
.dark-mode .footer {
    background-color: #070b13;
}

/* Dark mode button hover */
.dark-mode .btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

/* Dark mode skill bar */
.dark-mode .skill-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .expertise-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .web-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .experience-content {
        flex-direction: column;
    }
    
    .experience-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .journey-line {
        left: 10px;
    }
    
    .experience-item {
        padding-left: 30px;
    }
    
    .experience-content::before {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .theme-switch {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .certificate-card {
        flex-direction: column;
    }
    
    .certificate-icon {
        margin-bottom: 1rem;
    }
    
    .project-card.hover-enabled:hover .project-hover-details {
        transition-delay: 0s;
    }
    
    .back-to-project {
        display: flex;
    }
    
    .project-card.details-visible .project-hover-details {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
    
    .footer .social-links {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .expertise-header,
    .expertise-skills {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}