/* ============================================
   PORTFOLIO STYLES
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #faf5ff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --bg-accent: #312e81;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.15);
}

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

.navbar .container > div:last-child {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    transform: rotate(20deg);
    color: var(--primary-color);
}

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

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

/* Falling Lines Animation */
.falling-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.falling-line {
    position: absolute;
    width: 3px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3), transparent);
    animation: fall linear infinite;
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .falling-line {
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.6), rgba(168, 85, 247, 0.4), transparent);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Generate multiple falling lines with different positions and speeds */
.falling-line:nth-child(1) { left: 2%; animation-duration: 3s; animation-delay: 0s; }
.falling-line:nth-child(2) { left: 5%; animation-duration: 4s; animation-delay: 0.5s; }
.falling-line:nth-child(3) { left: 8%; animation-duration: 3.5s; animation-delay: 1s; }
.falling-line:nth-child(4) { left: 11%; animation-duration: 4.5s; animation-delay: 0.2s; }
.falling-line:nth-child(5) { left: 14%; animation-duration: 3.8s; animation-delay: 1.5s; }
.falling-line:nth-child(6) { left: 17%; animation-duration: 4.2s; animation-delay: 0.8s; }
.falling-line:nth-child(7) { left: 20%; animation-duration: 3.6s; animation-delay: 1.2s; }
.falling-line:nth-child(8) { left: 23%; animation-duration: 4.8s; animation-delay: 0.3s; }
.falling-line:nth-child(9) { left: 26%; animation-duration: 3.3s; animation-delay: 1.8s; }
.falling-line:nth-child(10) { left: 29%; animation-duration: 4.4s; animation-delay: 0.6s; }
.falling-line:nth-child(11) { left: 32%; animation-duration: 3.9s; animation-delay: 1.4s; }
.falling-line:nth-child(12) { left: 35%; animation-duration: 4.6s; animation-delay: 0.9s; }
.falling-line:nth-child(13) { left: 38%; animation-duration: 3.4s; animation-delay: 1.6s; }
.falling-line:nth-child(14) { left: 41%; animation-duration: 4.3s; animation-delay: 0.4s; }
.falling-line:nth-child(15) { left: 44%; animation-duration: 3.7s; animation-delay: 1.1s; }
.falling-line:nth-child(16) { left: 47%; animation-duration: 4.7s; animation-delay: 0.7s; }
.falling-line:nth-child(17) { left: 50%; animation-duration: 3.2s; animation-delay: 1.9s; }
.falling-line:nth-child(18) { left: 53%; animation-duration: 4.1s; animation-delay: 0.5s; }
.falling-line:nth-child(19) { left: 56%; animation-duration: 3.5s; animation-delay: 1.3s; }
.falling-line:nth-child(20) { left: 59%; animation-duration: 4.9s; animation-delay: 1.7s; }
.falling-line:nth-child(21) { left: 62%; animation-duration: 3.6s; animation-delay: 0.3s; }
.falling-line:nth-child(22) { left: 65%; animation-duration: 4.2s; animation-delay: 1.1s; }
.falling-line:nth-child(23) { left: 68%; animation-duration: 3.8s; animation-delay: 0.8s; }
.falling-line:nth-child(24) { left: 71%; animation-duration: 4.5s; animation-delay: 1.5s; }
.falling-line:nth-child(25) { left: 74%; animation-duration: 3.4s; animation-delay: 0.2s; }
.falling-line:nth-child(26) { left: 77%; animation-duration: 4.8s; animation-delay: 1.2s; }
.falling-line:nth-child(27) { left: 80%; animation-duration: 3.7s; animation-delay: 0.6s; }
.falling-line:nth-child(28) { left: 83%; animation-duration: 4.4s; animation-delay: 1.6s; }
.falling-line:nth-child(29) { left: 86%; animation-duration: 3.3s; animation-delay: 0.9s; }
.falling-line:nth-child(30) { left: 89%; animation-duration: 4.6s; animation-delay: 1.4s; }
.falling-line:nth-child(31) { left: 92%; animation-duration: 3.9s; animation-delay: 0.4s; }
.falling-line:nth-child(32) { left: 95%; animation-duration: 4.3s; animation-delay: 1.8s; }
.falling-line:nth-child(33) { left: 98%; animation-duration: 3.5s; animation-delay: 0.7s; }
.falling-line:nth-child(34) { left: 4%; animation-duration: 4.7s; animation-delay: 1.3s; }
.falling-line:nth-child(35) { left: 7%; animation-duration: 3.2s; animation-delay: 0.5s; }
.falling-line:nth-child(36) { left: 10%; animation-duration: 4.1s; animation-delay: 1.7s; }
.falling-line:nth-child(37) { left: 13%; animation-duration: 3.6s; animation-delay: 0.9s; }
.falling-line:nth-child(38) { left: 16%; animation-duration: 4.9s; animation-delay: 1.1s; }
.falling-line:nth-child(39) { left: 19%; animation-duration: 3.8s; animation-delay: 0.3s; }
.falling-line:nth-child(40) { left: 22%; animation-duration: 4.4s; animation-delay: 1.5s; }
.falling-line:nth-child(41) { left: 25%; animation-duration: 3.3s; animation-delay: 0.6s; }
.falling-line:nth-child(42) { left: 28%; animation-duration: 4.6s; animation-delay: 1.9s; }
.falling-line:nth-child(43) { left: 31%; animation-duration: 3.7s; animation-delay: 0.8s; }
.falling-line:nth-child(44) { left: 34%; animation-duration: 4.2s; animation-delay: 1.2s; }
.falling-line:nth-child(45) { left: 37%; animation-duration: 3.5s; animation-delay: 0.4s; }
.falling-line:nth-child(46) { left: 40%; animation-duration: 4.8s; animation-delay: 1.6s; }
.falling-line:nth-child(47) { left: 43%; animation-duration: 3.4s; animation-delay: 0.7s; }
.falling-line:nth-child(48) { left: 46%; animation-duration: 4.5s; animation-delay: 1.4s; }
.falling-line:nth-child(49) { left: 49%; animation-duration: 3.9s; animation-delay: 0.5s; }
.falling-line:nth-child(50) { left: 52%; animation-duration: 4.3s; animation-delay: 1.8s; }

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

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

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

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
}

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

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-resume {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

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

.btn-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

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

.btn-resume:hover i {
    transform: translateY(2px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    position: relative;
    width: 350px;
    height: 350px;
    animation: float 3s ease-in-out infinite;
    perspective: 1000px;
}

.profile-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: flip 8s ease-in-out infinite;
}

.profile-flip-front,
.profile-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

[data-theme="dark"] .profile-flip-front,
[data-theme="dark"] .profile-flip-back {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.profile-flip-front {
    z-index: 2;
}

.profile-flip-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .profile-flip-back {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.profile-flip-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3), transparent 70%);
    z-index: 1;
}

