:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --accent-color: #fd7e14;
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-bg: #f8fafc;
    --card-bg: #ffffff;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --sidebar-bg: #1e293b;
    --card-bg: #1e293b;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

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

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

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

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

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

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

/* Mobile Top Navigation */
.mobile-top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

[data-theme="dark"] .mobile-top-nav {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    height: 70px;
}

.mobile-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.mobile-hamburger-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.mobile-hamburger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-hamburger-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.mobile-hamburger-btn:hover::before {
    left: 100%;
}

.mobile-hamburger-btn .hamburger-line {
    width: 26px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.mobile-hamburger-btn:hover .hamburger-line {
    background: white;
}

.mobile-hamburger-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(180deg);
}

.mobile-hamburger-btn.active .hamburger-line {
    background: white;
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sidebar-bg);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    border-radius: 0 0 20px 20px;
}

[data-theme="dark"] .mobile-dropdown-menu {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.mobile-dropdown-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-dropdown-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 30px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.mobile-dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-dropdown-link:hover::before,
.mobile-dropdown-link.active::before {
    transform: scaleY(1);
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link.active {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(253, 126, 20, 0.05));
    color: var(--primary-color);
    padding-left: 35px;
}

.mobile-dropdown-link i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown-link:hover i,
.mobile-dropdown-link.active i {
    transform: scale(1.1);
}

.mobile-dropdown-footer {
    padding: 25px 30px;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--card-bg), var(--sidebar-bg));
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 0 0;
}

.mobile-theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-theme-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mobile-theme-btn:hover {
    transform: scale(1.1) rotate(360deg);
    border-color: var(--primary-color);
}

.mobile-theme-btn:hover::before {
    opacity: 1;
}

.mobile-theme-btn:hover i {
    color: white;
    transform: scale(1.2);
}

.mobile-social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-social-link {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0);
}

.mobile-social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

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

.mobile-social-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* Mobile Hamburger Button */
.mobile-hamburger {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.hamburger-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

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

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 1px;
}

.hamburger-btn:hover .hamburger-line {
    background: white;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    background: var(--bg-color);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.name-highlight {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

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

/* Main Content Area - Updated positioning */
.main-content {
    margin-left: 300px;
    flex: 1;
    padding: 40px;
    max-width: calc(100% - 300px);
    overflow-y: auto;
    transition: var(--transition);
}

.content-section {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

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

/* Profile Section (Home) */
.profile-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 0;
}

.profile-image {
    margin-bottom: 25px;
}

.image-placeholder {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 4rem;
    color: white;
    border: 6px solid transparent;
    background-clip: padding-box;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, 
        #ff6b35, 
        #f7931e, 
        #ffd700, 
        #ff8c00, 
        #ff4500, 
        #ff6347, 
        #ff8c00, 
        #ffd700, 
        #f7931e, 
        #ff6b35
    );
    border-radius: 50%;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
    background-size: 200% 200%;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.3), 
        rgba(247, 147, 30, 0.3), 
        rgba(255, 215, 0, 0.3), 
        rgba(255, 140, 0, 0.3), 
        rgba(255, 69, 0, 0.3)
    );
    border-radius: 50%;
    z-index: -2;
    animation: pulse 2s ease-in-out infinite alternate;
    filter: blur(8px);
}

.image-placeholder:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-heavy), 0 0 30px rgba(255, 107, 53, 0.4);
}

.image-placeholder:hover::before {
    animation-duration: 1.5s;
}

.image-placeholder:hover::after {
    animation-duration: 1s;
    opacity: 1;
}

