/* Main Styles for Portfolio */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjust based on your header height */
}

body {
    font-family: var(--font-primary);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-accent-secondary);
}

/* Page Loader
-------------------------------------------------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-divider);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

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

/* Typography
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    margin-bottom: var(--space-4);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
    padding-bottom: var(--space-4);
}

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

/* Layout
-------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

section {
    padding: var(--space-16) 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--color-bg-secondary);
}

/* Header & Navigation
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--space-2) 0;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    padding: var(--space-1) 0;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: var(--space-6);
}

.nav-link {
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
    text-decoration: none;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease;
}







/* Buttons
-------------------------------------------------- */
.btn {
    display: inline-block;
    font-weight: var(--weight-semibold);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    border: none;
    font-family: var(--font-primary);
    font-size: var(--text-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
    transform: translateY(-1px);
}

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

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

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Hero Section - Restored to Original with Typing Effect
-------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Header height + some padding */
}

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

.hero-greeting {
    display: inline-block;
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.1s;
}

.hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-2);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.5s;
    min-height: 1.2em; /* Prevent layout shift */
}

/* Fix for Resume button in hero section */
.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    min-width: auto; /* Remove if it's forcing a circle */
    width: auto; /* Ensure it's not fixed width */
    height: auto; /* Ensure it's not fixed height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Typing Effect Styles */
.typing-text {
    color: var(--color-accent-primary);
    font-weight: var(--weight-semibold);
    position: relative;
    display: inline-block;
}

.typing-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--color-accent-primary);
    margin-left: 2px;
    animation: blink-smooth 1s infinite step-end;
    position: relative;
    top: 0.1em;
}

@keyframes blink-smooth {
    0%, 50% { 
        opacity: 1; 
        transform: scaleY(1);
    }
    51%, 100% { 
        opacity: 0; 
        transform: scaleY(1);
    }
}

.hero-text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.7s;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.9s;
}


/* Scroll Hint - Positioned more down and left */
/* Scroll Hint - Properly centered and positioned for all screens */
.hero-scroll-hint {
    position: absolute;
    bottom: 3rem; /* Moved up for all sizes */
    left: 50%; /* Centered on all screens */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
    transition: color 0.3s ease;
    z-index: 10;
}

.hero-scroll-hint:hover {
    color: var(--color-accent-primary);
}

.hero-scroll-hint svg {
    width: 24px;
    height: 24px;
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

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

/* Responsive for small screens */
@media (max-width: 768px) {
    .hero-scroll-hint {
        bottom: -4rem; /* Adjusted for small screens */
        left: 50%; /* Centered */
    }
    
    .hero-scroll-hint svg {
        width: 20px;
        height: 20px;
    }
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Original Background Animations */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-shapes .shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--color-accent-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s linear infinite alternate;
}

.shape-2 {
    bottom: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--color-accent-secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s linear infinite alternate-reverse;
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s linear infinite;
    opacity: 0.05;
}

@keyframes morph {
    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%;
    }
}

/* Fade in animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 var(--space-4);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-scroll-hint {
        bottom: var(--space-4);
    }
    
    .shape-1,
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 250px;
        height: 250px;
    }
}

/* Dark theme adjustments */
.dark-theme .shape-1,
.dark-theme .shape-2,
.dark-theme .shape-3 {
    opacity: 0.08;
}

/* Clean button hover effects */
.btn {
    transition: all 0.3s ease;
}

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

/* About section proper spacing */
section#about {
    scroll-margin-top: 80px;
}

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

/* About Section - Updated Design
-------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-8);
    align-items: center;
}

/* New About Section Styles */
.about-content-new {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text-main {
    margin-bottom: var(--space-12);
}

.about-text-main p {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    color: var(--color-text-secondary);
}

.about-text-main strong {
    color: var(--color-accent-primary);
    font-weight: var(--weight-semibold);
}

.about-text-main em {
    color: var(--color-text-primary);
    font-style: italic;
}

.social-links-wrapper {
    margin-top: 1.5rem; /* ~24px, good breathing space */
    padding-top: 0.5rem; /* just a subtle gap */
    border-top: 1px solid var(--color-divider);
}



/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-4);
    max-width: 600px;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--color-divider);
    box-shadow: var(--shadow-sm);
}

