/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --card-bg: rgba(20, 20, 30, 0.8);
    --shadow: rgba(0,0,0,0.5);
    --border-color: rgba(255, 107, 53, 0.3);
    --section-bg: #111111;
    --footer-bg: #0a0a0a;
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ff9500;
    --gradient: linear-gradient(135deg, #ff6b35, #f7931e, #ff0080);
    --gradient-3d: linear-gradient(45deg, #ff6b35, #f7931e, #ff0080, #8a2be2);
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --border-radius-sm: 15px;
    --border-radius-md: 25px;
    --transition-speed: 0.4s ease;
    --glow: 0 0 20px rgba(255, 107, 53, 0.5);
    --glow-strong: 0 0 40px rgba(255, 107, 53, 0.8);
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #f8f9fa;
    --shadow: rgba(0,0,0,0.1);
    --border-color: #e0e0e0;
    --section-bg: #f5f5f5;
    --footer-bg: #ffffff;
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --accent-color: #ff9500;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #2d2d2d;
    --shadow: rgba(0,0,0,0.3);
    --border-color: #555;
    --section-bg: #222;
    --footer-bg: #1a1a1a;
    --primary-color: #ff8c69;
    --secondary-color: #ffa500;
    --accent-color: #ffb347;
}

body {
    font-family: var(--body-font);
    scroll-behavior: smooth;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    transition: all var(--transition-speed);
    perspective: 2000px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,107,53,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(138,43,226,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: holographicShift 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,107,53,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(138,43,226,0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,20,147,0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: matrixRain 15s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes matrixRain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

@keyframes holographicShift {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    33% { opacity: 0.6; transform: scale(1.1) rotate(120deg); }
    66% { opacity: 0.4; transform: scale(0.9) rotate(240deg); }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    background: linear-gradient(135deg, rgba(0,10,30,0.95), rgba(10,10,20,0.9));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0,255,255, 0.3);
    z-index: 10000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 2px solid rgba(0,255,255, 0.4);
    transform-style: preserve-3d;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.1), transparent);
    animation: navScan 5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes navScan {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--heading-font);
    text-shadow: var(--glow);
    transform: perspective(500px) rotateY(-10deg);
    transition: all var(--transition-speed);
}

nav .logo:hover {
    transform: perspective(500px) rotateY(10deg) scale(1.1);
    filter: drop-shadow(var(--glow-strong));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    position: relative;
    z-index: 10001;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
    padding: 10px 15px;
    border-radius: 10px;
    transform-style: preserve-3d;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    border-radius: 10px;
    opacity: 0;
    transform: translateZ(-1px);
    transition: opacity var(--transition-speed);
}

.nav-links a:hover {
    color: white;
    transform: translateY(-3px) translateZ(10px);
    box-shadow: var(--glow);
}

.nav-links a:hover::before {
    opacity: 1;
}

.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow);
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all var(--transition-speed);
}

/* Sections */
.section {
    padding: 100px 20px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: all var(--transition-speed);
}

.section:hover {
    transform: perspective(2000px) rotateX(1deg);
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
    font-family: var(--heading-font);
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    text-shadow: 0 0 20px rgba(0,255,255,0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(0,255,255,0.5); }
    50% { text-shadow: 0 0 30px rgba(0,255,255,0.8), 0 0 40px rgba(255,107,53,0.3); }
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

/* Home */
.home {
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0,20,40, 0.9) 0%, rgba(0,0,0, 0.95) 100%), 
                linear-gradient(45deg, rgba(0,255,255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, rgba(0,255,255,0.6), transparent),
        radial-gradient(1px 1px at 75px 75px, rgba(255,107,53,0.4), transparent),
        radial-gradient(1px 1px at 125px 25px, rgba(138,43,226,0.5), transparent);
    background-size: 150px 150px;
    animation: floatingParticles 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatingParticles {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-150px, -150px) rotate(360deg); }
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(100,100,100,0.1), rgba(150,150,150,0.1));
    z-index: 1;
}

