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

/* ===== Professional Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: preloader-spin 0.8s linear infinite;
    margin: 0 auto 1.2rem;
}

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

.preloader-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

:root {
    --primary-color: #4a90e2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gold-gradient: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --white: #ffffff;
    --hero-cover: url('assets/md-sanwar-hossain-software-engineer-java-springboot-kubernetes-aws-rabitmq.png');
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-light: #1a1a2e;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --white: #0f0f23;
    --secondary-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(15, 15, 35, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] body {
    background: #0f0f23;
}

[data-theme="dark"] .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-menu {
    background: #0f0f23;
}

[data-theme="dark"] .hamburger .bar {
    background: var(--text-color);
}

[data-theme="dark"] .expertise-list {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .info-item {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-tag {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-category:hover {
    background-image: linear-gradient(#1a1a2e, #1a1a2e),
                      linear-gradient(135deg, #667eea, #764ba2, #ffd700);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

[data-theme="dark"] .timeline-content {
    background: #1a1a2e;
}

[data-theme="dark"] .role {
    background: #0f0f23;
}

[data-theme="dark"] .tech-tags span {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}

[data-theme="dark"] .project-tags span {
    background: #1a1a2e;
    border-color: rgba(74, 144, 226, 0.25);
}

[data-theme="dark"] .project-note {
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-card:hover {
    background-image: linear-gradient(#0f0f23, #0f0f23),
                      linear-gradient(135deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

[data-theme="dark"] .contact-item {
    background: #1a1a2e;
}

[data-theme="dark"] .contact-form {
    background: #1a1a2e;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #0f0f23;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .graduation-message {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .edu-tags span {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .featured-card {
    background: #1a1a2e;
}

[data-theme="dark"] .featured-type {
    background: rgba(74, 144, 226, 0.15);
}

[data-theme="dark"] .featured-card.article .featured-type {
    background: rgba(118, 75, 162, 0.15);
}

[data-theme="dark"] .featured-card.group-post .featured-type {
    background: rgba(46, 125, 50, 0.15);
}

[data-theme="dark"] .linkedin-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .modal-content {
    background: #1a1a2e;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-close {
    background: #0f0f23;
    color: var(--text-light);
}

[data-theme="dark"] .modal-option {
    background: #0f0f23;
}

[data-theme="dark"] .about::before {
    background:
        radial-gradient(circle at 10% 20%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] .about-image img {
    border-color: #1a1a2e;
}

[data-theme="dark"] .education-card {
    background: #1a1a2e;
}

[data-theme="dark"] .grade strong {
    color: #4cd964;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@supports not (background-clip: text) {
    .section-title {
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--secondary-color);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

[data-theme="dark"] .section-title {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #a78bfa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

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

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 2px;
}

/* Section Header with Action Button */
.section-header-with-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 50px;
    position: relative;
}

.section-header-with-action .section-title {
    margin-bottom: 0;
}

.add-content-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: var(--transition);
    position: relative;
}

.add-content-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.add-content-btn:active {
    transform: scale(0.95);
}

/* Add Content Modal */
.add-content-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.add-content-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-color);
    color: var(--white);
}

.modal-search {
    margin-bottom: 1.5rem;
}

.modal-search input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid transparent;
}

.modal-option:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.modal-option i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-option span {
    font-weight: 500;
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: scaleY(0.92);
    transform-origin: top;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 50px;
    transition: var(--transition);
    filter: brightness(1) contrast(1.05);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link.active {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Nav Right Container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: rotate(30deg);
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1a1a2e;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%), var(--hero-cover);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(248, 249, 250, 0.15), transparent);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Accessibility: Disable parallax for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }
    .hero-content {
        animation: none;
    }
    .hero-profile-img {
        animation: none;
    }
}

/* Desktop parallax effect (disabled on touch devices where it causes issues) */
@media (hover: hover) and (min-width: 769px) {
    .hero {
        background-attachment: fixed;
    }
}

/* Mobile hero background responsive adjustments */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: center top;
        min-height: auto;
        padding: 80px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: center center;
        padding: 70px 0 50px;
    }
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-profile {
    margin-bottom: 2rem;
}

