/* ==================== CSS RESET & GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Dark Theme Colors (Default) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #cbd5e1;
    --accent-color: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-bg: rgba(34, 197, 94, 0.1);
    --error-bg: rgba(239, 68, 68, 0.1);
}

body.light-mode {
    /* Light Theme Colors - Blueish Gradient Theme */
    --bg-primary: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --accent-color: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --card-bg: rgba(59, 130, 246, 0.05);
    --border-color: rgba(59, 130, 246, 0.15);
    --shadow-color: rgba(59, 130, 246, 0.1);
    --success-bg: rgba(34, 197, 94, 0.15);
    --error-bg: rgba(239, 68, 68, 0.15);
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: var(--bg-primary);
}

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

/* ==================== THEME TOGGLE STYLES ==================== */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.theme-switch {
    display: none;
}

.theme-label {
    display: block;
    width: 60px;
    height: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-label i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all 0.3s ease;
}

.theme-label .fa-moon {
    left: 8px;
    color: #94a3b8;
}

.theme-label .fa-sun {
    right: 8px;
    color: #f59e0b;
}

.theme-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(30px);
}

.theme-switch:checked + .theme-label {
    background: rgba(59, 130, 246, 0.1);
}

/* ==================== NAVIGATION STYLES ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(240, 249, 255, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px var(--shadow-color);
}

body.light-mode .navbar.scrolled {
    background: rgba(240, 249, 255, 0.98);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

/* Navigation Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hire-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-line {
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION STYLES ==================== */
#header {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

body.light-mode #header {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

body.light-mode #header::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Text Content */
.hero-text {
    animation: slideInLeft 1s ease;
}

.greeting-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.greeting-icon {
    font-size: 1.5rem;
    animation: wave 2s infinite;
}

.greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.title-line.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Typewriter Animation */
.typewriter-container {
    margin: 30px 0;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.typewriter-container::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    animation: typingLine 2s infinite;
}

.animated-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin: 30px 0;
    line-height: 1.8;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.primary-btn {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

body.light-mode .primary-btn {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
}

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

.secondary-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* Hero Image Animation */
.hero-image {
    position: relative;
    animation: floatIn 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateX(50px);
}

.floating-image-container {
    position: relative;
    width: 100%;
    height: 500px;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 0;
    right: 0;
    animation: floatShape 20s infinite linear;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 0;
    animation: floatShape 15s infinite linear reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 150px;
    left: 50px;
    animation: floatShape 25s infinite linear;
}

/* 3D Image Container */
.image-3d-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transform: translateZ(40px);
    box-shadow: 
        0 20px 40px var(--shadow-color),
        inset 0 0 60px rgba(99, 102, 241, 0.3);
    border: 8px solid var(--border-color);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary), #3b82f6);
    border-radius: 50%;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

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