.home .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ff0080) padding-box,
                linear-gradient(45deg, #ff6b35, #f7931e, #ff0080, #8a2be2) border-box;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 
                0 0 50px rgba(255,107,53,0.6),
                inset 0 0 20px rgba(255,255,255,0.1);
    transition: all var(--transition-speed);
    object-fit: cover;
    transform: translateZ(50px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateZ(50px) translateY(0px) rotateY(0deg); }
    50% { transform: translateZ(50px) translateY(-20px) rotateY(10deg); }
}

.profile-photo:hover {
    transform: translateZ(80px) scale(1.1) rotateY(15deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 
                0 0 80px rgba(255,107,53,1),
                inset 0 0 30px rgba(255,255,255,0.2);
    animation-play-state: paused;
}

.home h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-family: var(--heading-font);
    color: white;
}

.home p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    background: var(--gradient);
    transition: all var(--transition-speed);
    font-weight: 700;
    border: none;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 
                0 0 20px rgba(255,107,53,0.4),
                inset 0 2px 10px rgba(255,255,255,0.2);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn:hover {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 
                0 0 40px rgba(255,107,53,0.8),
                inset 0 2px 15px rgba(255,255,255,0.3);
}

.btn:hover::before {
    left: 100%;
}

.secondary-btn {
    background: var(--accent-color);
}

.secondary-btn:hover {
    background: var(--secondary-color);
}

/* About */
.about p {
    max-width: 800px;
    margin: auto;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.8;
}

/* Education */
.education {
    background: var(--section-bg);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 30px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--primary-color);
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.3);
}

.education-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 15px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    position: relative;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .education-card::before {
    right: -20px;
    border-left-color: var(--card-bg);
}

.timeline-item:nth-child(even) .education-card::before {
    left: -20px;
    border-right-color: var(--card-bg);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow);
}

