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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: #000000;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 40px 70px, #87ceeb, transparent),
        radial-gradient(1px 1px at 90px 40px, #f472b6, transparent),
        radial-gradient(2px 2px at 130px 80px, #6366f1, transparent),
        radial-gradient(1px 1px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 60px, #8b5cf6, transparent),
        radial-gradient(2px 2px at 240px 20px, #87ceeb, transparent),
        radial-gradient(1px 1px at 280px 90px, #f472b6, transparent);
    background-repeat: repeat;
    background-size: 300px 120px;
    animation: globalSparkle 6s ease-in-out infinite;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

@keyframes globalSparkle {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05) rotate(180deg);
    }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

/* GitHub Button */
.github-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.github-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.ai-logo {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    color: #ffffff;
}

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

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glitter-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px #ffffff, 0 0 25px rgba(255,255,255,0.5);
    animation: shootingStar 3s linear infinite;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    border-radius: 2px;
    transform: translate(-100%, -50%);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.shooting-star:nth-child(11) {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.shooting-star:nth-child(12) {
    top: 60%;
    left: -10%;
    animation-delay: 1.5s;
}

.shooting-star:nth-child(13) {
    top: 40%;
    left: -10%;
    animation-delay: 3s;
}

.shooting-star-reverse {
    animation: shootingStarReverse 4s linear infinite;
}

.shooting-star-reverse:nth-child(14) {
    top: 30%;
    right: -10%;
    animation-delay: 2s;
}

.shooting-star-reverse:nth-child(15) {
    top: 70%;
    right: -10%;
    animation-delay: 4s;
}

.shooting-star-slow {
    animation: shootingStarSlow 6s linear infinite;
}

.shooting-star-slow:nth-child(16) {
    top: 10%;
    left: -10%;
    animation-delay: 1s;
}

@keyframes shootingStarReverse {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100vw) translateY(50vh) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes shootingStarSlow {
    0% {
        transform: translateX(0) translateY(0) rotate(30deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(120vw) translateY(30vh) rotate(30deg);
        opacity: 0;
    }
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(50vh) rotate(45deg);
        opacity: 0;
    }
}

.glitter {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: glitter 3s linear infinite;
    box-shadow: 0 0 10px #fff;
}

.glitter:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.glitter:nth-child(2) { top: 80%; left: 20%; animation-delay: 0.5s; }
.glitter:nth-child(3) { top: 40%; left: 70%; animation-delay: 1s; }
.glitter:nth-child(4) { top: 60%; left: 80%; animation-delay: 1.5s; }
.glitter:nth-child(5) { top: 10%; left: 50%; animation-delay: 2s; }
.glitter:nth-child(6) { top: 90%; left: 60%; animation-delay: 2.5s; }
.glitter:nth-child(7) { top: 30%; left: 30%; animation-delay: 0.3s; }
.glitter:nth-child(8) { top: 70%; left: 90%; animation-delay: 0.8s; }
.glitter:nth-child(9) { top: 50%; left: 5%; animation-delay: 1.3s; }
.glitter:nth-child(10) { top: 15%; left: 85%; animation-delay: 1.8s; }

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

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff;
    animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(11) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(12) {
    top: 25%;
    left: 80%;
    animation-delay: 0.5s;
}

.star:nth-child(13) {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.star:nth-child(14) {
    top: 40%;
    left: 70%;
    animation-delay: 1.5s;
}

.star:nth-child(15) {
    top: 80%;
    left: 60%;
    animation-delay: 2s;
}

.star:nth-child(16) {
    top: 10%;
    left: 50%;
    animation-delay: 0.8s;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.greeting {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-role {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.6s both, multicolorGradient 3s ease-in-out infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.8s both;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-network {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    border: 2px solid #3b82f6;
}

.btn-network:hover {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-pink {
    background: linear-gradient(45deg, #ec4899, #f472b6);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-pink:hover {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease 0.5s both;
}

.profile-container {
    position: relative;
}

.profile-img-hero {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: 
        radial-gradient(3px 3px at 50px 50px, #ffffff, transparent),
        radial-gradient(2px 2px at 150px 100px, #87ceeb, transparent),
        radial-gradient(3px 3px at 250px 150px, #ffd700, transparent),
        radial-gradient(2px 2px at 350px 200px, #6366f1, transparent),
        radial-gradient(3px 3px at 400px 300px, #ffffff, transparent),
        radial-gradient(2px 2px at 300px 350px, #87ceeb, transparent),
        radial-gradient(3px 3px at 200px 400px, #ffd700, transparent),
        radial-gradient(2px 2px at 100px 350px, #6366f1, transparent);
    animation: orbitStars 8s linear infinite;
    z-index: 1;
}

.profile-container::after {
    content: '';
    position: absolute;
    top: -70px;
    left: -70px;
    width: 490px;
    height: 490px;
    border-radius: 50%;
    background: 
        radial-gradient(2px 2px at 80px 80px, #e0e7ff, transparent),
        radial-gradient(1px 1px at 180px 120px, #ddd6fe, transparent),
        radial-gradient(2px 2px at 280px 180px, #fef3c7, transparent),
        radial-gradient(1px 1px at 380px 240px, #e0f2fe, transparent),
        radial-gradient(2px 2px at 420px 340px, #e0e7ff, transparent),
        radial-gradient(1px 1px at 320px 380px, #ddd6fe, transparent),
        radial-gradient(2px 2px at 220px 420px, #fef3c7, transparent),
        radial-gradient(1px 1px at 120px 380px, #e0f2fe, transparent);
    animation: orbitStars 12s linear infinite reverse;
    z-index: 1;
}

.profile-img-hero {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aiProfileFloat 4s ease-in-out infinite;
}

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

@keyframes aiProfileFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.02);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    75% {
        transform: translateY(-5px) scale(1.02);
    }
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.about .section-subtitle {
    color: #cccccc;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #000000;
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cccccc;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 300px;
    height: 400px;
    border-radius: 50px 50px 20px 20px;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
}

/* Skills Section */
.skills {
    padding: 6rem 0;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 15px;
    color: white;
    font-size: 1.5rem;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 2s ease;
}

.tech-stack h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.tech-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
    color: white;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fce7f3, transparent),
        radial-gradient(1px 1px at 70px 70px, #f472b6, transparent),
        radial-gradient(2px 2px at 120px 40px, #ec4899, transparent),
        radial-gradient(1px 1px at 170px 80px, #fce7f3, transparent),
        radial-gradient(2px 2px at 220px 30px, #f472b6, transparent);
    background-repeat: repeat;
    background-size: 250px 100px;
    animation: twinkle 4.5s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

.experience .container {
    position: relative;
    z-index: 2;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--primary-color);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: #000000;
    border: 2px solid #fce7f3;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    position: relative;
    animation: aiExperienceFloat 3.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(252, 231, 243, 0.4);
    animation: aiExperienceHover 2.5s ease-in-out infinite;
}

@keyframes aiExperienceFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-4px) rotate(0.3deg);
    }
    66% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

@keyframes aiExperienceHover {
    0%, 100% {
        transform: translateY(-8px) scale(1.03) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) scale(1.05) rotate(0.5deg);
    }
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #cccccc;
    line-height: 1.6;
}

.skills-used {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.skill-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    font-weight: 500;
}

.experience .section-subtitle {
    color: #cccccc;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 30px 40px, #06b6d4, transparent),
        radial-gradient(2px 2px at 80px 20px, #3b82f6, transparent),
        radial-gradient(1px 1px at 130px 60px, #06b6d4, transparent),
        radial-gradient(2px 2px at 180px 90px, #3b82f6, transparent),
        radial-gradient(1px 1px at 230px 30px, #06b6d4, transparent);
    background-repeat: repeat;
    background-size: 260px 120px;
    animation: sparkle 3.8s ease-in-out infinite;
    opacity: 0.25;
    z-index: 1;
}

.projects .container {
    position: relative;
    z-index: 2;
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-20px) translateX(5px) scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
}

.project-card:nth-child(even):hover {
    transform: translateY(-20px) translateX(-5px) scale(1.05) rotateY(-5deg);
}

.project-card:hover .project-image {
    animation: aiFloat 2s ease-in-out infinite;
}

.project-card:hover .project-content {
    animation: aiPulse 1.5s ease-in-out infinite;
}

.project-card:hover .project-tech span {
    animation: aiGlow 1s ease-in-out infinite alternate;
}

@keyframes aiFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-6px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes aiGlow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    }
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-card:first-child .project-tech span {
    border: 2px solid #ffffff;
    background: transparent;
    color: #3b82f6;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-link {
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 120px;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 2rem;
    text-align: left;
}

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

.project-tech span {
    padding: 0.3rem 0.8rem;
    background: #000000;
    color: #3b82f6;
    border: 2px solid #ffffff;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-content p {
    color: #f0f0f0;
    line-height: 1.6;
}

/* New Certifications Section */
.certifications-new {
    padding: 6rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.certifications-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 30px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 20px, #f472b6, transparent),
        radial-gradient(2px 2px at 130px 70px, #ec4899, transparent),
        radial-gradient(1px 1px at 180px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 230px 80px, #f472b6, transparent),
        radial-gradient(1px 1px at 280px 50px, #ec4899, transparent);
    background-repeat: repeat;
    background-size: 300px 100px;
    animation: twinkle 5s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.2;
    }
    75% {
        opacity: 0.9;
    }
}

.certifications-new .container {
    position: relative;
    z-index: 2;
}

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

.cert-new-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    background: #000000;
    border: 2px solid #fce7f3;
}

.cert-new-card:hover {
    transform: translateY(-5px);
}

.cert-new-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.cert-new-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cert-new-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cert-new-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-new-content {
    padding: 1.5rem;
    text-align: left;
}

.cert-new-content .finalist-badge {
    display: inline-block;
    margin: 0 auto;
}

.cert-new-content {
    padding: 1.5rem;
    text-align: center;
}

.cert-new-content h3,
.cert-new-content p,
.cert-new-content .btn-linkedin {
    text-align: left;
}

.cert-new-card .btn-linkedin {
    background: #0077b5;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cert-new-card .btn-linkedin {
    background: #0077b5;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cert-new-card .btn-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.certifications-new .section-subtitle {
    color: #cccccc;
}

.hidden-certs {
    display: none;
    margin-top: 2rem;
}

.show-more-container {
    text-align: center;
    margin-top: 3rem;
}

.show-more-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn.rotated i {
    transform: rotate(180deg);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 30px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 20px, #f472b6, transparent),
        radial-gradient(2px 2px at 130px 70px, #ec4899, transparent),
        radial-gradient(1px 1px at 180px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 230px 80px, #f472b6, transparent),
        radial-gradient(1px 1px at 280px 50px, #ec4899, transparent);
    background-repeat: repeat;
    background-size: 300px 100px;
    animation: contactSparkle 5s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes contactSparkle {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0px);
    }
    25% {
        opacity: 0.8;
        transform: translateY(-3px);
    }
    50% {
        opacity: 0.2;
        transform: translateY(-6px);
    }
    75% {
        opacity: 0.9;
        transform: translateY(-3px);
    }
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 30px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 20px, #f472b6, transparent),
        radial-gradient(2px 2px at 130px 70px, #ec4899, transparent),
        radial-gradient(1px 1px at 180px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 230px 80px, #f472b6, transparent),
        radial-gradient(1px 1px at 280px 50px, #ec4899, transparent);
    background-repeat: repeat;
    background-size: 300px 100px;
    animation: twinkle 5s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.2;
    }
    75% {
        opacity: 0.9;
    }
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact .section-subtitle {
    color: #cccccc;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #000000;
    border: 2px solid #fce7f3;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    animation: aiContactFloat 3.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(252, 231, 243, 0.4);
    animation: aiContactHover 2s ease-in-out infinite;
}

@keyframes aiContactFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-4px) rotate(0.3deg);
    }
    66% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

@keyframes aiContactHover {
    0%, 100% {
        transform: translateY(-8px) scale(1.02) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) scale(1.05) rotate(0.5deg);
    }
}

.contact-item:nth-child(1) { animation-delay: 0s; }
.contact-item:nth-child(2) { animation-delay: 0.3s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.contact-details p {
    color: #cccccc;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: #000000;
    border: 2px solid #fce7f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    animation: aiSocialFloat 2.5s ease-in-out infinite;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    animation: aiSocialHover 1.5s ease-in-out infinite;
}

@keyframes aiSocialFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

@keyframes aiSocialHover {
    0%, 100% {
        transform: translateY(-5px) scale(1.1) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) scale(1.15) rotate(-5deg);
    }
}

.social-link:nth-child(1) { animation-delay: 0s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.4s; }
.social-link:nth-child(4) { animation-delay: 0.6s; }

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: aiFormFloat 4s ease-in-out infinite;
}

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

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    border: 2px solid #fce7f3;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #000000;
    color: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-left {
    flex: 1;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-left p {
    color: var(--text-light);
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.footer-bottom i {
    color: #ef4444;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .contact-info {
        order: 1;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form {
        order: 2;
    }
    
    .social-links {
        order: 3;
        justify-content: center;
        margin-top: 2rem;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-form button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Skills Section Mobile */
    .skills-top-row,
    .skills-bottom-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .frontend-grid,
    .backend-grid,
    .others-grid {
        width: 100%;
    }
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .skill-item-box {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Experience Section Mobile */
    .timeline {
        padding: 0 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
        margin-left: 60px;
        width: calc(100% - 80px);
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    /* Education Section Mobile */
    .education-content {
        gap: 1.5rem;
    }
    
    .education-item {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 350px;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .education-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .education-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .education-info h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .education-info p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .education-date {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Home Section Mobile Enhancements */
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .hero-text {
        padding: 0 0.5rem;
    }
    
    .greeting {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .profile-img-hero {
        width: 280px;
        height: 280px;
    }
    
    .profile-glow {
        width: 320px;
        height: 320px;
    }
    
    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .profile-container {
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .contact-items {
        order: 1;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .ai-logo {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 1.2rem 0;
        gap: 0.6rem;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: #ffffff !important;
        font-size: 0.95rem;
        padding: 0.3rem 0;
    }
    
    .github-btn {
        width: 42px;
        height: 42px;
        top: 11px;
        right: 55px;
        font-size: 1rem;
        z-index: 1002;
    }
    
    /* General Mobile Improvements */
    .container {
        padding: 0 0.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-content {
        gap: 1.2rem;
        padding: 0 0.8rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
    
    .profile-img-hero {
        width: 260px;
        height: 260px;
    }
    
    .profile-glow {
        width: 300px;
        height: 300px;
    }
    
    /* Achievements Section Mobile */
    .certifications-new-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-new-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .cert-new-image {
        height: 180px;
    }
    
    .cert-new-content {
        padding: 1rem;
    }
    
    .cert-new-card h3 {
        font-size: 1.1rem;
    }
    
    .cert-new-card p {
        font-size: 0.9rem;
    }
    
    .cert-new-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-linkedin {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-name {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        word-break: break-word;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .greeting {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }
    
    .hero-text {
        text-align: center;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .cert-card img {
        height: 200px;
    }
    
    .cert-content {
        padding: 1rem;
    }
    
    /* Responsive images for mobile */
    .cert-card img,
    .cert-new-image,
    .project-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
    
    .cert-card img {
        height: 200px;
    }
    
    .cert-new-image {
        height: 180px;
    }
    
    .project-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .hero-name {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
        word-break: break-word;
        text-align: center;
        padding: 0 0.3rem;
    }
    
    .hero-title {
        font-size: 1rem;
        line-height: 1.2;
        text-align: center;
        padding: 0 0.3rem;
    }
    
    .greeting {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 0.85rem;
        text-align: center;
        padding: 0 0.3rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .profile-img-hero {
        width: 220px;
        height: 220px;
    }
    
    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .profile-glow {
        width: 260px;
        height: 260px;
    }
    
    /* Header Mobile Small */
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .ai-logo {
        font-size: 1.4rem;
    }
    
    .hamburger span {
        width: 18px;
        height: 2px;
    }
    
    .github-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 60px;
        font-size: 0.9rem;
        z-index: 1002;
    }
    
    /* Skills Mobile */
    .skill-items {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .skill-item-box {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Projects Mobile */
    .project-image img {
        height: 180px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Certifications Mobile */
    .cert-card img {
        height: 160px;
    }
    
    .cert-content {
        padding: 0.8rem;
    }
    
    .cert-content h3 {
        font-size: 1rem;
    }
    
    .cert-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* Achievements Mobile Small */
    .certifications-new-grid {
        gap: 0.8rem;
    }
    
    .cert-new-card {
        max-width: 280px;
    }
    
    .cert-new-image {
        height: 160px;
    }
    
    .cert-new-content {
        padding: 0.7rem;
    }
    
    .cert-new-card h3 {
        font-size: 0.95rem;
    }
    
    .cert-new-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .cert-new-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-linkedin {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .show-more-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }
    
    /* Contact Mobile */
    .contact-item {
        padding: 0.7rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Timeline Mobile */
    .timeline-content {
        padding: 1rem;
        margin-left: 50px;
        width: calc(100% - 70px);
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .skill-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Rain Drop Animation for Weather App */
.weather-card .rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(173, 216, 230, 0.8), rgba(135, 206, 235, 0.4));
    border-radius: 50px;
    animation: rainFall 1.5s linear infinite;
}

.rain-drop:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 1.2s;
}

.rain-drop:nth-child(2) {
    left: 25%;
    animation-delay: 0.3s;
    animation-duration: 1.5s;
}

.rain-drop:nth-child(3) {
    left: 40%;
    animation-delay: 0.6s;
    animation-duration: 1.3s;
}

.rain-drop:nth-child(4) {
    left: 55%;
    animation-delay: 0.9s;
    animation-duration: 1.4s;
}

.rain-drop:nth-child(5) {
    left: 70%;
    animation-delay: 0.2s;
    animation-duration: 1.6s;
}

.rain-drop:nth-child(6) {
    left: 85%;
    animation-delay: 0.5s;
    animation-duration: 1.1s;
}

.rain-drop:nth-child(7) {
    left: 15%;
    animation-delay: 0.8s;
    animation-duration: 1.7s;
}

.rain-drop:nth-child(8) {
    left: 60%;
    animation-delay: 0.1s;
    animation-duration: 1.3s;
}

@keyframes rainFall {
    0% {
        top: -20px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

.weather-card:hover .rain-drop {
    animation-play-state: running;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}
/* Education Section */
.education {
    padding: 6rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 25px 35px, #f97316, transparent),
        radial-gradient(2px 2px at 75px 15px, #fbbf24, transparent),
        radial-gradient(1px 1px at 125px 55px, #f59e0b, transparent),
        radial-gradient(2px 2px at 175px 85px, #f97316, transparent),
        radial-gradient(1px 1px at 225px 25px, #fbbf24, transparent);
    background-repeat: repeat;
    background-size: 250px 110px;
    animation: sparkle 4.2s ease-in-out infinite;
    opacity: 0.3;
    z-index: 1;
}

.education .container {
    position: relative;
    z-index: 2;
}

.education .section-subtitle {
    color: #cccccc;
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: #000000;
    border: 2px solid #fce7f3;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    animation: aiEducationFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(252, 231, 243, 0.3);
    animation: aiEducationHover 2s ease-in-out infinite;
}

@keyframes aiEducationFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

@keyframes aiEducationHover {
    0%, 100% {
        transform: translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.education-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-info p {
    color: #cccccc;
    line-height: 1.6;
}

/* Certifications Section */
.certifications {
    padding: 6rem 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 25px 35px, #6366f1, transparent),
        radial-gradient(2px 2px at 75px 15px, #8b5cf6, transparent),
        radial-gradient(1px 1px at 115px 55px, #06b6d4, transparent),
        radial-gradient(2px 2px at 165px 85px, #6366f1, transparent),
        radial-gradient(1px 1px at 215px 25px, #8b5cf6, transparent);
    background-repeat: repeat;
    background-size: 240px 110px;
    animation: sparkle 3.5s ease-in-out infinite;
    opacity: 0.3;
    z-index: 1;
}

.certifications .container {
    position: relative;
    z-index: 2;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    background: #000000;
    border: 2px solid #000000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cert-card:first-child {
    height: auto;
}



.cert-card {
    height: auto;
    min-height: 450px;
}

.cert-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cert-content {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.finalist-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    animation: sparkleGlow 2s ease-in-out infinite;
    box-shadow: none;
}

@keyframes sparkleGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    }
}

.java-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    animation: sparkleGlow 2s ease-in-out infinite;
    box-shadow: none;
}

.c-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    animation: sparkleGlow 2s ease-in-out infinite;
    box-shadow: none;
}

.python-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    animation: sparkleGlow 2s ease-in-out infinite;
    box-shadow: none;
}

.bronze-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    animation: sparkleGlow 2s ease-in-out infinite;
    box-shadow: none;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.cert-content p {
    color: #cccccc !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-linkedin {
    background: #0077b5;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
}

.btn-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-skillrack {
    background: #ff6b35;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-skillrack:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.cert-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

.cert-card p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.cert-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Featured Projects Section */
.projects {
    padding: 100px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 70px 70px, #ffd700, transparent),
        radial-gradient(2px 2px at 120px 40px, #87ceeb, transparent),
        radial-gradient(1px 1px at 170px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 220px 30px, #ffd700, transparent),
        radial-gradient(1px 1px at 270px 60px, #87ceeb, transparent);
    background-repeat: repeat;
    background-size: 300px 120px;
    animation: sparkleMove 4s ease-in-out infinite;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

@keyframes sparkleMove {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0px);
    }
    25% {
        opacity: 0.8;
        transform: translateY(-5px);
    }
    50% {
        opacity: 0.2;
        transform: translateY(-10px);
    }
    75% {
        opacity: 0.9;
        transform: translateY(-5px);
    }
}

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

.project-card {
    background: #000000;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #fce7f3;
    transition: all 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-content h3 {
    color: #fff;
    margin: 15px 0 10px;
    font-size: 1.3em;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
    animation: sparkle-badge 2s ease-in-out infinite;
}

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

.tech {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.btn-github {
    background: linear-gradient(45deg, #333, #555);
    color: #fff;
}
.project-card:nth-child(2) img {
    filter: hue-rotate(180deg) saturate(0);
}