@keyframes rotateBorder {
    0% { 
        transform: rotate(0deg);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% { 
        transform: rotate(360deg);
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% { 
        opacity: 0.4;
        transform: scale(0.95);
    }
    100% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.title {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

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

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #c82333, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 40px 0 20px 0;
}

/* Code Window */
.code-window {
    background: #1a1a1a;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    font-family: var(--font-mono);
    max-width: 400px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

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

.window-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.window-title {
    color: #888;
    font-size: 0.9rem;
    margin-left: auto;
}

.code-content {
    padding: 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 8px;
}

.indent {
    padding-left: 20px;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #8be9fd; }
.code-operator { color: #ff79c6; }
.code-property { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-bracket { color: #f8f8f2; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(45deg);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-color);
}

.about-content {
    max-width: 1000px;
}

.about-intro {
    margin-bottom: 40px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

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

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

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

.education-section {
    margin-bottom: 50px;
}

.education-grid {
    display: grid;
    gap: 25px;
}

.education-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

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

.education-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.education-content .institution {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 3px;
}

.education-content .year {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.education-content .description {
    color: var(--text-muted);
    line-height: 1.6;
}

.skills-section {
    margin-bottom: 30px;
}

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

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

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.skill-category h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.skill-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.skill-tag:hover::before {
    left: 100%;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-color);
}

.services-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.service-item {
    padding: 35px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-muted);
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--bg-color);
}

.portfolio-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

.portfolio-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.portfolio-container {
    display: flex;
    min-height: 100vh;
}

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

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.portfolio-image {
    height: 160px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--border-color), var(--sidebar-bg));
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-actions {
    display: flex;
    gap: 15px;
}

.portfolio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.portfolio-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-details {
    margin-bottom: 12px;
    padding: 10px;
    background: var(--sidebar-bg);
    border-radius: 6px;
}

.detail-item {
    color: var(--text-muted);
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.detail-item strong {
    color: var(--text-color);
}

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

.tech-stack span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Blog Section */
.blog {
    padding: 100px 0;
    background: var(--bg-color);
}

.blog-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

.blog-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.filter-btn {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: left 0.3s ease;
    z-index: 0;
}

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

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.blog-image {
    height: 200px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--border-color), var(--sidebar-bg));
    transition: var(--transition);
}

.blog-card:hover .blog-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.featured-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-date {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-category {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category.web-development {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.blog-category.design {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.blog-category.tutorial {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.blog-category.trends {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.blog-read-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: var(--sidebar-bg);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.blog-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.blog-link:hover::before {
    width: calc(100% - 20px);
}

.blog-link i {
    transition: all 0.3s ease;
}

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

/* Blog Page Specific Styles */
.blog-page {
    padding: 30px 40px 40px 40px;
    min-height: 100vh;
    display: block;
}

.blog-header {
    margin-bottom: 60px;
}

.blog-hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(253, 126, 20, 0.03));
    border-radius: 25px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 126, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.blog-hero > * {
    position: relative;
    z-index: 1;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.1;
}

.blog-title-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.blog-title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0.3;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-stat {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    min-width: 120px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.blog-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

.blog-filters-section {
    margin-bottom: 50px;
}

.blog-filters-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
}

.blog-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: left 0.3s ease;
    z-index: 0;
}

.filter-btn i,
.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.featured-article-section {
    margin-bottom: 60px;
}

.featured-article-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy), 0 20px 40px rgba(220, 53, 69, 0.1);
}

.featured-article-image {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--border-color), var(--sidebar-bg));
    transition: var(--transition);
}

.featured-article:hover .featured-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-article-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}

.featured-date,
.featured-read-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-category {
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-article-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.featured-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.featured-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
}

.featured-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.featured-link:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

.featured-link:hover::before {
    width: calc(100% - 30px);
}

.featured-link i {
    transition: transform 0.3s ease;
}

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

.blog-main-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--border-color), var(--sidebar-bg));
    transition: var(--transition);
}

.blog-card:hover .blog-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-category-badge.web-development {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

.blog-category-badge.design {
    background: rgba(155, 89, 182, 0.9);
    color: white;
}

.blog-category-badge.tutorial {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.blog-category-badge.trends {
    background: rgba(241, 196, 15, 0.9);
    color: white;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.blog-date,
.blog-read-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: var(--sidebar-bg);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.blog-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.blog-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.blog-link:hover::before {
    width: calc(100% - 20px);
}

.blog-link i {
    transition: transform 0.3s ease;
}

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

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.page-number:hover,
.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: bold;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto 20px;
}

.newsletter-input-group {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    border-radius: 50px;
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-color);
}

.contact-intro {
    max-width: 700px;
    margin-bottom: 40px;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

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

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-details span {
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 60px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.95rem;
        padding: 10px 14px;
    }

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


/* Blog Post Page Styles */
.blog-post-page {
    padding: 40px;
    min-height: 100vh;
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb i {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.breadcrumb span {
    color: var(--text-color);
    font-weight: 500;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category.web-development {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.post-date,
.post-read-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-excerpt {
    margin-bottom: 30px;
}

.post-excerpt p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

.post-hero-image {
    height: 300px;
    background: var(--border-color);
    border-radius: 15px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--border-color), var(--sidebar-bg));
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.blog-post-content {
    line-height: 1.8;
}

.post-body {
    margin-bottom: 50px;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 40px 0 20px 0;
    position: relative;
}

.post-body h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 30px 0 15px 0;
}

.post-body p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.post-body li strong {
    color: var(--text-color);
}

.post-body blockquote {
    background: var(--sidebar-bg);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-color);
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
}

.code-example {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-light);
}

.code-example h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.code-example pre {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-example code {
    font-family: var(--font-mono);
}

.post-conclusion {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(253, 126, 20, 0.03));
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
}

.post-conclusion h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.author-bio {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social-link {
    width: 35px;
    height: 35px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.author-social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.post-share {
    text-align: center;
    margin-bottom: 50px;
}

.post-share h4 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.copy {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.related-posts {
    margin-bottom: 50px;
}

.related-posts h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.related-image {
    height: 120px;
    position: relative;
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--border-color), var(--sidebar-bg));
}

.related-content {
    padding: 20px;
}

.related-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 8px 0;
    line-height: 1.3;
}

.related-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-post {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.nav-post:hover {
    background: var(--sidebar-bg);
    border-color: var(--primary-color);
}

.nav-post.next-post {
    justify-content: flex-end;
    text-align: right;
}

.nav-post i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nav-post-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Mobile Responsive Styles for Blog Post */
@media (max-width: 768px) {
    .blog-post-page {
        padding: 15px 15px 80px 15px;
    }

    .post-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .post-excerpt p {
        font-size: 1rem;
    }

    .post-hero-image {
        height: 200px;
        margin-bottom: 20px;
    }

    .hero-placeholder {
        font-size: 3rem;
    }

    .post-meta {
        gap: 15px;
        margin-bottom: 15px;
    }

    .post-body h2 {
        font-size: 1.5rem;
        margin: 30px 0 15px 0;
    }

    .post-body h2::before {
        left: -15px;
        height: 25px;
    }

    .post-body h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px 0;
    }

    .post-body p,
    .post-body li {
        font-size: 1rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-avatar {
        align-self: center;
    }

    .author-social {
        justify-content: center;
    }

    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-post {
        padding: 15px;
    }

    .nav-post.next-post {
        justify-content: flex-start;
        text-align: left;
    }

    .code-example {
        padding: 15px;
        margin: 20px 0;
    }

    .code-example pre {
        padding: 15px;
        font-size: 0.8rem;
        overflow-x: auto;
    }

    .post-conclusion {
        padding: 20px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .blog-post-page {
        padding: 10px 10px 80px 10px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        gap: 8px;
    }

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

    .share-btn {
        width: 200px;
        justify-content: center;
    }
}

/* Right Sidebar */
.sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 30px;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: block;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    padding: 10px 0;
}

.logo span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.theme-toggle {
    margin-bottom: 20px;
    text-align: center;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto;
}

.theme-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Mobile bottom navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 10px 0 15px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 20px 20px 0 0;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 8px;
    border-radius: 16px;
    min-width: 60px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(253, 126, 20, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0);
    border-radius: 16px;
}

.mobile-nav-link.active::before,
.mobile-nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.mobile-nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.mobile-nav-link i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mobile-nav-link.active i,
.mobile-nav-link:hover i {
    transform: scale(1.1);
}

.mobile-nav-link span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.4);
}