.education-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.education-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.education-card .institution {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.education-card .duration {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 10px;
    font-style: italic;
}

.education-card .description {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .education-timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .education-card::before,
    .timeline-item:nth-child(even) .education-card::before {
        left: -20px;
        right: auto;
        border-right-color: var(--card-bg);
        border-left-color: transparent;
    }
}

/* Skills */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.skill {
    background: linear-gradient(145deg, rgba(10, 10, 25, 0.9), rgba(20, 20, 40, 0.8));
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 
                0 0 30px rgba(0,255,255,0.4),
                inset 0 2px 15px rgba(0,255,255,0.1);
    width: 320px;
    transition: all var(--transition-speed);
    text-align: center;
    border: 2px solid rgba(0,255,255,0.4);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.skill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,107,53,0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.skill:hover {
    transform: perspective(1000px) translateY(-20px) rotateX(15deg) rotateY(10deg) translateZ(30px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 
                0 0 50px rgba(0,255,255,0.8),
                inset 0 2px 20px rgba(0,255,255,0.3);
    border-color: rgba(0,255,255,0.8);
}

.skill h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
    font-size: 1.4rem;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Achievements */
.achievements {
    background: var(--section-bg);
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.achievement-card {
    background: linear-gradient(145deg, rgba(10, 10, 25, 0.9), rgba(20, 20, 40, 0.8));
    padding: 30px 25px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 
                0 0 25px rgba(0,255,255,0.3),
                inset 0 2px 10px rgba(0,255,255,0.1);
    transition: all var(--transition-speed);
    text-align: center;
    border: 2px solid rgba(0,255,255,0.3);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transform: perspective(800px) rotateX(3deg);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.achievement-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.achievement-card p {
    color: var(--text-color);
    opacity: 0.8;
}

.achievement-card:hover {
    transform: perspective(800px) translateY(-15px) rotateX(8deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 
                0 0 40px rgba(0,255,255,0.6),
                inset 0 2px 15px rgba(0,255,255,0.2);
    border-color: rgba(0,255,255,0.7);
}

/* Experience */
.experience {
    background: var(--section-bg);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.experience-card {
    background: linear-gradient(145deg, rgba(10, 10, 25, 0.9), rgba(20, 20, 40, 0.8));
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 
                0 0 25px rgba(0,255,255,0.3),
                inset 0 2px 10px rgba(0,255,255,0.1);
    transition: all var(--transition-speed);
    text-align: left;
    border: 2px solid rgba(0,255,255,0.3);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    transform: perspective(800px) rotateY(-2deg);
}

.experience-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.experience-card p {
    margin: 8px 0;
    color: var(--text-color);
    opacity: 0.9;
}

.experience-card:hover {
    transform: perspective(800px) translateY(-15px) rotateY(3deg) rotateX(5deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 
                0 0 40px rgba(0,255,255,0.6),
                inset 0 2px 15px rgba(0,255,255,0.2);
    border-color: rgba(0,255,255,0.7);
}

/* AI Section Styling */
.ai-section {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0,100,255,0.1) 0%, rgba(138,43,226,0.1) 50%, rgba(0,0,0,0.9) 100%);
    overflow: hidden;
    transform-style: preserve-3d;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0,255,255,0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,107,53,0.03) 50%, transparent 70%);
    animation: scanLines 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes scanLines {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.neural-network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,191,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,107,53,0.3) 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(138,43,226,0.3) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(255,20,147,0.3) 2px, transparent 2px);
    background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px;
    animation: neuralPulse 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitFlow 15s linear infinite;
    z-index: 1;
}

@keyframes circuitFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.ai-title {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #00ffff, #ff6b35, #8a2be2, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0,255,255,0.5));
}

.ai-brain-icon {
    font-size: 3rem;
    animation: brainPulse 2s ease-in-out infinite;
    color: #00ffff;
    filter: drop-shadow(0 0 15px currentColor);
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.neural-connections {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.neural-connections::before,
.neural-connections::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: neuralFlow 3s ease-in-out infinite;
}

.neural-connections::before {
    top: 0;
    animation-delay: 0s;
}

.neural-connections::after {
    bottom: 0;
    animation-delay: 1.5s;
}

@keyframes neuralFlow {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Projects */
.projects {
    background: #0d1117;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #30363d 0px, #30363d 10px, transparent 10px, transparent 20px);
    top: 0;
}

.projects h2 {
    font-family: 'Courier New', monospace;
    color: #58a6ff;
}

.code-bracket {
    color: #ff7b72;
    font-weight: bold;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Courier New', monospace;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #58a6ff, #1f6feb);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    border-color: #58a6ff;
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(88,166,255,0.15);
}

.project-card:hover::before {
    opacity: 1;
}

.project-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #21262d;
    font-family: 'Courier New', monospace;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1f6feb, #58a6ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(88,166,255,0.4);
}

.project-card h3 {
    color: #c9d1d9;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    margin: 0;
    font-weight: 600;
}

.project-card p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: #21262d;
    color: #58a6ff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.project-tech span:hover {
    background: #1f6feb;
    color: white;
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #21262d;
    color: #58a6ff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #30363d;
    transition: all 0.3s;
}

.project-link:hover {
    background: #1f6feb;
    color: white;
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.projects-footer {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    background: #21262d;
    color: #58a6ff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 1px solid #30363d;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.terminal-prompt {
    color: #7ee787;
    font-weight: bold;
}

.view-all-btn:hover {
    background: #1f6feb;
    color: white;
    border-color: #58a6ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88,166,255,0.3);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-number {
        font-size: 1.5rem;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1rem;
    }
    
    .project-header {
        gap: 0.75rem;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .project-tech span {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .view-all-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border-color);
}

.qr-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow), 0 0 20px rgba(255,107,53,0.3);
}

.qr-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: var(--heading-font);
}

.qr-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact form {
        padding: 1.5rem;
    }
    
    .qr-card {
        padding: 1.5rem;
        max-width: 240px;
    }
    
    .qr-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .contact-wrapper {
        gap: 1.5rem;
    }
    
    .contact form {
        padding: 1rem;
    }
    
    .qr-card {
        padding: 1rem;
        max-width: 200px;
    }
    
    .qr-image {
        width: 100px;
        height: 100px;
    }
    
    .qr-card h3 {
        font-size: 1rem;
    }
}

