/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* High-Contrast Elite Colors */
    --primary-color: #007aff;
    --primary-hover: #0056b3;
    --secondary-color: #00adb5;
    --secondary-hover: #008f96;
    
    --bg-light: #fcfcfc;
    --bg-dark: #000000;
    
    --text-light: #111111;
    --text-dark: #ededed;
    --text-muted-light: #666666;
    --text-muted-dark: #a1a1aa;
    
    --card-light: rgba(255, 255, 255, 0.7);
    --card-dark: rgba(18, 18, 18, 0.6);
    --card-solid-light: #ffffff;
    --card-solid-dark: #111111;
    
    --section-dark: #050505;
    --section-darker: #000000;
    
    --navbar-light: rgba(255, 255, 255, 0.65);
    --navbar-dark: rgba(0, 0, 0, 0.65);
    
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --glass-bg-light: rgba(255, 255, 255, 0.1);
    --glass-bg-dark: rgba(10, 10, 10, 0.1);
    --glass-blur: blur(20px);
    
    /* Layout & Animation */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Premium Diffuse Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 30px rgba(0, 122, 255, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-light);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.section {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--section-dark);
    color: var(--text-dark);
}

.dark-mode .dark-section {
    background-color: var(--section-darker);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-muted-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .section-title {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-muted-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

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

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

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
}

.download-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 14px 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
}

.download-btn:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 173, 181, 0.4);
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 12px 0;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.05);
}

.dark-mode #navbar.scrolled {
    background: var(--glass-bg-dark);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    letter-spacing: -0.05em;
}

