@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #2563eb;
    --primary-light: #2563eb;
    --secondary-color: #2563eb;
    --accent-color: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: #2563eb;
    --gradient-secondary: #2563eb;
}

[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;
}

[data-theme="dark"] .logo-text,
[data-theme="dark"] .brand-name {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .expertise {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

[data-theme="dark"] .expertise::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23475569" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat !important;
    opacity: 0.2 !important;
}

[data-theme="dark"] .footer {
    background: #000;
}

[data-theme="dark"] .expertise-card {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .project-card {
    background: var(--bg-secondary) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .card-content h3,
[data-theme="dark"] .project-content h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .timeline-content {
    background: var(--bg-secondary) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .skill-card {
    background: var(--bg-secondary) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .section-tag {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .hero-badge {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .tech-item {
    background: var(--bg-tertiary) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .tech-tag {
    background: var(--bg-tertiary) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .badge-type {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .social-icon {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .highlight {
    background: rgba(30, 41, 59, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .floating-tech {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .action-btn {
    background: var(--bg-secondary) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .action-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

[data-theme="dark"] .stat-number {
    color: #60a5fa !important;
}

[data-theme="dark"] .project-stats {
    background: var(--bg-tertiary) !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.8) !important;
}

[data-theme="dark"] .section-description,
[data-theme="dark"] .cta-text p {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .hero-description {
    color: #ffffff !important;
}

[data-theme="dark"] .title-greeting,
[data-theme="dark"] .title-role {
    color: #cbd5e1 !important;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
    font-weight: 400;
}

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

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body[data-page="about"] .header:not(.scrolled) {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

body[data-page="article"] .header:not(.scrolled) {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: none;
}

body[data-page="article"] .header:not(.scrolled) .logo-text,
body[data-page="article"] .header:not(.scrolled) .nav-link,
body[data-page="article"] .header:not(.scrolled) .work-btn {
    color: #111827;
}

body[data-page="article"] .header:not(.scrolled) .theme-btn {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
    position: relative;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-text {
    color: #2563eb;
    transform: translateY(-1px);
}

body[data-page="about"] .header:not(.scrolled) .logo-text,
body[data-page="blog"] .header:not(.scrolled) .logo-text,
body[data-page="contact"] .header:not(.scrolled) .logo-text,
body[data-page="article"] .header:not(.scrolled) .logo-text {
    color: white;
}

body[data-page="about"] .header:not(.scrolled) .nav-logo:hover .logo-text,
body[data-page="blog"] .header:not(.scrolled) .nav-logo:hover .logo-text,
body[data-page="contact"] .header:not(.scrolled) .nav-logo:hover .logo-text {
    color: rgba(255, 255, 255, 0.8);
}

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

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--accent-color);
    color: white;
}

.work-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    width: 100%;
    font-family: inherit;
}

.work-btn:hover {
    color: var(--primary-color);
}

.work-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

@media (min-width: 769px) {
    .work-btn {
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .work-btn {
        justify-content: center;
        pointer-events: auto;
    }
    
    .work-btn.active {
        color: var(--primary-color);
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .nav-dropdown .nav-link {
        justify-content: center;
    }
    
    .nav-dropdown .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        width: 100%;
        min-width: auto;
    }
    
    .nav-dropdown .dropdown-menu.show {
        display: block;
    }
    
    .nav-dropdown .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0;
    }
    
    .nav-dropdown .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown .dropdown-menu a:hover {
        background: none;
        color: var(--primary-color);
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    width: 100%;
    display: block;
}

body[data-page="about"] .header:not(.scrolled) .nav-link,
body[data-page="blog"] .header:not(.scrolled) .nav-link,
body[data-page="contact"] .header:not(.scrolled) .nav-link,
body[data-page="article"] .header:not(.scrolled) .nav-link {
    color: white;
}

body[data-page="about"] .header:not(.scrolled) .work-btn,
body[data-page="blog"] .header:not(.scrolled) .work-btn,
body[data-page="contact"] .header:not(.scrolled) .work-btn,
body[data-page="article"] .header:not(.scrolled) .work-btn {
    color: white;
}

body[data-page="about"] .header:not(.scrolled) .theme-btn,
body[data-page="blog"] .header:not(.scrolled) .theme-btn,
body[data-page="contact"] .header:not(.scrolled) .theme-btn,
body[data-page="article"] .header:not(.scrolled) .theme-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.header.scrolled .logo-text {
    color: #2563eb;
}

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

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

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

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-dropdown {
    position: relative;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.theme-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.theme-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    background: var(--bg-primary);
}

.theme-option:last-child {
    border-bottom: none;
}

.theme-option:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.theme-option.active {
    background: var(--primary-color);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: var(--bg-tertiary);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.btn-primary .btn-shine {
    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;
}

.btn-primary:hover .btn-shine {
    left: 100%;
}

.btn-secondary {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
    padding: 1rem 2rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    background: #ffffff;
}

.hero-content {
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

.hero-visual {
    opacity: 0;
    animation: slideInRight 1s ease-out 0.5s forwards;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-grid {
    display: none;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 80%; left: 40%; animation-delay: 4s; }
.particle:nth-child(4) { top: 40%; left: 70%; animation-delay: 1s; }
.particle:nth-child(5) { top: 10%; left: 90%; animation-delay: 3s; }

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    min-height: calc(100vh - 5rem);
}

.hero-content-center {
    text-align: left;
    width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

.title-greeting {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.title-name {
    display: block;
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.title-role {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.role-text {
    display: block;
    margin-bottom: 0.5rem;
}

.typing-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-text {
    color: var(--primary-color);
    min-width: 200px;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
    font-weight: 400;
}



.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

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

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.social-icon.github:hover { background: #333; color: white; border-color: #333; }
.social-icon.linkedin:hover { background: #0077b5; color: white; border-color: #0077b5; }
.social-icon.twitter:hover { background: #1da1f2; color: white; border-color: #1da1f2; }
.social-icon.dribbble:hover { background: #ea4c89; color: white; border-color: #ea4c89; }
.social-icon.email:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.social-icon.figma:hover { background: #f24e1e; color: white; border-color: #f24e1e; }

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
}

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

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

.image-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-tech {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.tech-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-2 {
    top: 20%;
    right: 5%;
    animation-delay: 1.5s;
}

.tech-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
}

.tech-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 4.5s;
}

.tech-5 {
    top: 70%;
    left: 20%;
    animation-delay: 2.5s;
}

.tech-6 {
    top: 50%;
    right: 25%;
    animation-delay: 3.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .section-header {
        text-align: center;
        padding: 0 1rem;
    }
}

.section-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-description {
        font-size: 1rem;
        max-width: 100%;
        text-align: left;
        margin: 0;
    }
}

/* Expertise Section */
.expertise {
    padding: 4rem 0 6rem;
    background: #ffffff;
    position: relative;
}

@media (max-width: 768px) {
    .expertise {
        padding: 3rem 0 4rem;
    }
}

.expertise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    z-index: 1;
}

.expertise::before {
    display: none;
}

.expertise .container {
    position: relative;
    z-index: 2;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e2e8f0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
}

.expertise-card.animate {
    animation: slideInUp 0.8s ease-out forwards;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-header {
    display: none;
}

.card-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.expertise-card:hover .card-number::before {
    left: 100%;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expertise-card:hover .card-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
    padding-top: 2.5rem;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.tech-stack {
    display: none;
}

.tech-item {
    background: #f1f5f9;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #2563eb;
    transition: left 0.3s ease;
    z-index: -1;
}

.tech-item:hover::before {
    left: 0;
}

.tech-item:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Featured Projects */
.featured-projects {
    padding: 4rem 0 6rem;
    background: #ffffff;
    position: relative;
}

@media (max-width: 768px) {
    .featured-projects {
        padding: 3rem 0 4rem;
    }
}

.featured-projects .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .featured-projects .section-header {
        text-align: center;
        padding: 0 1rem;
    }
}

.featured-projects .section-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.featured-projects .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .featured-projects .section-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

.featured-projects .section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

@media (max-width: 768px) {
    .featured-projects .section-description {
        font-size: 1rem;
        max-width: 100%;
        text-align: left;
        margin: 0;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 5rem 0;
}

.project-card {
    background: white;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    animation: slideInUp 0.8s ease-out forwards;
}

.project-card.featured {
    grid-column: span 2;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

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

.project-card.featured .project-image {
    height: 350px;
}

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

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

.project-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: all 0.3s ease;
}

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

.project-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

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

.project-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-type {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-year {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.project-card.featured .project-content h3 {
    font-size: 1.75rem;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.stat {
    text-align: center;
    flex: 1;
}

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

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

.project-tech {
    display: none;
}

.tech-tag {
    background: #f1f5f9;
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

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

.projects-cta {
    text-align: center;
    margin-top: 4rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    background: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1d4ed8;
    transition: left 0.3s ease;
    z-index: -1;
}

.view-all-btn:hover::before {
    left: 0;
}

.view-all-btn:hover {
    color: white;
    transform: translateY(-2px);
    gap: 1rem;
}

/* Impact Section */
.impact {
    padding: 10rem 0;
    background: #ffffff;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.impact .container {
    position: relative;
    z-index: 2;
}

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

.impact .section-title {
    color: #1a1a1a;
    font-size: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 768px) {
    .impact .section-title {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
}

.impact .section-description {
    color: #666;
}

.impact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.impact-text {
    text-align: center;
    margin-bottom: 5rem;
}

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

.impact-item {
    padding: 3rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
}

.impact-item.animate {
    animation: slideInUp 0.8s ease-out forwards;
}

.impact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.impact-item:hover {
    transform: translateY(-8px);
    background: #f8fafc;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}



.impact-details h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .impact-details h4 {
        font-size: 1.1rem;
    }
}

.impact-details p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0 6rem;
    background: #ffffff;
    text-align: center;
}

@media (max-width: 768px) {
    .cta {
        padding: 3rem 0 4rem;
    }
}

.cta .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .cta .section-header {
        text-align: center;
        padding: 0 1rem;
    }
}

.cta-text h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .cta-text h2 {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

.cta-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

@media (max-width: 768px) {
    .cta-text p {
        font-size: 1rem;
        max-width: 100%;
        text-align: left;
        margin: 0 0 3rem 0;
    }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}



/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Staggered animations */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    

    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .impact-item {
        padding: 2rem;
        gap: 1.5rem;
    }
}

/* iPad and Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .project-card.featured {
        grid-column: span 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-nav h4 {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .footer-social-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-social-section h4 {
        margin-bottom: 1rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .hero-image {
        width: 400px;
        height: 400px;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-content-center {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .typing-wrapper {
        justify-content: center;
    }
    
    .hero-image {
        width: clamp(300px, 50vw, 400px);
        height: clamp(300px, 50vw, 400px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
    
    .nav {
        padding: 1rem clamp(1rem, 4vw, 1.5rem);
    }
    
    .nav-menu {
        position: fixed;
        left: 0;
        top: 4rem;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 1.5rem;
        backdrop-filter: none;
        border: 1px solid var(--border-color);
        align-items: center;
    }
    
    .theme-selector {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .theme-btn {
        margin: 0 auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }
    
    .theme-menu {
        position: relative;
        right: auto;
        left: auto;
        top: 0.5rem;
        width: 150px;
        margin: 0.5rem auto 0;
    }

    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
        min-height: calc(100vh - 4rem);
        padding: 0;
    }
    
    .hero-content-center {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .typing-wrapper {
        justify-content: center;
    }
    
    .hero-image {
        width: 100vw;
        height: clamp(600px, 120vw, 700px);
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0 calc(-50vw + 50%);
        position: relative;
    }
    
    .hero-image::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        clip-path: polygon(0 0, 100% 0, 0 15%);
        z-index: 1;
    }
    
    .hero-image::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        clip-path: polygon(100% 85%, 0 100%, 100% 100%);
        z-index: 1;
    }
    
    .hero-image img {
        object-position: center top;
    }
    
    .floating-elements {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .title-greeting {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .title-role {
        font-size: clamp(1rem, 3.5vw, 1.1rem);
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-card {
        margin: 0 0.5rem;
    }
    
    .card-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        margin: 0 0.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .impact-item {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 clamp(0.75rem, 3vw, 1rem);
    }
    
    .nav {
        padding: 0.75rem clamp(0.75rem, 3vw, 1rem);
    }
    
    .logo-text {
        font-size: clamp(1.1rem, 4vw, 1.25rem);
    }
    
    .hero-image {
        width: 100vw;
        height: clamp(250px, 60vw, 350px);
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0 calc(-50vw + 50%);
    }
    
    .hero-image img {
        object-position: center top;
    }
    
    .floating-elements {
        display: none;
    }
    
    .hero-badge {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
        padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    .expertise-card,
    .project-card,
    .impact-item {
        margin: 0;
    }
    
    .card-header,
    .card-content,
    .project-content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .hero-image {
        width: clamp(160px, 45vw, 180px);
        height: clamp(160px, 45vw, 180px);
    }
    
    .floating-tech {
        width: clamp(25px, 6vw, 30px);
        height: clamp(25px, 6vw, 30px);
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    }
    
    .hero-badge,
    .section-tag {
        padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 2.5vw, 1rem);
        font-size: clamp(0.7rem, 2vw, 0.75rem);
    }
}

/* About Page Styles */
.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

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

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-image.active {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
    z-index: 2;
}

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

.about-hero-content {
    max-width: 800px;
    text-align: center;
    color: white;
    opacity: 0;
    animation: slideInUp 1s ease-out 0.5s forwards;
}

.about-hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    margin: 2rem 0 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}


}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.highlight:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.highlight i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.highlight span {
    font-weight: 600;
    color: white;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.journey {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

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

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.animate {
    animation: slideInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2563eb, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border: 4px solid white;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    margin: 0 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-content h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-content .milestone {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-content .achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.achievement-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.skills-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.skill-card.animate {
    animation: slideInUp 0.8s ease-out forwards;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tags span {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .about-hero-content {
        text-align: center;
    }
    
    .hero-highlights {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .journey-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-marker {
        position: absolute;
        left: -40px;
        width: 60px;
        height: 60px;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-text h2 {
        font-size: 2.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Blog Preview Section */
.blog-preview {
    padding: 6rem 0;
    background: #f8fafc;
}

.blog-preview .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.blog-preview .section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.blog-card {
    background: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.blog-content {
    padding: 1.25rem;
}

.blog-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.blog-tags .tag {
    background: #f9fafb;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    background: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-blog-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1d4ed8;
    transition: left 0.3s ease;
    z-index: -1;
}

.view-blog-btn:hover::before {
    left: 0;
}

.view-blog-btn:hover {
    color: white;
    transform: translateY(-2px);
    gap: 1rem;
}

[data-theme="dark"] .blog-preview {
    background: #0f172a;
}

[data-theme="dark"] .blog-preview .section-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .blog-card {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .blog-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .blog-content p {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .blog-preview {
        padding: 3rem 0 4rem;
    }
    
    .blog-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        margin: 0 1rem;
    }
}
/* Mission Section */
.mission {
    padding: 6rem 0;
    background: var(--bg-primary);
    text-align: center;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-statement {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 2rem 0 3rem;
    font-weight: 400;
}

.mission-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.value-item i {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
}

.value-item span {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mission {
        padding: 4rem 0;
    }
    
    .mission-statement {
        font-size: 1.1rem;
    }
    
    .mission-values {
        flex-direction: column;
        gap: 2rem;
    }
}
body[data-page="blog"] .header:not(.scrolled),
body[data-page="contact"] .header:not(.scrolled) {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: none;
}

@media (max-width: 768px) {
    body[data-page="blog"] .header:not(.scrolled),
    body[data-page="contact"] .header:not(.scrolled) {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        backdrop-filter: none;
    }
    
    body[data-page="blog"] .header:not(.scrolled) .logo-text,
    body[data-page="contact"] .header:not(.scrolled) .logo-text {
        color: #111827;
    }
    
    body[data-page="blog"] .header:not(.scrolled) .nav-link,
    body[data-page="contact"] .header:not(.scrolled) .nav-link {
        color: var(--text-secondary);
    }
    
    body[data-page="blog"] .header:not(.scrolled) .work-btn,
    body[data-page="contact"] .header:not(.scrolled) .work-btn {
        color: var(--text-secondary);
    }
    
    body[data-page="blog"] .header:not(.scrolled) .theme-btn,
    body[data-page="contact"] .header:not(.scrolled) .theme-btn {
        color: var(--text-primary);
        border-color: var(--border-color);
    }
}
/* Home page blog cards */
.blog-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8rem;
}

.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.05rem;
}