.social-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-primary);
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link-card:hover .social-icon svg {
    transform: scale(1.1);
}

.social-link-card span {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

/* Platform-specific colors */
.social-link-card:hover .social-icon.linkedin {
    background: #0077b5;
    color: white;
}

.social-link-card:hover .social-icon.github {
    background: #333;
    color: white;
}

.social-link-card:hover .social-icon.discord {
    background: #5865f2;
    color: white;
}

.social-link-card:hover .social-icon.devto {
    background: #0a0a0a;
    color: white;
}

.social-link-card:hover .social-icon.hashnode {
    background: #2962ff;
    color: white;
}

.social-link-card:hover .social-icon.leetcode {
    background: #ffa116;
    color: white;
}

/* Dark theme adjustments for new about section */
.dark-theme .social-link-card {
    background: var(--color-bg-secondary);
    border-color: var(--color-divider);
}

.dark-theme .social-link-card:hover .social-icon.devto {
    background: #f5f5f5;
    color: #0a0a0a;
}

/* Responsive design for new about section */
@media (max-width: 768px) {
    .social-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
    
    .social-link-card {
        padding: var(--space-3);
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .about-text-main p {
        font-size: var(--text-base);
    }
}

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


/* Skills Section
-------------------------------------------------- */
/* Compact Skills Section */

/* Enhanced Skills Section */
.skills-section-enhanced {
    position: relative;
    overflow: hidden;
}

.skills-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(80, 69, 228, 0.05) 0%, rgba(124, 111, 255, 0.05) 100%);
    z-index: 0;
}

.skills-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    margin-top: calc(var(--space-4) * -1);
    margin-bottom: var(--space-12);
}

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

/* Featured Skills */
.featured-skills {
    margin-bottom: var(--space-12);
}

.featured-title {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-8);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.skill-card.featured {
    background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
                var(--gradient-primary) border-box;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(80, 69, 228, 0.2);
}

.skill-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon-large {
    transform: scale(1.1) rotateY(180deg);
}

.skill-card h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.skill-level {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* All Skills Grid */
.all-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.skill-category-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-divider);
}

.skill-category-card.highlight {
    border-left-color: var(--color-accent-primary);
    background: linear-gradient(135deg, rgba(80, 69, 228, 0.03) 0%, rgba(124, 111, 255, 0.03) 100%);
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.category-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-svg {
    width: 24px;
    height: 24px;
    color: white;
}

.category-header h3 {
    font-size: var(--text-lg);
    margin: 0;
    color: var(--color-text-primary);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-tag {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--color-divider);
}

.skill-tag:hover {
    background: var(--color-accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 69, 228, 0.3);
}

.skill-tag.hot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: var(--weight-semibold);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .all-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-icon-large {
        width: 60px;
        height: 60px;
    }
}

.skills-container-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.skills-category-compact {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.skills-category-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-title-compact {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-accent-primary);
}

.category-icon {
    font-size: var(--text-2xl);
}

.skills-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: all 0.3s ease;
    border: 1px solid var(--color-divider);
}

.skill-badge:hover {
    background: var(--color-accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.skill-svg {
    width: 20px;
    height: 20px;
}

.skill-text-only {
    color: var(--color-text-primary);
}

.skill-badge:hover .skill-text-only {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-container-compact {
        grid-template-columns: 1fr;
    }
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.skills-category {
    margin-bottom: var(--space-6);
}

.category-title {
    text-align: center;
    margin-bottom: var(--space-6);
    font-size: var(--text-2xl);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: var(--space-2);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    width: 100px;
}

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

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-2);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-align: center;
}



/* Social links grid layout */


.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.social-links .social-link {
    width: 100%;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Contact Section
--------------
------------------------------------ */

/* ========================================
   UPDATED CONTACT SECTION STYLES
   ======================================== */

/* Contact Section - Modern Redesign */

.contact-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, rgba(80, 69, 228, 0.02) 0%, rgba(124, 111, 255, 0.02) 100%);
    position: relative;
}

/* Update Contact Section Title */
.contact-section .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem); /* Smaller size */
    color: #000000; /* Black color */
    background: none; /* Remove gradient */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

