﻿/* ============================================
   Global Styles & CSS Variables
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme (Default) - Deep Blue/Charcoal Base with Vibrant Accents */
    --primary-color: #00ff88;
    /* Neon Green/Electric Green */
    --primary-dark: #00cc6a;
    /* Darker Green */
    --accent-color: #00d9ff;
    /* Electric Blue/Cyan */
    --accent-secondary: #7c3aed;
    /* Purple */
    --secondary-color: #1a1a2e;
    /* Deep Blue/Charcoal */
    --text-color: #e4e4e7;
    /* Light Gray */
    --text-light: #a1a1aa;
    /* Medium Gray */
    --bg-color: #0a0a0f;
    /* Almost Black */
    --bg-light: #161622;
    /* Dark Blue-Gray */
    --bg-section: #1a1a2e;
    /* Deep Blue */
    --bg-card: #1e1e2e;
    /* Card Background */
    --border-color: #2a2a3e;
    /* Border Gray */
    --shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 255, 136, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00d9ff 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #161622 100%);
    --gradient-accent: linear-gradient(135deg, #00ff88 0%, #00d9ff 50%, #7c3aed 100%);
}

/* Light Mode Colors */
[data-theme="light"] {
    --primary-color: #00d9ff;
    --primary-dark: #00b8d4;
    --accent-color: #00ff88;
    --accent-secondary: #7c3aed;
    --secondary-color: #1e293b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.2);
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.03) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

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

/* Reduce heavy animations on mobile for better performance */
@media (max-width: 768px) {

    /* Disable only heavy particle animations */
    .particle,
    .animated-shapes,
    .shape {
        display: none;
    }

    /* Reduce animation complexity but keep them functional */
    .image-border-animation,
    .image-glow {
        animation-duration: 10s !important;
    }

    .profile-image {
        animation: none;
    }
}

/* Touch device optimizations */
.touch-device * {
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.1);
}

.touch-device .btn,
.touch-device .nav-link,
.touch-device .filter-btn {
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.2);
}

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

/* ============================================
   Navigation Bar - Sticky with Active Highlight
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    box-shadow: var(--shadow-hover);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.3rem;
}

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

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

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

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

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

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

/* ============================================
   Home / Hero Section - Full Screen
   ============================================ */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.3), transparent 50%);
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

.home-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-text {
    color: var(--text-color);
    animation: fadeInLeft 1s ease;
}

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

.name {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tagline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 600px;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: var(--shadow);
}

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

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

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