.profile-flip-front img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1);
}

@keyframes flip {
    0%, 45% {
        transform: rotateY(0deg);
    }
    50%, 95% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.profile-ring,
.profile-ring-2 {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

[data-theme="dark"] .profile-ring,
[data-theme="dark"] .profile-ring-2 {
    border-color: rgba(139, 92, 246, 0.3);
}

.profile-ring {
    width: 380px;
    height: 380px;
    top: -15px;
    left: -15px;
    animation: rotate 10s linear infinite;
    border-style: dashed;
}

.profile-ring-2 {
    width: 410px;
    height: 410px;
    top: -30px;
    left: -30px;
    animation: rotate 15s linear infinite reverse;
    border-style: dotted;
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    animation: fadeInUp 1.5s ease 0.5s both;
    z-index: 10;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
    animation: mouseBounce 2s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s infinite;
}

.scroll-down p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: textFade 2s infinite;
}

.scroll-down:hover .scroll-mouse {
    border-color: white;
}

.scroll-down:hover p {
    color: white;
}

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

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

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Fixed Social Media Sidebar */
.social-sidebar {
    position: fixed;
    left: 30px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.social-sidebar.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-sidebar-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-sidebar-link.github::before {
    background: linear-gradient(135deg, #333, #000);
}

.social-sidebar-link.linkedin::before {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-sidebar-link.twitter::before {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-sidebar-link.instagram::before {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-sidebar-link:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-sidebar-link:hover::before {
    transform: scale(1);
}

.social-sidebar-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-top: 0.5rem;
}

/* Hide social sidebar on mobile */
@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    width: 50px;
    height: 50px;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.5));
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] section::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Crystal Pattern Background */
.crystal-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.crystal-shape {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.05;
    animation: crystalFloat 20s ease-in-out infinite;
}

[data-theme="dark"] .crystal-shape {
    opacity: 0.08;
}

.crystal-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.crystal-shape:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.crystal-shape:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.crystal-shape:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 6s;
    animation-duration: 32s;
}

.crystal-shape:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 8s;
    animation-duration: 27s;
}

.crystal-shape:nth-child(6) {
    top: 60%;
    right: 8%;
    animation-delay: 10s;
    animation-duration: 29s;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.skill-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.skill-card:hover::before {
    width: 300px;
    height: 300px;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

/* Original Brand Colors for Icons */
.skill-card .fa-html5 {
    color: #e34c26;
}

.skill-card .fa-css3-alt {
    color: #264de4;
}

.skill-card .fa-js {
    color: #f0db4f;
    background: #323330;
    padding: 0.2rem;
    border-radius: 5px;
}

.skill-card .fa-python {
    color: #3776ab;
}

.skill-card .fa-java {
    color: #007396;
}

.skill-card .fa-git-alt {
    color: #f34f29;
}

.skill-card .fa-react {
    color: #61dafb;
}

.skill-card .fa-node {
    color: #68a063;
}

.skill-card .fa-database {
    color: #00758f;
}

.skill-card .fa-docker {
    color: #0db7ed;
}

.skill-card .fa-aws {
    color: #ff9900;
}

.skill-card:hover i {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 15px currentColor);
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Experience Section */
.experience {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: calc(50% - 40px);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.timeline-content:hover::after {
    opacity: 1;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.timeline-content > * {
    position: relative;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -50px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -50px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-content p {
    margin-top: 1rem;
    color: var(--text-light);
}

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

.project-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

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

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25);
    border-color: var(--secondary-color);
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.tech-tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
}

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

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links a:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-item:hover {
    transform: translateX(10px);
    background: var(--bg-secondary);
}

.contact-item > * {
    position: relative;
    z-index: 1;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--secondary-color);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.contact-item h3 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.contact-form button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-form button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .theme-toggle {
        margin-left: 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .profile-photo {
        width: 250px;
        height: 250px;
    }
    
    .profile-ring {
        width: 280px;
        height: 280px;
    }
    
    .profile-ring-2 {
        width: 310px;
        height: 310px;
    }
    
    .scroll-down {
        bottom: 20px;
    }
    
    .scroll-down p {
        font-size: 0.65rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
