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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #34d399;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Strict Theme-Based Orbit Ring Colors */
[data-theme="dark"] .orbit-ring {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .orbit-ring {
    border-color: rgba(0, 0, 0, 0.3) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}


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

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Animated Letter Text Styles */
@keyframes diamond-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.animated-letter-text {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.animated-letter-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 -0.02em;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)) drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.animated-diamond-rotate {
    animation: diamond-rotate 3s linear infinite;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(17, 24, 39, 0.95);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-left: 0.2rem;
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="100" fill="rgba(255,255,255,0.03)">&lt;/&gt;</text></svg>');
    background-size: 100px 100px;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.text-rotate {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: 2px solid var(--primary-color);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-rotate span {
    display: inline-block;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
    border-color: transparent;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

.btn-secondary:hover::before {
    left: 0;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* Profile Image Styles */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    opacity: 1 !important;
}

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

.profile-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: var(--gradient);
    z-index: -1;
    animation: rotate 10s linear infinite;
}

.profile-info {
    text-align: center;
}

.profile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

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

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

.wave {
    display: inline-block;
    animation: wave 1s infinite;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.medium-globe {
    width: 70px;
    height: 70px;
}

.large-globe {
    width: 120px;
    height: 120px;
}

.about-globe {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* About Section */
.about {
    background: var(--bg-primary);
    padding: 5rem 0;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.project-card {
background: var(--bg-primary);
border-radius: 1rem;
padding: 2rem;
box-shadow: var(--shadow-lg);
transition: all 0.3s ease;
border: 1px solid var(--border-color);
position: relative;
}

.project-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px solid transparent;
border-radius: 1rem;
transition: all 0.3s ease;
z-index: -1;
}

.project-card:hover::before {
border-color: var(--primary-color);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.project-link:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.project-link:hover::before {
    left: 0;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    z-index: -1;
}

.skill-category:hover::before {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.rotating-globe {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: rotate-globe 10s linear infinite;
    position: relative;
    margin: 0 auto 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000;
    /* Default light mode styles */
    background: radial-gradient(circle at 30% 30%, #e0e0e0 0%, #b0b0b0 50%, #808080 100%);
    border: 2px solid #a0a0a0;
    box-shadow: 
        0 0 20px rgba(200, 200, 200, 0.4),
        0 0 40px rgba(160, 160, 160, 0.2),
        inset 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Sun appearance in dark mode */
.dark .rotating-globe {
    background: radial-gradient(circle at 30% 30%, #ffeb3b 0%, #ff9800 50%, #ff6f00 100%) !important;
    border: 2px solid #ffa500 !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 152, 0, 0.4),
        0 0 90px rgba(255, 111, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
    animation: rotate-globe 10s linear infinite, sun-pulse 2s ease-in-out infinite !important;
    /* Override moon styles completely */
    background: radial-gradient(circle at 30% 30%, #ffeb3b 0%, #ff9800 50%, #ff6f00 100%) !important;
    border: 2px solid #ffa500 !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 152, 0, 0.4),
        0 0 90px rgba(255, 111, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

/* Sun rays effect */
.dark .rotating-globe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, 
        rgba(255, 235, 59, 0.3) 0%, 
        rgba(255, 235, 59, 0.1) 40%, 
        rgba(255, 235, 59, 0) 70%);
    transform: translate(-50%, -50%);
    animation: sun-rays 3s linear infinite;
}

/* Enhanced Moon appearance in light mode */
:not(.dark) .rotating-globe {
    background: radial-gradient(circle at 30% 30%, #e0e0e0 0%, #b0b0b0 50%, #808080 100%);
    border: 2px solid #a0a0a0;
    box-shadow: 
        0 0 20px rgba(200, 200, 200, 0.4),
        0 0 40px rgba(160, 160, 160, 0.2),
        inset 0 0 15px rgba(0, 0, 0, 0.2);
    animation: rotate-globe 10s linear infinite, moon-float 4s ease-in-out infinite;
}

/* Moon craters effect */
:not(.dark) .rotating-globe::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 20%;
    height: 20%;
    background: radial-gradient(circle, rgba(120, 120, 120, 0.4) 0%, rgba(120, 120, 120, 0) 70%);
    border-radius: 50%;
    animation: moon-crater 6s ease-in-out infinite;
}

:not(.dark) .rotating-globe::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 65%;
    width: 15%;
    height: 15%;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.3) 0%, rgba(100, 100, 100, 0) 60%);
    border-radius: 50%;
    animation: moon-crater 8s ease-in-out infinite;
}

/* Additional animations */
@keyframes sun-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 152, 0, 0.4),
            0 0 90px rgba(255, 111, 0, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 1),
            0 0 80px rgba(255, 152, 0, 0.6),
            0 0 120px rgba(255, 111, 0, 0.3),
            inset 0 0 25px rgba(255, 255, 255, 0.4);
    }
}

@keyframes sun-rays {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes moon-crater {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.small-globe {
    width: 50px;
    height: 50px;
}

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

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 90px;
    background: var(--bg-secondary);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: -1;
    cursor: pointer;
    position: relative;
}

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-link:active {
    transform: translateY(-2px) scale(0.98);
}

.contact-link i {
    font-size: 2.2rem;
    margin-right: 1rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.contact-link span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    z-index: -1;
}

.contact-link:hover::before {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.contact-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.25);
    color: white;
    border-color: transparent;
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

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

    /* Simple, reliable hover effects */
.btn:hover,
.btn:focus,
.btn:active,
.project-link:hover,
.project-link:focus,
.project-link:active,
.contact-link:hover,
.contact-link:focus,
.contact-link:active,
.social-link:hover,
.social-link:focus,
.social-link:active,
.theme-toggle:hover,
.theme-toggle:focus,
.theme-toggle:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover::before,
.btn-primary:focus::before,
.btn-primary:active::before,
.btn-secondary:hover::before,
.btn-secondary:focus::before,
.btn-secondary:active::before,
.project-link:hover::before,
.project-link:focus::before,
.project-link:active::before,
.contact-link:hover::before,
.contact-link:focus::before,
.contact-link:active::before,
.social-link:hover::before,
.social-link:focus::before,
.social-link:active::before {
    left: 0;
}

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: var(--shadow-xl);
        padding: 3rem 0;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(17, 24, 39, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: var(--bg-secondary);
        transform: translateX(5px);
    }

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

    .theme-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--bg-secondary);
        border-radius: 50%;
        border: 2px solid var(--border-color);
        color: var(--text-primary);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .theme-toggle:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .theme-toggle:active {
        transform: scale(0.95);
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .about-stats {
        flex-direction: row;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 4rem 0;
    }

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

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-container {
        margin-top: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

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



/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Download Resume Button */
.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: 2px solid transparent;
}

.btn-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-resume:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-resume i {
    font-size: 1rem;
}