.hero-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.highlight {
    color: #ffd700;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.4);
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

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

.btn-resume {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a[aria-label="LinkedIn"] {
    background: #0077b5;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-links a[aria-label="LinkedIn"]:hover {
    background: #005885;
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Hero Stats Section */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: var(--transition);
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.hero-stat:hover .hero-stat-number {
    transform: scale(1.15);
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

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

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color, #764ba2));
    opacity: 0.15;
    z-index: 0;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 0.25;
    transform: scale(1.03);
}

.about-image img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 6px rgba(74, 144, 226, 0.08);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(74, 144, 226, 0.15);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '👋';
    margin-left: 0.5rem;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    padding: 0.8rem 1rem;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
}

/* Skills Section */
.skills {
    background: var(--white);
    position: relative;
}

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

.skill-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(1);
    transform-origin: left;
    transition: height 0.4s ease;
}

/* Unique accent colors per skill category */
.skill-category[data-accent="frontend"]::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.skill-category[data-accent="backend"]::before {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.skill-category[data-accent="devops"]::before {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.skill-category[data-accent="tools"]::before {
    background: linear-gradient(135deg, #f5af19, #f12711);
}

.skill-category[data-accent="architecture"]::before {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.skill-category[data-accent="ai"]::before {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.skill-category[data-accent="practices"]::before {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

.skill-category[data-accent="frontend"] h3 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.skill-category[data-accent="backend"] h3 i {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.skill-category[data-accent="devops"] h3 i {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.skill-category[data-accent="tools"] h3 i {
    background: linear-gradient(135deg, #f5af19, #f12711);
}

.skill-category[data-accent="architecture"] h3 i {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.skill-category[data-accent="ai"] h3 i {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.skill-category[data-accent="practices"] h3 i {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

.skill-category:hover::before {
    height: 5px;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
    background-image: linear-gradient(var(--bg-light), var(--bg-light)),
                      linear-gradient(135deg, #667eea, #764ba2, #ffd700);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--white);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.88rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    font-weight: 500;
    cursor: default;
    position: relative;
}

.skill-tag:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Professional Skill Progress Bars */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.skill-bar-item {
    width: 100%;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.skill-bar-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.skill-bar-percent {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
}

.skill-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .skill-bar-track {
    background: rgba(255, 255, 255, 0.1);
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: var(--primary-gradient);
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: skillBarShimmer 2s ease-in-out infinite;
}

@keyframes skillBarShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Accent-specific skill bar fills */
.skill-category[data-accent="frontend"] .skill-bar-fill {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.skill-category[data-accent="frontend"] .skill-bar-percent {
    color: #667eea;
}

.skill-category[data-accent="backend"] .skill-bar-fill {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
.skill-category[data-accent="backend"] .skill-bar-percent {
    color: #f5576c;
}

.skill-category[data-accent="architecture"] .skill-bar-fill {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}
.skill-category[data-accent="architecture"] .skill-bar-percent {
    color: #a18cd1;
}

.skill-category[data-accent="devops"] .skill-bar-fill {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}
.skill-category[data-accent="devops"] .skill-bar-percent {
    color: #43e97b;
}

.skill-category[data-accent="ai"] .skill-bar-fill {
    background: linear-gradient(135deg, #fa709a, #fee140);
}
.skill-category[data-accent="ai"] .skill-bar-percent {
    color: #fa709a;
}

.skill-category[data-accent="practices"] .skill-bar-fill {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}
.skill-category[data-accent="practices"] .skill-bar-percent {
    color: #6ea8fe;
}

.skill-category[data-accent="tools"] .skill-bar-fill {
    background: linear-gradient(135deg, #f5af19, #f12711);
}
.skill-category[data-accent="tools"] .skill-bar-percent {
    color: #f5af19;
}

/* Accent-specific skill tag hover colors */
.skill-category[data-accent="frontend"] .skill-tag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.skill-category[data-accent="backend"] .skill-tag:hover {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.skill-category[data-accent="devops"] .skill-tag:hover {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
}

.skill-category[data-accent="tools"] .skill-tag:hover {
    background: linear-gradient(135deg, #f5af19, #f12711);
    box-shadow: 0 4px 12px rgba(245, 175, 25, 0.3);
}

/* Projects Section */
.projects {
    background: var(--bg-light);
    position: relative;
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track > * {
    --slider-item-gap: 1rem;
    flex: 0 0 calc(33.333% - var(--slider-item-gap) * 2 * 2 / 3);
    margin: 0 var(--slider-item-gap);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--secondary-color);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.slider-dot:hover {
    background: var(--primary-color);
}

@media (prefers-reduced-motion: reduce) {
    .slider-track {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .slider-track > * {
        flex: 0 0 calc(50% - var(--slider-item-gap) * 2 * 1 / 2);
    }
}

@media (max-width: 768px) {
    .slider {
        padding: 0 40px;
    }

    .slider-track > * {
        flex: 0 0 calc(100% - var(--slider-item-gap) * 2);
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .slider {
        padding: 0 32px;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

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

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
    background-image: linear-gradient(var(--white), var(--white)),
                      linear-gradient(135deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.project-image {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-enterprise {
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
}

.badge-academic {
    background: rgba(67, 233, 123, 0.9);
    color: #1a1a2e;
}

.badge-research {
    background: rgba(245, 175, 25, 0.9);
    color: #1a1a2e;
}

.badge-opensource {
    background: rgba(240, 147, 251, 0.9);
    color: #fff;
}

.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
    transition: height 0.4s ease, background 0.4s ease;
}

.project-card:hover .project-image::after {
    height: 100%;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.2), transparent);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description.expanded {
    display: block;
    -webkit-line-clamp: none;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.see-more-btn:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

.project-tags span {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(74, 144, 226, 0.15);
    transition: var(--transition);
}

.project-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid var(--primary-color);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.project-link i {
    margin-right: 0;
    font-size: 0.85rem;
}

.project-note {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    font-style: italic;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Contact Section */
.contact {
    background: var(--white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 90% 10%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

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

.contact-info h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.contact-info h3::after {
    content: '💼';
    margin-left: 0.5rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.contact-form .btn {
    cursor: pointer;
    border: none;
    font-size: 1rem;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    opacity: 0.9;
}

.footer-content p a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-content p a:hover {
    opacity: 1;
}

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

.footer-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* About Section Enhancements */
.expertise-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.8rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.expertise-list::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.expertise-list h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expertise-list h4 i {
    color: var(--primary-color);
}

.expertise-list ul {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    padding: 0.6rem 0;
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.expertise-list li i {
    color: #28a745;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Experience Section */
.experience {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

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

.timeline-icon {
    position: absolute;
    left: 10px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.duration {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.location i {
    color: var(--accent-color);
    margin-right: 0.3rem;
}

.role {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 3px solid var(--primary-color);
}

.role h4 {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.badge {
    background: #28a745;
    color: var(--white);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.badge.intern {
    background: #17a2b8;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.intro {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-style: italic;
}

.achievements {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-light);
    line-height: 1.6;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.tech-stack h5 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

.tech-tags span {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

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

.education-card {
    display: flex;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2, #ffd700);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.education-content {
    flex: 1;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.education-header h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.degree-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

.education-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.institution {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.education-content .period,
.education-content .grade {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.education-content .period i,
.education-content .grade i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.grade strong {
    color: #28a745;
    font-size: 1.1rem;
}

.graduation-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #28a745;
}

.graduation-message p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.graduation-message p:last-child {
    margin-bottom: 0;
}

.skills-gained h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-tags span {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.edu-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Featured Section */
.featured {
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.featured-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077b5, #00a0dc);
}

.featured-card.article::before {
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
}

.featured-card.group-post::before {
    background: linear-gradient(90deg, #2e7d32, #43a047);
}

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

.featured-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.featured-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-card.article .featured-icon {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
}

.featured-type {
    background: #e3f2fd;
    color: #0077b5;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.featured-card.article .featured-type {
    background: #ede7f6;
    color: #764ba2;
}

.featured-card.group-post .featured-type {
    background: #e8f5e9;
    color: #2e7d32;
}

.featured-content h3 {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.featured-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.featured-card.article .featured-link {
    color: var(--primary-color);
}

.featured-card.group-post .featured-link {
    color: #2e7d32;
}

.featured-link:hover {
    color: #005885;
    transform: translateX(5px);
}

.featured-link i {
    transition: var(--transition);
}

.featured-link:hover i {
    transform: translateX(3px);
}

.linkedin-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.linkedin-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-linkedin:hover {
    background: linear-gradient(135deg, #005885, #0077b5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .about-image img {
        max-width: 240px;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Experience responsive */
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 55px;
    }

    .timeline-icon {
        left: -3px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

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

    .timeline-header h3 {
        font-size: 1.2rem;
    }

    /* Education responsive */
    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .education-icon {
        margin: 0 auto;
    }

    .education-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .graduation-message {
        text-align: left;
    }

    /* Featured responsive */
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-profile-img {
        width: 120px;
        height: 120px;
    }
}

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

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-profile-img {
        width: 100px;
        height: 100px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat {
        min-width: 80px;
        padding: 0.6rem 0.8rem;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    z-index: 10001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-text h3 i {
    color: #ffd700;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: #74b9ff;
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}