.social-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-preview-link {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-preview-link:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.profile-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--text-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.image-border-animation {
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    animation: rotate 20s linear infinite;
}

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

.scroll-indicator a {
    color: var(--text-color);
    font-size: 2rem;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
    transform: translateY(5px);
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-number {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

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

/* ============================================
   About Section - Two Column Layout
   ============================================ */
.about {
    background-color: var(--bg-section);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 100px;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.image-container:hover .image-overlay {
    opacity: 0.2;
}

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

.about-text {
    color: var(--text-color);
}

.about-intro {
    margin-bottom: 2rem;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.career-objective,
.passions {
    margin-top: 2.5rem;
}

.career-objective h3,
.passions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.career-objective p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.passion-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.passion-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.passion-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.passion-item h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.passion-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Skills Section - Categorized Cards
   ============================================ */
.skills {
    background-color: var(--bg-color);
}

.skills-content {
    display: grid;
    gap: 2.5rem;
}

.skill-category {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-name-icon {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* ============================================
   Programming Languages - Card Grid Layout
   ============================================ */
.programming-languages {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}



/* ============================================
   Skills Section - Cards & Grid
   ============================================ */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.language-card {
    position: relative;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.language-card:hover::before {
    opacity: 0.1;
}

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

.language-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-card);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.language-card:hover .language-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
    background: var(--primary-color);
    color: var(--bg-color);
}

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

.language-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.language-card:hover .language-name {
    color: var(--primary-color);
}

.language-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    transition: var(--transition);
}

.language-card:hover .language-desc {
    color: var(--text-color);
}

.language-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
    filter: blur(20px);
}

.language-card:hover .language-glow {
    opacity: 0.3;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.skill-name-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

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

.skill-bar {
    width: 100%;
    height: 12px;
    background-color: var(--bg-section);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--bg-color);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.tool-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.tool-item:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.projects {
    background-color: var(--bg-section);
}

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

.project-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(6, 182, 212, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-links {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

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

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

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

.tech-tag {
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* ============================================
   Education Section - Timeline Layout
   ============================================ */
/* ============================================
   Education Section - Timeline Layout
   ============================================ */
.education {
    background-color: var(--bg-color);
}

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

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.timeline-year {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.degree {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.field {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.college {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
}

.academic-highlights {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.academic-highlights h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.achievements-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.achievements-list li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background-color: var(--bg-section);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-intro h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

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

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

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

.social-links h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

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





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

.profile-link,
.contact-details .profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.profile-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.profile-link i {
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--bg-color);
    padding: 2.5rem 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: var(--accent-color);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: var(--bg-color);
}

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

.error-message {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 0;
}

.error-message:empty {
    display: none;
    margin-top: 0;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 1rem;
}

.form-success i {
    font-size: 1.3rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
}

[data-theme="dark"] .footer {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content strong {
    color: var(--primary-color);
}

.footer i {
    color: var(--accent-color);
    animation: heartbeat 2s ease-in-out infinite;
}

/* ============================================
   Footer Social Media
   ============================================ */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

@keyframes heartbeat {

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

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */
/* ============================================
   Particles & Code Snippet Animation
   ============================================ */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.code-snippet {
    position: absolute;
    top: 20%;
    right: 10%;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.1;
    white-space: pre;
    line-height: 1.6;
    animation: codeGlow 3s ease-in-out infinite;
}

@keyframes codeGlow {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }
}

/* ============================================
   Typing Animation
   ============================================ */
.typing-text {
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        border-color: var(--primary-color);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

/* ============================================
   GitHub Stats
   ============================================ */
.github-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

/* ============================================
   Tech Badges
   ============================================ */
.tech-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    animation: badgeFloat 4s ease-in-out infinite;
}

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

.badge-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 20%;
    left: -10%;
    animation-delay: 2s;
}

.badge-4 {
    top: 30%;
    right: -10%;
    animation-delay: 1.5s;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ============================================
   Focus Areas
   ============================================ */
.focus-areas {
    margin-top: 2rem;
}

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

.focus-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.focus-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.focus-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ============================================
   Skill Tags
   ============================================ */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   Soft Skills
   ============================================ */
.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.soft-skill-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.soft-skill-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   Project Filters
   ============================================ */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   Resume Section
   ============================================ */
.resume {
    background-color: var(--bg-section);
}

.resume-content {
    max-width: 900px;
    margin: 0 auto;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.resume-embed {
    position: relative;
    width: 100%;
    height: 800px;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
}

.resume-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-resume {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.close-resume:hover {
    transform: rotate(90deg);
    box-shadow: var(--shadow-glow);
}

.resume-timeline {
    margin-top: 3rem;
}

.timeline-section {
    margin-bottom: 2.5rem;
}

.timeline-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item-small {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.timeline-item-small:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.timeline-date {
    min-width: 100px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-details h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.timeline-details p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.timeline-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.cert-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cert-item i {
    font-size: 2rem;
    color: var(--primary-color);
}



/* ============================================
   Coding Profiles
   ============================================ */
.coding-profiles {
    margin-top: 2rem;
}

.coding-profiles h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.profile-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.profile-link i {
    font-size: 1.2rem;
}

/* ============================================
   Course Tags
   ============================================ */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.course-tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* ============================================
   Footer Quote & Stats
   ============================================ */
.footer-quote {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.footer-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.quote-author {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-stat {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

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

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

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

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

/* ============================================
   Tablet & Medium Devices (769px - 968px)
   ============================================ */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }

    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .name {
        font-size: 3rem;
    }

    .role {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .profile-image-wrapper {
        width: 350px;
        height: 350px;
        margin: 0 auto;
    }

    .home-buttons {
        justify-content: center;
    }

    .github-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

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

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

    .project-filters {
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .languages-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }

    .focus-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .resume-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-actions .btn {
        width: 100%;
    }

    .resume-embed {
        height: 600px;
    }

    .timeline-item-small {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-date {
        min-width: auto;
    }

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

/* ============================================
   Mobile & Small Tablets (481px - 768px)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
        font-size: 1rem;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Hero Section */
    .home {
        padding-top: 70px;
        min-height: 100vh;
    }

    .name {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .role {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .profile-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .home-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .github-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
        padding: 0 1rem;
    }

    .stat-item {
        flex: 1;
    }

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

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

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

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

    /* About Section */
    .about-content {
        gap: 2rem;
    }

    .about-image {
        max-width: 100%;
    }

    .passion-items {
        gap: 1rem;
    }

    .passion-item {
        padding: 1rem;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Skills Section */
    .skill-category {
        padding: 1.5rem;
    }

    .category-header h3 {
        font-size: 1.3rem;
    }

    .languages-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .language-card {
        padding: 1.5rem 1rem;
    }

    .language-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .language-name {
        font-size: 1.1rem;
    }

    .language-desc {
        font-size: 0.85rem;
    }

    .skill-tags {
        gap: 0.6rem;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .tool-item {
        padding: 1.5rem 1rem;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .soft-skills {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Projects Section */
    .project-filters {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

    .project-card {
        margin: 0;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    /* Education Section */
    .education-timeline::before {
        left: 25px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 1.5rem;
        margin-left: 1rem;
    }

    .degree {
        font-size: 1.3rem;
    }

    .field {
        font-size: 1rem;
    }

    .achievements-list {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .course-tags {
        gap: 0.6rem;
    }

    .course-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* Resume Section */
    .resume-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .resume-actions .btn {
        width: 100%;
    }

    .resume-embed {
        height: 500px;
        margin: 1.5rem 0;
    }

    .timeline-item-small {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .timeline-date {
        min-width: auto;
        text-align: left;
    }

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

    /* Contact Section */
    .contact-content {
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-items {
        gap: 1rem;
    }

    .contact-item {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .profile-links {
        flex-direction: column;
    }

    .profile-link {
        width: 100%;
        justify-content: center;
    }

    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }



    /* Footer */
    .footer-content {
        text-align: center;
    }

    .footer-quote {
        padding: 1.5rem;
    }

    .footer-quote p {
        font-size: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ============================================
   Small Mobile Devices (320px - 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Navigation */
    .navbar .container {
        padding: 0.8rem 12px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand i {
        font-size: 1.1rem;
    }

    /* Hero Section */
    .home {
        padding-top: 60px;
    }

    .greeting {
        font-size: 1rem;
    }

    .name {
        font-size: 2rem;
        line-height: 1.1;
    }

    .role {
        font-size: 1rem;
        line-height: 1.4;
    }

    .tagline {
        font-size: 0.9rem;
        padding: 0;
    }

    .profile-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .tech-badges .badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .home-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .github-stats {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .stat-item {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

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

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

    /* About Section */
    .about-text p {
        font-size: 0.95rem;
    }

    .passion-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
    }

    .passion-item i {
        font-size: 1.5rem;
    }

    /* Skills Section */
    .skill-category {
        padding: 1.2rem;
    }

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

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

    .languages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .language-card {
        padding: 1.2rem;
    }

    .language-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .language-name {
        font-size: 1rem;
    }

    .language-desc {
        font-size: 0.8rem;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .tool-item {
        padding: 1rem 0.8rem;
    }

    .tool-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .tool-name {
        font-size: 0.85rem;
    }

    /* Projects Section */
    .project-filters {
        gap: 0.4rem;
    }

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

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .tech-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    /* Education Section */
    .education-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 1.2rem;
        margin-left: 0.5rem;
    }

    .timeline-year {
        font-size: 1rem;
    }

    .degree {
        font-size: 1.2rem;
    }

    .field {
        font-size: 0.95rem;
    }

    .college {
        font-size: 0.9rem;
    }

    .course-tags {
        gap: 0.5rem;
    }

    .course-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .achievements-list li {
        font-size: 0.85rem;
    }

    /* Resume Section */
    .resume-embed {
        height: 400px;
        border-radius: 10px;
    }

    .close-resume {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .timeline-item-small {
        padding: 1rem;
    }

    .timeline-section h3 {
        font-size: 1.1rem;
    }

    /* Contact Section */
    .contact-intro h3 {
        font-size: 1.5rem;
    }

    .contact-intro p {
        font-size: 0.95rem;
    }

    .contact-form-wrapper {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Blog Section */
    .blog-placeholder {
        padding: 2rem 1rem;
    }

    .blog-placeholder i {
        font-size: 3rem;
    }

    .blog-placeholder h3 {
        font-size: 1.5rem;
    }

    .blog-placeholder p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer-quote {
        padding: 1.2rem;
    }

    .footer-quote p {
        font-size: 0.95rem;
    }

    .footer-stat {
        padding: 1rem 1.5rem;
    }

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

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

    .footer-copyright {
        font-size: 0.85rem;
    }
}

/* ============================================
   Extra Small Devices (max-width: 320px)
   ============================================ */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .name {
        font-size: 1.8rem;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }

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

    .languages-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch target sizes */
    .btn,
    .nav-link,
    .filter-btn,
    .project-link,
    .social-icon,
    .profile-link {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .language-card:hover,
    .project-card:hover,
    .tool-item:hover {
        transform: none;
    }

    /* Ensure buttons are easily tappable */
    .btn {
        padding: 14px 24px;
    }
}

/* ============================================
   Landscape Mobile Optimization
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .home {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .profile-image-wrapper {
        width: 250px;
        height: 250px;
    }

    section {
        padding: 40px 0;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

    .navbar,
    .back-to-top,
    .scroll-indicator,
    .home-buttons,
    .project-filters,
    .resume-actions {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   Hobby Section Styles (Merged & Refined)
   ============================================ */

/* Section Wrapper */
.hobbies-merged {
    padding: 6rem 0;
    /* Use background from variable if possible, or fallback */
    background-color: var(--bg-color, #0a192f);
}

/* Header */
.hobby-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Grid Layout */
.hobby-gallery {
    padding: 2rem 0;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Hobby Card */
.hobby-card {
    background: var(--bg-card, #112240);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid var(--border-color, #233554);
    height: 100%;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--primary-color, #64ffda);
}

/* Card Image Area */
.card-image {
    position: relative;
    height: 160px;
    /* Medium size */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%) contrast(1.1);
}

.hobby-card:hover .card-image img {
    transform: scale(1.1);
    filter: none;
}

/* Icon Overlay */
.card-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color, #64ffda);
    color: var(--bg-color, #0a192f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.hobby-card:hover .card-icon {
    bottom: 15px;
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color, #e6f1ff);
    font-weight: 600;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light, #8892b0);
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hobby-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .card-image {
        height: 150px;
    }
}