/* Dark theme - keep it visible */
.dark-theme .contact-section .section-title {
    color: #ffffff; /* White in dark mode */
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-10);
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Card - Enhanced */
.contact-info {
    background: var(--color-surface);
    border-radius: 24px;
    padding: var(--space-8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-divider);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-info h3 {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.contact-info p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

.contact-info a {
    color: var(--color-accent-primary);
    font-weight: var(--weight-medium);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    color: var(--color-accent-secondary);
    transform: translateX(3px);
}

/* Social Links Grid - Improved */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-divider);
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    background: var(--color-bg-primary);
    border-radius: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid var(--color-divider);
    position: relative;
    overflow: hidden;
}

.social-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(80, 69, 228, 0.15);
    border-color: var(--color-accent-primary);
}

.social-link-card:hover::before {
    transform: scaleX(1);
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-bg-secondary);
    transition: all 0.3s ease;
}

.social-icon img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-link-card:hover .social-icon {
    background: var(--gradient-primary);
    transform: rotate(360deg) scale(1.1);
}

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

.social-link-card span {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.social-link-card:hover span {
    color: var(--color-accent-primary);
}

/* Contact Form - Modern Design */
.contact-form {
    background: var(--color-surface);
    border-radius: 24px;
    padding: var(--space-8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-divider);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: var(--space-4) var(--space-4);
    border: 2px solid var(--color-divider);
    border-radius: 12px;
    background: var(--color-bg-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 4px rgba(80, 69, 228, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form .btn-primary {
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(80, 69, 228, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(80, 69, 228, 0.4);
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Status Messages */
.form-status {
    margin-top: var(--space-2);
    animation: slideDown 0.3s ease;
}

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

.success-message {
    padding: var(--space-4);
    border-radius: 12px;
    text-align: center;
    font-weight: var(--weight-medium);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    color: #27ae60;
    border: 2px solid rgba(46, 204, 113, 0.3);
    animation: slideDown 0.3s ease;
}

.error-message {
    padding: var(--space-4);
    border-radius: 12px;
    text-align: center;
    font-weight: var(--weight-medium);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    color: #c0392b;
    border: 2px solid rgba(231, 76, 60, 0.3);
    animation: slideDown 0.3s ease;
}

/* Dark Theme Adjustments */
.dark-theme .contact-section {
    background: linear-gradient(135deg, rgba(124, 111, 255, 0.03) 0%, rgba(80, 69, 228, 0.03) 100%);
}

.dark-theme .contact-info,
.dark-theme .contact-form {
    background: var(--color-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .social-link-card {
    background: var(--color-bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .social-icon {
    background: var(--color-bg-secondary);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background: var(--color-bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .social-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: var(--space-16) 0;
    }
    
    .contact-info,
    .contact-form {
        padding: var(--space-6);
        border-radius: 20px;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .social-link-card {
        padding: var(--space-4);
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon img {
        width: 24px;
        height: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: var(--space-3);
    }
    
    .contact-form .btn-primary {
        padding: var(--space-3) var(--space-6);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.contact-info {
    padding: var(--space-6);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    margin-bottom: var(--space-4);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.social-links .social-link {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
}

.form-group input,
.form-group textarea {
    padding: var(--space-3);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 2px rgba(80, 69, 228, 0.1);
}

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

.form-status {
    margin-top: var(--space-4);
}

.success-message,
.error-message {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: var(--weight-medium);
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* Social links grid layout */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.social-links .social-link {
    width: 100%;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Footer
-------------------------------------------------- */
.footer {
    background-color: var(--color-bg-secondary);
    padding: var(--space-8) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent-primary);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-accent-primary);
}

.back-to-top:hover svg {
    color: white;
}

/* Animation Classes
-------------------------------------------------- */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes
-------------------------------------------------- */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

/* Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-primary);
    z-index: 1000;
    transition: width 0.1s;
}

/* Active Section Styling */
section[data-active="true"] {
    animation: section-focus 0.5s ease forwards;
}

@keyframes section-focus {
    from { opacity: 0.8; }
    to { opacity: 1; }
}


/* Terminal Styles */
.terminal-container {
    position: fixed;
    bottom: 80px; /* Position above toggle button */
    right: 20px;
    width: 500px;
    height: 300px;
    background-color: rgba(20, 20, 20, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(calc(100% + 100px));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-container.open {
    transform: translateY(0);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.control:hover {
    opacity: 0.7;
}

.control.close {
    background-color: #ff5f56;
}

.control.minimize {
    background-color: #ffbd2e;
}

.control.maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: #ddd;
    font-family: var(--font-secondary, 'Courier New', monospace);
    font-size: 14px;
    font-weight: 500;
}

.terminal-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: #ddd;
    font-family: var(--font-secondary, 'Courier New', monospace);
    font-size: 14px;
    line-height: 1.5;
}

.terminal-output {
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.terminal-output p {
    margin: 5px 0;
}

.terminal-prompt {
    color: #5ebf50;
    margin-right: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ddd;
    font-family: var(--font-secondary, 'Courier New', monospace);
    font-size: 14px;
    outline: none;
    padding: 0;
    margin-left: 8px;
}

.terminal-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary, #5045E4);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(80, 69, 228, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.terminal-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 69, 228, 0.4);
}

.terminal-toggle:active {
    transform: translateY(-1px);
}

.terminal-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.command {
    color: var(--color-accent-primary, #5045E4);
    font-weight: bold;
}

/* Dark theme adjustments */
.dark-theme .terminal-container {
    background-color: rgba(10, 10, 10, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .terminal-header {
    background-color: rgba(20, 20, 20, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-container {
        width: calc(100% - 40px);
        height: 250px;
        bottom: 90px;
    }
    
    .terminal-toggle {
        right: 50%;
        transform: translateX(50%);
    }
    
    .terminal-toggle:hover {
        right: 50%;
        transform: translateX(50%) translateY(-3px);
    }
}

/* Dark theme adjustments */
.dark-theme .terminal-container {
    background-color: rgba(15, 15, 15, 0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-container {
        width: calc(100% - 40px);
        height: 250px;
    }
}

/* Easter Egg Styles */
.easter-egg-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.easter-egg-popup.active {
    opacity: 1;
    visibility: visible;
}

.easter-egg-content {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.easter-egg-popup.active .easter-egg-content {
    transform: scale(1);
}

.easter-egg-message {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(var(--color-accent-primary-rgb), 0.1);
    border-radius: 8px;
}

.rainbow-mode {
    animation: rainbow-background 5s linear infinite;
}

@keyframes rainbow-background {
    0% { background-color: #ff0000; }
    14% { background-color: #ff7f00; }
    28% { background-color: #ffff00; }
    42% { background-color: #00ff00; }
    56% { background-color: #0000ff; }
    70% { background-color: #4b0082; }
    84% { background-color: #8b00ff; }
    100% { background-color: #ff0000; }
}

.rainbow-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: notification-slide 0.5s ease, rainbow-text 3s linear infinite;
}

@keyframes notification-slide {
    from { transform: translate(-50%, -30px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes rainbow-text {
    0% { color: #ff0000; }
    14% { color: #ff7f00; }
    28% { color: #ffff00; }
    42% { color: #00ff00; }
    56% { color: #0000ff; }
    70% { color: #4b0082; }
    84% { color: #8b00ff; }
    100% { color: #ff0000; }
}

/* Guided Tour Styles */
/* Enhanced Tour Styles - Avoids Social Sidebar Collision */

/* Tour popup with better collision detection */
.tour-popup {
    position: fixed;
    background-color: var(--color-surface);
    border-radius: 8px;
    width: 300px;
    max-width: calc(100vw - 100px); /* Account for social sidebar */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 998; /* Just below social sidebar z-index */
    padding: 15px;
    animation: popup-appear 0.3s ease forwards;
}

/* Ensure tour popup doesn't go behind sidebar */
.tour-popup.position-right {
    max-width: calc(100vw - 120px); /* More space for sidebar */
}

/* Special positioning for steps that might collide */
.tour-popup.avoiding-sidebar {
    right: 120px !important; /* Force away from sidebar */
    left: auto !important;
}

/* Tour overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 995;
    pointer-events: none;
}

/* Tour highlight with better z-index */
.tour-highlight {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 0 0 4px var(--color-accent-primary);
    z-index: 996;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
}

.tour-highlight.active {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 4px rgba(var(--color-accent-primary-rgb), 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(var(--color-accent-primary-rgb), 0.4); }
    100% { box-shadow: 0 0 0 4px rgba(var(--color-accent-primary-rgb), 0.6); }
}

/* Tour popup arrow adjustments */
.tour-popup:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--color-surface);
    transform: rotate(45deg);
    z-index: -1;
}

.tour-popup.position-top:before {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
}

.tour-popup.position-right:before {
    left: -6px;
    top: 50%;
    margin-top: -6px;
}

.tour-popup.position-bottom:before {
    top: -6px;
    left: 50%;
    margin-left: -6px;
}

.tour-popup.position-left:before {
    right: -6px;
    top: 50%;
    margin-top: -6px;
}

/* Tour button positioning to avoid sidebar */
.tour-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 990; /* Below social sidebar */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-popup {
        width: calc(100% - 40px);
        max-width: 300px;
    }
    
    .tour-popup.position-right,
    .tour-popup.avoiding-sidebar {
        max-width: calc(100% - 40px);
        right: 20px !important;
    }
}

/* Special handling for timeline section */
.tour-popup.timeline-step {
    right: 120px !important;
    left: auto !important;
}

/* Special handling for projects section */
.tour-popup.projects-step {
    right: 120px !important;
    left: auto !important;
}

.tour-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 990;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 995;
    pointer-events: none;
}

.tour-highlight {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 0 0 4px var(--color-accent-primary);
    z-index: 996;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
}

.tour-highlight.active {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 4px rgba(var(--color-accent-primary-rgb), 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(var(--color-accent-primary-rgb), 0.4); }
    100% { box-shadow: 0 0 0 4px rgba(var(--color-accent-primary-rgb), 0.6); }
}

.tour-popup {
    position: fixed;
    background-color: var(--color-surface);
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 997;
    padding: 15px;
    animation: popup-appear 0.3s ease forwards;
}

@keyframes popup-appear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.tour-popup:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--color-surface);
    transform: rotate(45deg);
}

.tour-popup.position-top:before {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
}

.tour-popup.position-right:before {
    left: -6px;
    top: 50%;
    margin-top: -6px;
}

.tour-popup.position-bottom:before {
    top: -6px;
    left: 50%;
    margin-left: -6px;
}

.tour-popup.position-left:before {
    right: -6px;
    top: 50%;
    margin-top: -6px;
}

.tour-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-indicator {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.close-tour {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.tour-popup h3 {
    margin-bottom: 8px;
    color: var(--color-accent-primary);
}

.tour-popup p {
    margin-bottom: 15px;
}

.tour-popup-footer {
    display: flex;
    justify-content: space-between;
}

.tour-popup button {
    background-color: var(--color-bg-secondary);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tour-popup button:hover {
    background-color: var(--color-accent-primary);
    color: white;
}

.tour-next, .tour-finish {
    background-color: var(--color-accent-primary) !important;
    color: white;
}

.tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tour-modal.active {
    opacity: 1;
    visibility: visible;
}

.tour-modal-content {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tour-modal.active .tour-modal-content {
    transform: scale(1);
}

.tour-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* For small screens */
@media (max-width: 768px) {
    .tour-button span {
        display: none;
    }
    
    .tour-popup {
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

/* 3D Background Styles */
.background-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* Adjust opacity in dark mode */
.dark-theme .background-3d {
    opacity: 0.5;
}

/* Hide on mobile to preserve performance */
@media (max-width: 768px) {
    .background-3d {
        display: none;
    }
}



/* ----- Social Sidebar - Right Side with proper dark theme support ---- */
.fixed-social-bar {
    position: fixed;
    right: 30px;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.social-icons-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.social-link-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
    text-decoration: none;
    border-radius: 50%;
    position: relative;
}

.social-link-item:hover {
    transform: translateY(-3px);
    background-color: rgba(80, 69, 228, 0.1);
}

/* Creative touch: Add a subtle glow effect on hover */
.social-link-item::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 69, 228, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link-item:hover::before {
    opacity: 1;
}

.social-svg-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: color 0.3s ease;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.social-link-item:hover .social-svg-icon {
    color: #5045e4;
    filter: drop-shadow(0 0 8px rgba(80, 69, 228, 0.3));
}

.social-divider-line {
    width: 1px;
    height: 60px;
    background-color: #64748b;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Email Bar - Left Side */
.fixed-email-bar {
    position: fixed;
    left: 30px;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.email-vertical-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    transform: translateY(0);
    margin-bottom: 15px;
    padding: 10px 8px;
    border-radius: 4px;
}

.email-vertical-link:hover {
    color: #5045e4;
    transform: translateY(-3px);
    background-color: rgba(80, 69, 228, 0.1);
    box-shadow: 0 4px 12px rgba(80, 69, 228, 0.15);
}

.email-divider-line {
    width: 1px;
    height: 60px;
    background-color: #64748b;
    opacity: 0.5;
}

/* Dark theme support */
.dark-theme .social-svg-icon,
.dark-theme .social-divider-line,
.dark-theme .email-vertical-link,
.dark-theme .email-divider-line {
    color: #94a3b8;
    opacity: 0.8;
}

.dark-theme .social-divider-line,
.dark-theme .email-divider-line {
    background-color: #94a3b8;
}

.dark-theme .social-link-item:hover .social-svg-icon,
.dark-theme .email-vertical-link:hover {
    color: #7c6fff;
}

.dark-theme .social-link-item:hover {
    background-color: rgba(124, 111, 255, 0.1);
}

.dark-theme .social-link-item::before {
    background: radial-gradient(circle, rgba(124, 111, 255, 0.3) 0%, transparent 70%);
}

.dark-theme .email-vertical-link:hover {
    background-color: rgba(124, 111, 255, 0.1);
    box-shadow: 0 4px 12px rgba(124, 111, 255, 0.2);
}

/* Ensure proper visibility in dark mode */
.dark-theme .social-svg-icon {
    stroke: #94a3b8;
}

.dark-theme .social-link-item:hover .social-svg-icon {
    stroke: #7c6fff;
}

/* Tablet adjustments */
@media (max-width: 1200px) {
    .fixed-social-bar {
        right: 20px;
    }
    
    .fixed-email-bar {
        left: 20px;
    }
    
    .social-icons-list {
        gap: 6px;
    }
    
    .social-link-item {
        width: 32px;
        height: 32px;
    }
    
    .social-svg-icon {
        width: 18px;
        height: 18px;
    }
}

/* Mobile optimizations - Keep visible but adjust positioning */
@media (max-width: 768px) {
    /* Move social bar to bottom-right corner */
    .fixed-social-bar {
        right: 12px;
        bottom: 12px;
    }
    
    /* Move email bar to bottom-left corner */
    .fixed-email-bar {
        left: 12px;
        bottom: 12px;
    }
    
    /* Reduce spacing and sizes */
    .social-icons-list {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .social-link-item {
        width: 28px;
        height: 28px;
        background-color: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(8px);
    }
    
    .social-svg-icon {
        width: 16px;
        height: 16px;
    }
    
    .social-divider-line,
    .email-divider-line {
        height: 40px;
    }
    
    .email-vertical-link {
        font-size: 11px;
        padding: 8px 6px;
        background-color: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(8px);
    }
    
    /* Dark theme mobile adjustments */
    .dark-theme .social-link-item {
        background-color: rgba(30, 41, 59, 0.8);
    }
    
    .dark-theme .email-vertical-link {
        background-color: rgba(30, 41, 59, 0.8);
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .fixed-social-bar {
        right: 8px;
        bottom: 8px;
    }
    
    .fixed-email-bar {
        left: 8px;
        bottom: 8px;
    }
    
    .social-link-item {
        width: 32px;
        height: 32px;
    }
    
    .social-svg-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Hide divider lines on very small screens for cleaner look */
    .social-divider-line,
    .email-divider-line {
        display: none;
    }
    
    .social-icons-list {
        margin-bottom: 0;
    }
    
    .email-vertical-link {
        margin-bottom: 0;
    }
}

/* Creative addition: Pulse animation on page load */
@keyframes socialPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.social-link-item {
    animation: socialPulse 2s ease-in-out;
}

.social-link-item:nth-child(1) { animation-delay: 0.1s; }
.social-link-item:nth-child(2) { animation-delay: 0.2s; }
.social-link-item:nth-child(3) { animation-delay: 0.3s; }

/* Smooth entrance animation for the bars */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fixed-social-bar {
    animation: slideInFromRight 0.8s ease-out;
}

.fixed-email-bar {
    animation: slideInFromLeft 0.8s ease-out;
}