/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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);
    --transition: all 0.3s ease;
}

/* Light Mode Variables */
[data-theme="light"] {
    --dark: #ffffff;
    --dark-light: #f8fafc;
    --gray-900: #f9fafb;
    --gray-800: #f3f4f6;
    --gray-700: #e5e7eb;
    --gray-600: #d1d5db;
    --gray-500: #9ca3af;
    --gray-400: #6b7280;
    --gray-300: #4b5563;
    --gray-200: #374151;
    --gray-100: #1f2937;
    --white: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.08);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.15);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}

/* Smooth theme transitions */
body,
nav,
section,
.navbar,
.hero,
.about,
.featured,
.projects,
.blog,
.contact,
.footer {
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-300);
    background-color: var(--dark);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    line-height: 1.2;
}

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

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

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

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

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

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

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--gray-300);
    transition: var(--transition);
    position: absolute;
}

.theme-toggle:hover svg {
    color: var(--primary);
}

/* Show sun icon in dark mode, moon icon in light mode */
[data-theme="dark"] .theme-toggle .sun-icon,
[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .moon-icon,
[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 24px;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--gray-400);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dark-light);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 60px;
    }

    50% {
        opacity: 1;
        height: 80px;
    }
}

/* ===== About Section ===== */
.about {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.image-frame {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 500;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text .about-cta {
    color: var(--primary-light);
    font-style: italic;
    margin-top: 10px;
}

.skills {
    margin-top: 40px;
}

.skills h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 8px 20px;
    background: var(--dark);
    border: 1px solid var(--gray-700);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ===== Featured Section ===== */
section.featured {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

section.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--dark-light) 0%, rgba(30, 41, 59, 0.5) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(145deg, var(--gray-700), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

.featured-card:hover::before {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
}

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

.featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--dark-light), transparent);
    pointer-events: none;
}

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

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

.featured-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.15));
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    width: fit-content;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.featured-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.4;
}

.featured-content p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.featured-meta {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.featured-card:hover .featured-meta {
    gap: 10px;
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

/* ===== Timeline Section ===== */
.timeline-section {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
}

.education-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.education-section .timeline-dot {
    border-color: var(--secondary);
}

.education-section .timeline-item:hover .timeline-dot {
    background: var(--secondary);
    box-shadow: 0 0 20px var(--secondary);
}

.education-section .timeline-line {
    background: linear-gradient(to bottom, var(--secondary), var(--primary), var(--secondary));
}

.education-section .timeline-line::before {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.education-section .timeline-date {
    color: #0ea5e9;
}

.education-section .timeline-item:hover .timeline-content {
    border-color: var(--secondary);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15);
}

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

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary));
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    animation: lineGrow 2s ease forwards;
}

@keyframes lineGrow {
    to {
        height: 100%;
    }
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    top: 28px;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.timeline-content {
    background: linear-gradient(145deg, var(--dark-light), rgba(30, 41, 59, 0.5));
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-800);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 24px;
    width: 20px;
    height: 20px;
    background: var(--dark-light);
    border: 1px solid var(--gray-800);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-right: none;
    border-top: none;
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.timeline-company {
    color: var(--gray-400);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item:nth-child(odd) .timeline-company {
    justify-content: flex-end;
}

.timeline-location {
    font-size: 0.8rem;
    color: var(--gray-500);
    padding: 2px 10px;
    background: var(--dark);
    border-radius: 100px;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px !important;
        padding-right: 20px !important;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-right: none !important;
        border-top: none !important;
        border-left: 1px solid var(--gray-800) !important;
        border-bottom: 1px solid var(--gray-800) !important;
    }

    .timeline-company {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
}

/* ===== Projects Section ===== */
.projects {
    padding: 120px 0;
    background: var(--dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--dark-light);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-800);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--gray-700);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    background: linear-gradient(145deg, var(--dark-light), rgba(99, 102, 241, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
}

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

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

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

.project-placeholder {
    aspect-ratio: 16/10;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

.project-card.featured .project-placeholder {
    aspect-ratio: auto;
    height: 100%;
}

.project-content {
    padding: 30px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    color: var(--primary-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    color: var(--white);
}

/* ===== Blog Section ===== */
.blog {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-800);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gray-700);
}

.blog-image {
    position: relative;
}

.blog-placeholder {
    aspect-ratio: 16/10;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 600;
}

.blog-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--white);
    font-weight: 500;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

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

.blog-content p {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-light);
    font-weight: 500;
}

.blog-link:hover {
    color: var(--white);
}

.blog-cta {
    text-align: center;
    margin-top: 60px;
}

/* ===== Contact Section ===== */
.contact {
    padding: 120px 0;
    background: var(--dark);
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-light);
    border-radius: 12px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--white);
    font-size: 1.1rem;
}

.contact-socials {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.contact-social {
    padding: 10px 24px;
    background: var(--dark-light);
    border-radius: 100px;
    color: var(--gray-300);
    font-weight: 500;
    transition: var(--transition);
}

.contact-social:hover {
    background: var(--primary);
    color: var(--white);
}

.contact-form {
    background: var(--dark-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--gray-800);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark);
    border: 1px solid var(--gray-700);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

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

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--dark-light);
    border-top: 1px solid var(--gray-800);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--gray-500);
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--gray-600);
    font-size: 0.9rem;
}

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

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* ===== Animation Classes ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Selection Color ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}