/* Footer */
.footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    color: var(--text-muted);
}

/* Mobile overlay for hamburger menu */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile navigations */
    .mobile-top-nav {
        display: block;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Hide desktop sidebar */
    .sidebar {
        display: none;
    }
    
    /* Adjust main content for mobile */
    .main-content {
        margin-left: 0;
        padding-top: 80px;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 80px;
    }

    /* Blog page specific mobile styles */
    .blog-page {
        padding: 15px 15px 80px 15px;
    }

    .blog-header {
        margin-bottom: 40px;
    }

    .blog-hero {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .blog-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .blog-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .blog-stats {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }

    .blog-stat {
        padding: 15px 10px;
        min-width: 100px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .blog-filters-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .blog-filters {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .featured-article-section h3,
    .blog-main-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .featured-article {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-article-image {
        min-height: 200px;
    }

    .featured-placeholder {
        font-size: 3rem;
    }

    .featured-article-content {
        padding: 25px 20px;
    }

    .featured-article-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .featured-article-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .featured-meta {
        gap: 10px;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .featured-tags {
        gap: 8px;
        margin-bottom: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .blog-card {
        border-radius: 15px;
    }

    .blog-image {
        height: 180px;
    }

    .blog-placeholder {
        font-size: 2.5rem;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .blog-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .blog-meta {
        gap: 15px;
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .blog-tags {
        gap: 6px;
        margin-bottom: 15px;
    }

    .tag {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .newsletter-section {
        padding: 40px 20px;
        margin-bottom: 30px;
        border-radius: 20px;
    }

    .newsletter-section h3 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .newsletter-section p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 20px;
    }

    .newsletter-input-group input {
        padding: 15px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .newsletter-btn {
        padding: 15px 25px;
        border-radius: 15px;
        justify-content: center;
    }

    .blog-pagination {
        gap: 10px;
        margin-top: 30px;
    }

    .pagination-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .pagination-numbers {
        gap: 8px;
    }

    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* ...existing mobile styles... */
}

@media (max-width: 480px) {
    .blog-page {
        padding: 10px 10px 80px 10px;
    }

    .blog-hero {
        padding: 30px 15px;
    }

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

    .blog-subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
    }

    .blog-stats {
        gap: 15px;
    }

    .blog-stat {
        padding: 12px 8px;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

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

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .featured-article-content {
        padding: 20px 15px;
    }

    .blog-content {
        padding: 15px;
    }

    .newsletter-section {
        padding: 30px 15px;
    }

    .newsletter-section h3 {
        font-size: 1.5rem;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .page-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* ...existing mobile styles... */
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .social-link,
    .theme-btn,
    .portfolio-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile readability */
    .content-section {
        padding: 20px 0;
    }
    
    /* Improved mobile typography */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Better mobile form styling */
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
}

/* Animation delays for staggered effects */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling enhancements */
@media (prefers-reduced-motion: no-preference) {
    .profile-section {
        animation: slideInUp 1s ease-out;
    }
}

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

/* Dark mode transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}