.contact input,
.contact textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color); /* Changed to bg-color for better contrast */
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2); /* Assuming primary-color-rgb is defined */
}

.contact button {
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links img {
    width: 40px; /* Slightly larger icons */
    height: 40px;
    margin: 0 5px;
    transition: transform var(--transition-speed), filter var(--transition-speed);
    filter: grayscale(50%); /* Subtle effect */
}

.social-links img:hover {
    transform: scale(1.2) translateY(-3px);
    filter: grayscale(0%); /* Remove grayscale on hover */
}

/* Footer */
footer {
    padding: 25px;
    text-align: center;
    background: var(--footer-bg);
    color: var(--text-color);
    margin-top: 50px;
    opacity: 0.9;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none; /* Hide nav links by default on small screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--nav-bg);
        box-shadow: 0 5px 10px var(--shadow);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .burger {
        display: flex;
    }

    .home h1 {
        font-size: 2.5rem;
    }

    .home p {
        font-size: 1.2rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .section h2 {
        font-size: 2rem;
    }

    .skills-container,
    .achievements-container,
    .experience-container,
    .project-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill, .achievement-card, .experience-card, .card {
        width: 90%;
        margin: 0 auto;
    }

    .contact form {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .home h1 {
        font-size: 2rem;
    }

    .home p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }


}
/* Chatbot Widget - Right Side */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

#chatbot-container.active {
    transform: translateX(0);
}

#chatbot-header {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 13px 13px 0 0;
}

#chatbot-box {
    height: 350px;
    padding: 15px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
}

#chatbot-input {
    display: flex;
    padding: 15px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 13px 13px;
}

#chatbot-text {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    outline: none;
    font-size: 14px;
}

#chatbot-text:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

#chatbot-send {
    padding: 10px 15px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

#chatbot-toggle {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none;
    border-radius: 50% 0 0 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #chatbot-container {
        width: 300px;
        height: 400px;
        right: 10px;
        bottom: 10px;
    }
    
    #chatbot-box {
        height: 250px;
    }
    
    #chatbot-toggle {
        left: -45px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/* Certificates Section */
.certificates {
    background: var(--section-bg);
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 20px var(--shadow);
    transition: all var(--transition-speed);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.certificate-card:hover::before {
    transform: scaleX(1);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
}

.certificate-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.certificate-card .issuer {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.certificate-card .date {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 15px;
    font-style: italic;
}

.certificate-card .description {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}
/* Floating AI Particles */
.ai-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.ai-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0,255,255,0.8), transparent);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.ai-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.ai-particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.ai-particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.ai-particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 19s; }
.ai-particle:nth-child(5) { left: 60%; animation-delay: 3s; animation-duration: 21s; }
.ai-particle:nth-child(6) { left: 70%; animation-delay: 5s; animation-duration: 17s; }
.ai-particle:nth-child(7) { left: 80%; animation-delay: 2.5s; animation-duration: 23s; }
.ai-particle:nth-child(8) { left: 90%; animation-delay: 4.5s; animation-duration: 16s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% { 
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* Holographic Grid */
.holographic-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 30s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Data Stream */
.data-stream {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stream-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,255,255,0.8), transparent);
    animation: streamFlow 8s linear infinite;
}

.stream-line:nth-child(1) { left: 20px; animation-delay: 0s; }
.stream-line:nth-child(2) { left: 60px; animation-delay: 2s; }
.stream-line:nth-child(3) { left: 100px; animation-delay: 4s; }
.stream-line:nth-child(4) { left: 140px; animation-delay: 6s; }

@keyframes streamFlow {
    0% { transform: translateY(-100px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Enhanced Glow Effects */
.skill-icon, .achievement-icon, .project-icon {
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px currentColor);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px currentColor) drop-shadow(0 0 30px rgba(0,255,255,0.5));
        transform: scale(1.1);
    }
}

/* Cyberpunk Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(0,255,255,0.8), rgba(138,43,226,0.8));
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(0,255,255,1), rgba(138,43,226,1));
    box-shadow: 0 0 15px rgba(0,255,255,0.8);
}