.dark-mode .logo {
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

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

.nav-menu li {
    margin-left: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.dark-mode .nav-menu a {
    color: var(--text-dark);
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -2px;
    left: 0;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-customize {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-mode .theme-toggle {
    color: #f0f0f0;
}

.dark-mode .theme-customize {
    color: #f0f0f0;
}

.theme-toggle:hover {
    background-color: rgba(74, 108, 247, 0.1);
}

.theme-toggle .fa-sun {
    display: none;
}

.dark-mode .theme-toggle .fa-moon {
    display: none;
}

.dark-mode .theme-toggle .fa-sun {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.dark-mode .menu-toggle {
    color: #f0f0f0;
}



/* Floating Contact */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4a6cf7;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
    transition: all 0.3s ease;
}

.chat-btn:hover {
    transform: scale(1.1);
    background-color: #3a5ce5;
}

/* Chatbot Window Styling */
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 480px;
    background: var(--card-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: none; /* Toggled by JS */
    flex-direction: column;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.chat-window.active {
    display: flex;
}

.dark-mode .chat-window {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header i.fa-robot {
    font-size: 1.5rem;
}

.chat-header-info {
    flex-grow: 1;
}

.chat-header-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white !important;
}

.chat-header-info span {
    font-size: 0.8rem;
    opacity: 0.9;
}

#closeChat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-fast);
}

#closeChat:hover { opacity: 1; transform: scale(1.1); }

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    background: var(--bg-light);
}

.dark-mode .chat-input-area {
    background: var(--card-dark);
    border-top-color: var(--border-dark);
}

.chat-input-area input {
    flex-grow: 1;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 10px 15px;
    outline: none;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.dark-mode .chat-input-area input {
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-input-area button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 180px 0 100px;
    background: radial-gradient(circle at top left, rgba(0, 122, 255, 0.04) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 173, 181, 0.04) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.dark-mode .hero {
    background: radial-gradient(circle at top left, rgba(0, 122, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 173, 181, 0.05) 0%, transparent 40%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.6;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    z-index: 2;
    max-width: 650px;
}

.hero-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-muted-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .hero-text h1 {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-muted-light);
    margin-bottom: 25px;
    min-height: 2.5rem;
    letter-spacing: -0.02em;
}

.dark-mode .hero-text h2 {
    color: var(--text-muted-dark);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted-light);
    margin-bottom: 35px;
    max-width: 550px;
    line-height: 1.7;
}

.dark-mode .hero-text p {
    color: var(--text-muted-dark);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.resume-download {
    margin-bottom: 35px;
}

.github-stats {
    display: flex;
    gap: 35px;
    margin-top: 35px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.stat-item h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.dark-mode .stat-item h4 {
    color: var(--text-dark);
}

.stat-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted-light);
}

.dark-mode .stat-item p {
    color: var(--text-muted-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.hero-image .image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: visible;
    margin-bottom: 35px;
    animation: morphing 8s ease-in-out infinite, floatingVertical 6s ease-in-out infinite;
    transform-origin: center;
    z-index: 2;
}

.hero-image .image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    z-index: -1;
    animation: spinGradient 4s linear infinite;
    opacity: 0.8;
}

.hero-image .image-wrapper img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 1;
    border: 5px solid var(--card-light);
    box-shadow: var(--shadow-lg);
}

.dark-mode .hero-image .image-wrapper img {
    border-color: var(--card-dark);
}

@keyframes spinGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

#profileImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(74, 108, 247, 0.2), rgba(74, 108, 247, 0.4));
    opacity: 0.5;
}

.achievement-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.badge {
    width: 50px;
    height: 50px;
    background: #4a6cf7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.2);
}

.badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

.dark-mode .badge::after {
    background: #f0f0f0;
    color: #333;
}

.badge:hover::after {
    opacity: 1;
    visibility: visible;
}

/* About Section */
.about-container {
    display: flex;
    gap: 50px;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.dark-mode .about-text h3 {
    color: #f0f0f0;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

.dark-mode .about-text p {
    color: #bbb;
}

.timeline-section {
    margin-top: 40px;
}

.timeline-section h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.dark-mode .timeline-section h4 {
    color: #f0f0f0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4a6cf7;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a6cf7;
    border: 2px solid white;
}

.dark-mode .timeline-item::before {
    border-color: #1a1a1a;
}

.timeline-date {
    font-weight: 600;
    color: #4a6cf7;
    margin-bottom: 5px;
}

.timeline-content h5 {
    margin-bottom: 5px;
    color: #333;
}

.dark-mode .timeline-content h5 {
    color: #f0f0f0;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
}

.dark-mode .timeline-content p {
    color: #bbb;
}

.about-sidebar {
    flex: 1;
}

.contact-info, .achievements, .certifications {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .contact-info,
.dark-mode .achievements,
.dark-mode .certifications {
    background-color: #2d2d2d;
}

.contact-info h4, .achievements h4, .certifications h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.dark-mode .contact-info h4,
.dark-mode .achievements h4,
.dark-mode .certifications h4 {
    color: #f0f0f0;
    border-bottom-color: #444;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #555;
}

.dark-mode .contact-info p {
    color: #bbb;
}

.contact-info i {
    margin-right: 10px;
    color: #4a6cf7;
    width: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4a6cf7;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.social-links a:hover {
    color: #3a5ce5;
}

.social-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}

.achievement-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}

.achievements li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
}

.dark-mode .achievements li {
    color: #bbb;
    border-bottom-color: #444;
}

.achievements li:last-child, .certifications li:last-child {
    border-bottom: none;
}

.achievements ul, .certifications ul {
    list-style-type: none;
}

.coding-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dark-mode .coding-stats {
    border-top-color: #444;
}

.coding-stats h5 {
    margin-bottom: 15px;
    color: #333;
}

.dark-mode .coding-stats h5 {
    color: #f0f0f0;
}

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

.stat-card {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.dark-mode .stat-card {
    background: #1a1a2e;
}

.stat-card h6 {
    font-size: 1.5rem;
    color: #4a6cf7;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.dark-mode .stat-card p {
    color: #bbb;
}

/* Experience Section */
.experience-card {
    background-color: #162447;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.dark-mode .experience-card {
    background-color: #0a0a1a;
}

.exp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-header h3 {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #fff;
}

.exp-header .company {
    font-size: 1.1rem;
    color: #00adb5;
    margin-right: 15px;
}

.exp-header .date {
    background-color: #00adb5;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.exp-details {
    list-style-type: none;
    margin-bottom: 25px;
}

.exp-details li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #ddd;
}

.exp-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00adb5;
}

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

.tech-stack span {
    background-color: rgba(0, 173, 181, 0.2);
    color: #00adb5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 173, 181, 0.3);
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.dark-mode .project-card {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

.project-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-right: 15px;
}

.dark-mode .project-header h3 {
    color: var(--text-dark);
}

.project-header .date {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.dark-mode .project-header .date {
    background-color: rgba(74, 108, 247, 0.15);
}

.project-card p {
    color: var(--text-muted-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
    flex: 1;
}

.dark-mode .project-card p {
    color: var(--text-muted-dark);
}

.project-card ul {
    margin-bottom: 25px;
    padding-left: 20px;
    flex: 1;
}

.project-card li {
    color: var(--text-muted-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.dark-mode .project-card li {
    color: var(--text-muted-dark);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tech span {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dark-mode .project-tech span {
    background-color: rgba(74, 108, 247, 0.15);
}

/* Flip Card Styles */
.flip-card {
    perspective: 1500px;
    cursor: pointer;
    height: 420px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.flip-card:hover {
    transform: none;
    box-shadow: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.flip-card-front {
    background-color: var(--card-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-light);
}

.dark-mode .flip-card-front {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

.flip-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.flip-card:hover .flip-card-front::after {
    opacity: 1;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    transform: rotateY(180deg);
    border: none;
}

.flip-hint {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.dark-mode .flip-hint {
    border-top-color: #444;
    color: #bbb;
}

.flip-hint i {
    margin-right: 5px;
    color: #4a6cf7;
}

/* Project Preview Styles */
.project-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

.preview-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

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

.preview-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

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

.preview-tech {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.preview-tech span {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #4a6cf7;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.preview-link:hover {
    background-color: #f0f5ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.preview-link i {
    margin-right: 8px;
}

/* Skills Section - Tags Only */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--card-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.dark-mode .skill-category {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
    border-left-color: var(--secondary-color);
}

.skill-category:hover {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1deg) translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.dark-mode .skill-category h3 {
    color: var(--text-dark);
}

.skill-category i {
    margin-right: 12px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

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

.skill-tag {
    background-color: rgba(0, 173, 181, 0.05);
    color: var(--secondary-color);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 173, 181, 0.2);
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
    border-color: transparent;
}

/* Testimonials Section */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    background: var(--card-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.dark-mode .testimonial {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.testimonial.active {
    display: block;
    animation: slideInScale 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.testimonial-content {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-content p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-muted-light);
}

.dark-mode .testimonial-content p {
    color: var(--text-muted-dark);
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    display: block;
    height: 20px;
    line-height: 0.8;
    margin-bottom: 5px;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.testimonial-author p {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-prev,
.slider-next {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.dark-mode .slider-prev,
.dark-mode .slider-next {
    background: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.3);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .slider-dots span {
    background: var(--border-dark);
}

.slider-dots span.active {
    background: var(--secondary-color);
    transform: scale(1.5);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.dark-mode .contact-info h3 {
    color: #f0f0f0;
}

.contact-info p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.dark-mode .contact-info p {
    color: #bbb;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
}

.dark-mode .contact-details p {
    color: #bbb;
}

.contact-details i {
    margin-right: 15px;
    color: #4a6cf7;
    width: 20px;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.contact-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f0f5ff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dark-mode .contact-social .social-icon {
    background-color: #2d2d2d;
}

.contact-social .social-icon:hover {
    background-color: #4a6cf7;
    transform: translateY(-5px);
}

.contact-social .social-icon:hover .social-logo-img {
    filter: brightness(0) invert(1);
}

/* Logo color adjustments */
.contact-social .social-icon .social-logo-img[alt="HackerRank"],
.contact-social .social-icon .social-logo-img[alt="GitHub"],
.contact-social .social-icon .social-logo-img[alt="LeetCode"] {
    filter: brightness(0);
}

.dark-mode .contact-social .social-icon .social-logo-img[alt="HackerRank"],
.dark-mode .contact-social .social-icon .social-logo-img[alt="GitHub"],
.dark-mode .contact-social .social-icon .social-logo-img[alt="LeetCode"] {
    filter: brightness(0) invert(1);
}

.contact-social .social-icon:hover .social-logo-img[alt="HackerRank"],
.contact-social .social-icon:hover .social-logo-img[alt="GitHub"],
.contact-social .social-icon:hover .social-logo-img[alt="LeetCode"] {
    filter: brightness(0) invert(1);
}

.contact-form {
    flex: 1;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.dark-mode .contact-form h3 {
    color: #f0f0f0;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-light);
    color: var(--text-light);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-dark);
    color: var(--text-dark);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), inset 0 2px 4px rgba(0,0,0,0.02);
    background: var(--card-solid-light);
}

.dark-mode .form-group input:focus, 
.dark-mode .form-group textarea:focus {
    background: var(--card-solid-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3), inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

.form-status.success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
    animation: slideIn 0.5s ease;
}

.dark-mode .form-status.success {
    background-color: #1a3a2a;
    border-color: #2d5c3d;
}

.form-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #721c24;
    animation: shake 0.5s ease;
}

.dark-mode .form-status.error {
    background-color: #3a1a1a;
    border-color: #5c2d2d;
}

.form-status.loading {
    background-color: #e8f4fd;
    border: 1px solid #b6d4fe;
    color: #084298;
}

.dark-mode .form-status.loading {
    background-color: #1a2a3a;
    border-color: #2d4c6c;
}

.form-status .success-message,
.form-status .error-message,
.form-status .loading-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-status i {
    font-size: 1.2rem;
}

.form-status.loading i {
    color: #0d6efd;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    color: #aaa;
    padding: 50px 0 30px;
}

.dark-mode footer {
    background-color: #0a0a1a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
}

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

.footer-links a:hover {
    color: #4a6cf7;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Easter Egg */
.easter-egg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.egg-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    animation: bounceIn 1s ease;
}

.dark-mode .egg-content {
    background: #2d2d2d;
    color: #f0f0f0;
}

.egg-content h2 {
    color: #4a6cf7;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

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

img {
    content-visibility: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-image {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .dark-mode .nav-menu {
        background-color: #2d2d2d;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.3rem;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .flip-card {
        height: 450px;
    }
    
    .flip-hint {
        font-size: 0.8rem;
    }
    

    
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .quick-form {
        width: 280px;
    }
    
    .achievement-badges {
        gap: 15px;
    }
    
    .badge {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .project-card, .experience-card {
        padding: 20px;
    }
    
    .flip-card {
        height: 500px;
    }
    
    .preview-content h3 {
        font-size: 1.3rem;
    }
    
    .preview-content p {
        font-size: 0.9rem;
    }
    
    .github-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .achievement-badges {
        gap: 10px;
    }
    
    .badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
/* Add this to your CSS file */

/* Certifications in main content area */
.about-text .certifications {
    margin-top: 40px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .about-text .certifications {
    background-color: #2d2d2d;
}

.about-text .certifications h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.dark-mode .about-text .certifications h4 {
    color: #f0f0f0;
    border-bottom-color: #444;
}

.about-text .certifications ul {
    list-style-type: none;
}

.about-text .certifications li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    display: flex;
    align-items: center;
}

.dark-mode .about-text .certifications li {
    color: #bbb;
    border-bottom-color: #444;
}

.about-text .certifications li:last-child {
    border-bottom: none;
}

/* ============================================================
   ADVANCED 3D FEATURES — CUSTOM MAGNETIC CURSOR
   ============================================================ */
* { cursor: none !important; }

#cursor {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: normal;
}

#cursor-follower {
    width: 38px;
    height: 38px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.07s linear;
    opacity: 0.6;
}

body.cursor-hover #cursor {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    mix-blend-mode: difference;
}

body.cursor-hover #cursor-follower {
    width: 55px;
    height: 55px;
    border-color: var(--secondary-color);
    opacity: 0.3;
}

@media (hover: none), (max-width: 768px) {
    * { cursor: auto !important; }
    #cursor, #cursor-follower { display: none !important; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #a855f7);
    z-index: 99997;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
    border-radius: 0 3px 3px 0;
}

/* ============================================================
   COMMAND PALETTE (Ctrl+K)
   ============================================================ */
#cmd-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99996;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

#cmd-palette-overlay.open {
    display: flex;
    animation: cmdDrop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

#cmd-palette {
    background: rgba(15, 15, 25, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: min(600px, 90vw);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 122, 255, 0.2);
    animation: cmdSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    overflow: hidden;
}

@keyframes cmdSlide {
    from { transform: translateY(-30px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

#cmd-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#cmd-header i {
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.8;
}

#cmd-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    caret-color: var(--primary-color);
}

#cmd-input::placeholder { color: rgba(255,255,255,0.35); }

.cmd-hint {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
}

#cmd-results {
    list-style: none;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
}

#cmd-results li {
    padding: 11px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
}

#cmd-results li i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    opacity: 0.7;
}

#cmd-results li .cmd-label { flex: 1; }

#cmd-results li .cmd-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary-color);
}

#cmd-results li:hover,
#cmd-results li.cmd-active {
    background: rgba(0, 122, 255, 0.12);
    color: #fff;
}

#cmd-results li:hover i,
#cmd-results li.cmd-active i {
    opacity: 1;
}

#cmd-footer {
    display: flex;
    gap: 20px;
    padding: 10px 22px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

#cmd-footer kbd {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    margin-right: 4px;
}

/* ============================================================
   ORBIT SPHERE CANVAS — now inside .hero-image
   ============================================================ */
#orbit-canvas {
    position: absolute;
    /* Center and extend well beyond the image wrapper */
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

/* hero-image must be position:relative + overflow:visible for canvas to spill out */
.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    position: relative;    /* needed for canvas positioning */
    overflow: visible;     /* let the orbit sphere extend beyond */
}


/* ============================================================
   GLITCH ANIMATION — Hero Name
   ============================================================ */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-muted-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}

.dark-mode .glitch-text::before,
.dark-mode .glitch-text::after {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch-text.glitching::before {
    opacity: 0.8;
    clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
    transform: translateX(-4px);
    filter: drop-shadow(2px 0 #ff2d78);
    animation: glitchSlice1 0.15s steps(1) infinite;
}

.glitch-text.glitching::after {
    opacity: 0.8;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    transform: translateX(4px);
    filter: drop-shadow(-2px 0 #00d4ff);
    animation: glitchSlice2 0.12s steps(1) infinite;
}

@keyframes glitchSlice1 {
    0%   { clip-path: polygon(0 5%,  100% 5%,  100% 25%, 0 25%); transform: translateX(-4px); }
    25%  { clip-path: polygon(0 35%, 100% 35%, 100% 55%, 0 55%); transform: translateX(3px);  }
    50%  { clip-path: polygon(0 65%, 100% 65%, 100% 75%, 0 75%); transform: translateX(-5px); }
    75%  { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); transform: translateX(4px);  }
    100% { clip-path: polygon(0 5%,  100% 5%,  100% 25%, 0 25%); transform: translateX(-4px); }
}

@keyframes glitchSlice2 {
    0%   { transform: translateX(4px);  }
    33%  { transform: translateX(-3px); }
    66%  { transform: translateX(5px);  }
    100% { transform: translateX(4px);  }
}

/* ============================================================
   HOLOGRAPHIC SHIMMER — Experience Card
   ============================================================ */
.holo-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.holo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(0, 195, 255, 0.12) 50%,
        rgba(255, 0, 255, 0.08) 55%,
        rgba(255, 200, 0, 0.06) 60%,
        transparent 75%,
        transparent 100%
    );
    background-size: 300% 300%;
    background-position: 200% 200%;
    transition: background-position 0.1s ease;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.holo-card > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   3D PERSPECTIVE CASCADE REVEAL (Upgraded from fade-up)
   ============================================================ */
.fade-up, .scale-in {
    opacity: 0;
    transform: perspective(800px) rotateX(25deg) translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: top center;
}

.fade-up.visible, .scale-in.visible {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0px);
}

/* Stagger children in same container */
.skills-container .skill-category:nth-child(1) { transition-delay: 0.05s; }
.skills-container .skill-category:nth-child(2) { transition-delay: 0.12s; }
.skills-container .skill-category:nth-child(3) { transition-delay: 0.19s; }
.skills-container .skill-category:nth-child(4) { transition-delay: 0.26s; }
.skills-container .skill-category:nth-child(5) { transition-delay: 0.33s; }

.projects-container .project-card:nth-child(1) { transition-delay: 0.05s; }
.projects-container .project-card:nth-child(2) { transition-delay: 0.12s; }
.projects-container .project-card:nth-child(3) { transition-delay: 0.2s;  }
.projects-container .project-card:nth-child(4) { transition-delay: 0.28s; }

/* ============================================================
   PER-CARD 3D TILT — Glare Overlay
   ============================================================ */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s linear, box-shadow 0.4s ease;
    will-change: transform;
}

.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.25) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 20;
}

.tilt-card:hover .tilt-glare {
    opacity: 1;
}

/* ============================================================
   ODOMETER COUNTER DIGITS
   ============================================================ */
.odometer-wrap {
    display: inline-flex;
    overflow: hidden;
    height: 1.6em;
    line-height: 1.6em;
    vertical-align: bottom;
}

.odometer-digit {
    display: inline-block;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(0);
}

/* ============================================================
   CONSTELLATION CANVAS (Skills)
   ============================================================ */
#constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

#skills {
    position: relative;
    overflow: hidden;
}

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

/* ============================================================
   KEYBOARD SHORTCUT HINT TOOLTIP
   ============================================================ */
#cmd-hint-tooltip {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(0, 0, 0, 0.75);
    color: rgba(255,255,255,0.8);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    z-index: 9990;
    animation: hintFadeIn 1s ease 3s both, hintFadeOut 0.5s ease 8s both;
    pointer-events: none;
}

#cmd-hint-tooltip kbd {
    background: rgba(255,255,255,0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

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

@keyframes hintFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}

/* ============================================================
   CERTIFICATIONS bullet decoration fix
   ============================================================ */
.about-text .certifications li::before {
    content: '🏆';
    margin-right: 8px;
    font-size: 0.95rem;
}

/* ============================================================
   THEME CUSTOMIZATION MODAL
   ============================================================ */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.theme-modal-content {
    background: var(--card-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.dark-mode .theme-modal-content {
    background: var(--card-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.dark-mode .theme-modal-header {
    border-bottom-color: var(--border-dark);
}

.theme-modal-header h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

.dark-mode .theme-modal-header h3 {
    color: var(--text-dark);
}

.theme-modal-close {
    background: none;
    border: none;
    color: var(--text-muted-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.theme-modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.theme-presets h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.dark-mode .theme-presets h4 {
    color: var(--text-dark);
}

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

.theme-preset {
    background: var(--card-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.theme-preset:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.theme-preset.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

.dark-mode .theme-preset {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.preset-preview {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.default-theme {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
}

.purple-theme {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.green-theme {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.orange-theme {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.pink-theme {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.darkblue-theme {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.theme-preset span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.dark-mode .theme-preset span {
    color: var(--text-dark);
}

/* ============================================================
   MICRO-INTERACTIONS LIBRARY
   ============================================================ */
.micro-interaction {
    position: relative;
    overflow: hidden;
}

.micro-interaction::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.micro-interaction:hover::before {
    width: 200%;
    height: 200%;
}

.micro-glow {
    transition: all 0.3s ease;
}

.micro-glow:hover {
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* ============================================================
   ADVANCED CHATBOT STYLES
   ============================================================ */

.chat-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted-light);
    font-style: italic;
    font-size: 0.9rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

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

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

/* ============================================================
   ENHANCED GITHUB STATS
   ============================================================ */
.github-stats {
    background: var(--card-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.github-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dark-mode .github-stats {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: scale(1.05);
}

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

.stat-item h4 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.dark-mode .stat-item h4 {
    color: var(--text-dark);
}

.stat-item p {
    color: var(--text-muted-light);
    margin: 0;
    font-size: 0.9rem;
}

.dark-mode .stat-item p {
    color: var(--text-muted-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text {
        order: 1;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text {
        order: 1;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Phones - Large */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 15px 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .dark-mode .nav-menu {
        background-color: #2d2d2d;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin: 20px 0;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .github-stats {
        justify-content: center;
        gap: 20px;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* About Section */
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-date {
        font-size: 0.85rem;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-tech-stack {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .project-tech-stack span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .skill-card {
        padding: 15px;
    }
    
    .skill-card h3 {
        font-size: 1rem;
    }
    
    /* Contact Section */
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Phones - Small */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .theme-toggle,
    .theme-customize {
        width: 35px;
        height: 35px;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .achievement-badges {
        bottom: -15px;
    }
    
    .badge {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* About Section */
    .timeline-item {
        margin-bottom: 15px;
    }
    
    .timeline-content h5 {
        font-size: 0.95rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Projects Section */
    .project-card {
        padding: 15px;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .project-card p {
        font-size: 0.9rem;
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .skill-card {
        padding: 12px;
        text-align: center;
    }
    
    .skill-card h3 {
        font-size: 0.95rem;
    }
    
    .skill-card p {
        font-size: 0.85rem;
    }
    
    /* Contact Section */
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    /* Chatbot */
    .chat-window {
        width: 95%;
        height: 70vh;
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-header h4 {
        font-size: 0.95rem;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .chat-bubble {
        max-width: 85%;
        font-size: 0.85rem;
    }
    
    .chat-input-area {
        padding: 10px 15px;
    }
    
    .chat-input-area input {
        font-size: 0.9rem;
    }
    
    /* Theme Modal */
    .theme-modal-content {
        margin: 10px;
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .theme-presets {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .theme-preset {
        padding: 15px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .theme-presets {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-container {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .image-wrapper {
        width: 180px;
        height: 180px;
    }
}

/* High DPI Mobile */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none), (max-width: 768px) {
    * { 
        cursor: auto !important; 
    }
    
    #cursor, #cursor-follower { 
        display: none !important; 
    }
}