.image-wrapper:hover .profile-image {
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

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

/* ==================== COMMON SECTION STYLES ==================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.light-mode .section-label {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
}

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

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ==================== ABOUT SECTION STYLES ==================== */
#about {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.light-mode #about {
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* About Stats */
.about-stats {
    margin-bottom: 40px;
}

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

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

body.light-mode .stat-icon {
    background: rgba(59, 130, 246, 0.1);
}

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

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

/* About Text Content */
.about-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

/* About Tabs */
.about-tabs {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

body.light-mode .about-tabs {
    background: rgba(59, 130, 246, 0.05);
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

body.light-mode .tab-btn.active {
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.tab-btn:hover:not(.active) {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.tabs-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

/* Skills Mini (in About section) */
.skills-mini {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.skill-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

body.light-mode .skill-progress {
    background: rgba(15, 23, 42, 0.1);
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Experience Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.timeline-item {
    padding-left: 20px;
    border-left: 2px solid var(--accent-color);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-date {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.education-date {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== SKILLS SECTION STYLES ==================== */
#skill {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.light-mode #skill {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

/* Skill Cards */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px var(--shadow-color);
}

body.light-mode .skill-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    z-index: -1;
}

body.light-mode .icon-bg {
    background: rgba(59, 130, 246, 0.1);
}

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

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.light-mode .tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==================== PROJECTS SECTION STYLES ==================== */
#project {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.light-mode #project {
    background: #ffffff;
}

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

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px var(--shadow-color);
}

body.light-mode .project-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-project {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.project-card:hover .view-project {
    transform: scale(1);
}

/* Project Content */
.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.light-mode .project-category {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

body.light-mode .tech-tag {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.project-links {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    padding: 15px 40px;
}

.view-all-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* ==================== CONTACT SECTION STYLES ==================== */
#contact {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.light-mode #contact {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: center;
}

/* Contact Illustration */
.contact-illustration {
    position: relative;
    padding: 40px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.contact-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.1;
    filter: blur(40px);
    animation: floatContact 15s infinite ease-in-out;
}

.contact-shape.shape-1 {
    width: 200px;
    height: 200px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.contact-shape.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 40px;
    right: 30px;
    animation-delay: 2s;
}

.contact-shape.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.contact-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.illustration-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: floatImage 6s infinite ease-in-out;
}

.contact-info-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.light-mode .info-item {
    background: rgba(59, 130, 246, 0.05);
}

.info-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.1);
}

body.light-mode .info-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    min-width: 30px;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(59, 130, 246, 0.05);
}

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

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Submit Button with Spinner */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    min-height: 52px;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

body.light-mode .submit-btn:hover:not(:disabled) {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner for loading state */
.spinner {
    display: flex;
    gap: 4px;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Form Messages */
.form-success {
    background: var(--success-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    display: none;
    align-items: center;
    gap: 20px;
    color: #22c55e;
}

.form-error {
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    display: none;
    align-items: center;
    gap: 20px;
    color: #ef4444;
}

.success-icon,
.error-icon {
    font-size: 2.5rem;
    min-width: 40px;
}

.success-content h4,
.error-content h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.success-content p,
.error-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== FOOTER STYLES ==================== */
footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

body.light-mode footer {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

/* Footer Logo */
.footer-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Footer Links */
.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.link-list,
.service-list {
    list-style: none;
}

.link-list li,
.service-list li {
    margin-bottom: 12px;
}

.link-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.service-list li {
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Footer Newsletter */
.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

body.light-mode .newsletter-form input {
    background: rgba(59, 130, 246, 0.05);
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
}

.newsletter-form button {
    width: 45px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

body.light-mode .footer-social-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

@keyframes typingLine {
    0%, 100% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes textAnimation {
    0%, 25% {
        content: "Frontend Developer";
    }
    26%, 50% {
        content: "UI/UX Designer";
    }
    51%, 75% {
        content: "Web Developer";
    }
    76%, 100% {
        content: "Problem Solver";
    }
}

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

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

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

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

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

@keyframes floatContact {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hero-content {
        gap: 20px;
    }
    
    .image-3d-container {
        width: 350px;
        height: 350px;
    }
    
    .contact-illustration {
        min-height: 450px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 12px 0;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: flex;
        
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-color);
        gap: 10px;
    }
    
    body.light-mode .nav-menu {
        background: rgba(240, 249, 255, 0.98);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 12px;
        justify-content: flex-start;
        border: 1px solid var(--border-color);
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.2);
        transform: translateX(10px);
    }
    
    .hire-btn {
        display: none;
    }
    
    /* Hamburger Menu Animation */
    .menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Typography Adjustments */
    .title-line {
        font-size: 2.8rem;
    }
    
    .animated-text {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Layout Adjustments */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-actions .theme-toggle {
        margin-right: 10px;
    }
    
    .theme-label {
        width: 50px;
        height: 26px;
    }
    
    .theme-ball {
        width: 22px;
        height: 22px;
    }
    
    .theme-switch:checked + .theme-label .theme-ball {
        transform: translateX(24px);
    }
    
}
    

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: flex;
        
    }
    
   
     
     .hero-content{
    display: flex;
    flex-direction: column;   /* text first then image */
    align-items: center;
    text-align: center;
    gap: 15px;                /* minimum spacing */
  }

  /* text first */
  .hero-text{
    order: 1;
  }

  /* image after text */
  .hero-image{
    order: 2;
    margin-top: 10px;
  }

  /* remove extra height gap */
  #header{
    height: auto;
    min-height: auto;
    padding: 40px 15px;
  }

  /* control big image size on mobile */
  .profile-image{
    width: 220px;
    height: 220px;
    object-fit: cover;
  }

  /* remove extra spacing */
  .hero-title{
    margin-bottom: 5px;
  }

  .hero-description{
    margin-bottom: 10px;
  }
  .image-wrapper{
    width: 300px;
    height: 300px;
    margin: auto;
  }

  .profile-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* ////////////// */
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-color);
        gap: 10px;
    }
    
    body.light-mode .nav-menu {
        background: rgba(240, 249, 255, 0.98);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 12px;
        justify-content: flex-start;
        border: 1px solid var(--border-color);
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.2);
        transform: translateX(10px);
    }
    
    .hire-btn {
        display: none;
    }
    
    /* Hamburger Menu Animation */
    .menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Typography Adjustments */
    .title-line {
        font-size: 2.8rem;
    }
    
    .animated-text {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Layout Adjustments */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-actions .theme-toggle {
        margin-right: 10px;
    }
    
    .theme-label {
        width: 50px;
        height: 26px;
    }
    
    .theme-ball {
        width: 22px;
        height: 22px;
    }
    
    .theme-switch:checked + .theme-label .theme-ball {
        transform: translateX(24px);
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .image-3d-container {
        width: 250px;
        height: 250px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        text-align: center;
        justify-content: center;
    }
    
    .nav-menu {
        width: 100%;
        padding: 100px 20px 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-illustration {
        padding: 20px;
    }
    
    .contact-image {
        max-width: 250px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}

/* Mobile Menu Overlay */
.nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: whitesmoke;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-menu.active::before {
    opacity: 1;
    visibility: visible;
}

/* Additional Styles for Missing Elements */
.highlight {
    color: var(--accent-color);
}

/* Fix for SVG Illustration */
.illustration-img {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    width: 100%;
    height: auto;
}

body.light-mode .illustration-img {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

/* Ripple Effect for Buttons */
.btn, .hire-btn, .submit-btn, .project-link {
    position: relative;
    overflow: hidden;
}

.btn::after, .hire-btn::after, .submit-btn::after, .project-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after, 
.hire-btn:focus:not(:active)::after, 
.submit-btn:focus:not(:active)::after,
.project-link:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Additional Responsive Fixes */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar, .scroll-indicator, .hero-buttons, .theme-toggle, .hire-btn {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    #header {
        padding-top: 40px !important;
        min-height: auto !important;
    }
}