/* Creative Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.loader-logo {
    margin-bottom: 40px;
}

.logo-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: iconFadeIn 1s ease forwards;
}

.icon-item:nth-child(1) { animation-delay: 0.2s; }
.icon-item:nth-child(2) { animation-delay: 0.4s; }
.icon-item:nth-child(3) { animation-delay: 0.6s; }
.icon-item:nth-child(4) { animation-delay: 0.8s; }
.icon-item:nth-child(5) { animation-delay: 1s; }
.icon-item:nth-child(6) { animation-delay: 1.2s; }

.skill-icon {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* Enhanced hover effects for each icon */
.travel-icon:hover {
    animation: globeSpin 0.5s linear infinite;
    color: #81C784;
    filter: drop-shadow(0 0 30px rgba(129, 199, 132, 0.8));
}

.motorcycle-icon:hover {
    animation: motorcycleRide 0.8s ease-in-out infinite;
    color: #FF8A65;
    filter: drop-shadow(0 0 30px rgba(255, 138, 101, 0.8));
}

.code-icon:hover {
    animation: codeFlicker 0.8s ease-in-out infinite;
    color: #CE93D8;
    filter: drop-shadow(0 0 30px rgba(206, 147, 216, 0.8));
}

.php-icon:hover {
    animation: phpBounce 1s ease-in-out infinite;
    color: #B39DDB;
    filter: drop-shadow(0 0 30px rgba(179, 157, 219, 0.8));
}

.database-icon:hover {
    animation: databasePulse 1s ease-in-out infinite;
    color: #64B5F6;
    filter: drop-shadow(0 0 30px rgba(100, 181, 246, 0.8));
}

.security-icon:hover {
    animation: securityShield 1s ease-in-out infinite;
    color: #F48FB1;
    filter: drop-shadow(0 0 30px rgba(244, 143, 177, 0.8));
}

.icon-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.icon-item:hover .icon-label {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Individual Icon Animations */
.travel-icon {
    color: #66BB6A;
    animation: globeSpin 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(102, 187, 106, 0.6));
}

.motorcycle-icon {
    color: #FF7043;
    animation: motorcycleRide 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 112, 67, 0.6));
}

.code-icon {
    color: #AB47BC;
    animation: codeFlicker 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(171, 71, 188, 0.6));
}

.php-icon {
    color: #9575CD;
    animation: phpBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(149, 117, 205, 0.6));
}

.database-icon {
    color: #42A5F5;
    animation: databasePulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(66, 165, 245, 0.6));
}

.security-icon {
    color: #EC407A;
    animation: securityShield 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(236, 64, 122, 0.6));
}

.logo-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    animation: fadeInUp 1s ease 0.5s both;
    letter-spacing: 2px;
}

.loader-animation {
    margin-bottom: 30px;
}

.coding-blocks {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.code-block {
    width: 12px;
    height: 12px;
    background: rgba(102, 126, 234, 0.4);
    border-radius: 2px;
    animation: codeBlockPulse 1.5s ease infinite;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.block-1 { animation-delay: 0s; }
.block-2 { animation-delay: 0.3s; }
.block-3 { animation-delay: 0.6s; }
.block-4 { animation-delay: 0.9s; }

.loading-text {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 600;
}

.loading-letter {
    display: inline-block;
    animation: letterWave 1.5s ease infinite;
}

.loading-letter:nth-child(1) { animation-delay: 0s; }
.loading-letter:nth-child(2) { animation-delay: 0.1s; }
.loading-letter:nth-child(3) { animation-delay: 0.2s; }
.loading-letter:nth-child(4) { animation-delay: 0.3s; }
.loading-letter:nth-child(5) { animation-delay: 0.4s; }
.loading-letter:nth-child(6) { animation-delay: 0.5s; }
.loading-letter:nth-child(7) { animation-delay: 0.6s; }

.loading-dots {
    margin-left: 5px;
}

.dot {
    display: inline-block;
    animation: dotBlink 1.5s ease infinite;
}

.dot:nth-child(1) { animation-delay: 0.7s; }
.dot:nth-child(2) { animation-delay: 0.8s; }
.dot:nth-child(3) { animation-delay: 0.9s; }

.progress-container {
    width: 300px;
    margin: 0 auto;
}

.progress-bar-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 100%;
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease, gradientShift 2s ease infinite;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.8), transparent);
    animation: progressGlow 2s ease infinite;
}

.progress-percentage {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInUp 1s ease 1s both;
}

.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    animation: particleFloat 4s ease infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 60%; left: 20%; animation-delay: 0.5s; }
.particle-3 { top: 30%; right: 15%; animation-delay: 1s; }
.particle-4 { top: 70%; right: 25%; animation-delay: 1.5s; }
.particle-5 { bottom: 20%; left: 30%; animation-delay: 2s; }
.particle-6 { bottom: 40%; right: 10%; animation-delay: 2.5s; }

.loader-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    animation: circleFloat 8s ease infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -150px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 50%;
    animation-delay: 4s;
}

/* Loader Animations */
@keyframes iconFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes motorcycleRide {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-5px) rotate(-2deg);
    }
    75% {
        transform: translateX(5px) rotate(2deg);
    }
}

@keyframes codeFlicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #9C27B0;
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 20px #9C27B0, 0 0 30px #9C27B0;
    }
}

@keyframes phpBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes databasePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px #336791);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #336791, 0 0 30px #336791);
    }
}

@keyframes securityShield {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px #E91E63);
    }
    25% {
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 0 15px #E91E63, 0 0 25px #E91E63);
    }
    75% {
        transform: scale(1.05) rotate(2deg);
        filter: drop-shadow(0 0 15px #E91E63, 0 0 25px #E91E63);
    }
}

@keyframes codeBlockPulse {
    0%, 100% {
        background: rgba(102, 126, 234, 0.4);
        transform: scale(1);
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        background: rgba(102, 126, 234, 0.8);
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
    }
}

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

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

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes progressGlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        opacity: 1;
    }
}

@keyframes circleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes pageReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Root Variables - Dark Theme */
:root {
    --primary-color: #4c63d2;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-color: #1a1a1a;
    --darker-color: #121212;
    --light-color: #2d2d2d;
    --lighter-color: #3a3a3a;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #888;
    --gradient-1: linear-gradient(135deg, #4c63d2 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --border-color: #404040;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(156, 39, 176, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    cursor: none;
}

/* Hide main content until loader finishes */
body:not(.loaded) .navbar,
body:not(.loaded) .hero-section,
body:not(.loaded) main,
body:not(.loaded) section:not(.loader-wrapper),
body:not(.loaded) footer {
    opacity: 0;
    visibility: hidden;
}

/* Show content with animation when loaded */
body.loaded .navbar,
body.loaded .hero-section,
body.loaded main,
body.loaded section,
body.loaded footer {
    opacity: 1;
    visibility: visible;
    animation: pageReveal 1s ease forwards;
}

/* Add special entrance effects for different sections */
body.loaded .navbar {
    animation: slideInFromTop 1s ease forwards;
}

body.loaded .hero-section {
    animation: pageReveal 1.2s ease 0.2s forwards;
}

body.loaded section:nth-child(odd) {
    animation: slideInLeft 1s ease 0.4s forwards;
}

body.loaded section:nth-child(even) {
    animation: slideInRight 1s ease 0.6s forwards;
}

body.loaded footer {
    animation: fadeInUp 1s ease 0.8s forwards;
}

html {
    scroll-behavior: smooth;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Utility Classes */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 1s ease forwards;
    position: relative;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.section-title:hover {
    text-shadow: 
        0 0 5px rgba(102, 126, 234, 0.8),
        0 0 10px rgba(102, 126, 234, 0.6),
        0 0 15px rgba(102, 126, 234, 0.4);
    transform: scale(1.02);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    animation: expandWidth 1s ease 0.5s forwards;
}

.section-divider {
    width: 0;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto 2rem;
    border-radius: 2px;
    animation: expandWidth 1s ease 0.8s forwards;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Navigation */
#mainNav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px) saturate(150%);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInFromTop 1s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

#mainNav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mainNav:hover::before {
    opacity: 1;
}

#mainNav.navbar-scrolled {
    background: rgba(26, 26, 26, 0.98);
}

.navbar-brand {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
}

.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    animation: morphingShapes 10s ease-in-out infinite;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    background-size: 60px 60px;
    animation: meshMove 20s linear infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

/* Interactive Mouse Tracking Effect */
.hero-section {
    transition: transform 0.1s ease-out;
}

.hero-section.mouse-move {
    transform-style: preserve-3d;
}

.hero-content .hero-title {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-content .hero-subtitle {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-content .profile-img {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease, textGlow 3s ease-in-out infinite;
    color: #000000;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 1),
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(102, 126, 234, 0.8),
        0 0 35px rgba(102, 126, 234, 0.6),
        3px 3px 6px rgba(255, 255, 255, 0.9);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    position: relative;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6);
    text-shadow: none;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    z-index: -2;
    border-radius: 10px;
    filter: blur(8px);
}

.hero-title .text-primary {
    color: #000080 !important;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 1),
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(76, 99, 210, 0.8),
        0 0 30px rgba(76, 99, 210, 0.6),
        3px 3px 6px rgba(255, 255, 255, 0.9);
    font-weight: 800;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 500;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-subtitle::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: rgba(255, 255, 255, 0.9);
    margin-left: 2px;
    animation: blink 1s infinite;
    position: absolute;
    right: -10px;
}

.hero-subtitle.typing::after {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.7;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--box-shadow);
    animation: fadeInRight 1s ease 0.8s both, floatUpDown 3s ease-in-out infinite;
    transition: var(--transition);
    position: relative;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.social-links {
    animation: fadeInUp 1s ease 1s both;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

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

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-8px) scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Fix any remaining white backgrounds */
.bg-light {
    background-color: var(--light-color) !important;
}

.text-light {
    color: var(--text-light) !important;
}

/* Override Bootstrap light backgrounds */
.bg-light, .bg-white {
    background-color: var(--light-color) !important;
}

/* Ensure containers are dark */
.container, .container-fluid {
    background-color: transparent;
}

/* Override any remaining white elements */
* {
    border-color: var(--border-color);
}

/* Make sure all cards and panels are dark */
.card, .panel, .well {
    background-color: var(--lighter-color) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
}

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

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    animation: bounce 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* About Section */
#about {
    background-color: var(--light-color);
}

#about .container {
    background-color: transparent;
}

.about-content {
    max-width: 100%;
    margin: 0 auto;
}

.about-content h3 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.about-info ul li {
    margin-bottom: 5px;
    color: var(--text-light);
}

.about-info {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.specializations {
    background: var(--darker-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0 2.5rem 0;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.specializations:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-left-color: var(--secondary-color);
}

.specializations h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.specialization-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialization-list li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.specialization-list li:last-child {
    border-bottom: none;
}

.specialization-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Skills Section */
#skills {
    background-color: var(--darker-color) !important;
}

#skills .container {
    background-color: transparent !important;
}

#skills * {
    background-color: transparent;
}

.skill-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

.skill-name {
    font-weight: 600;
    color: var(--text-color);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.progress {
    height: 10px;
    background: var(--darker-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-1);
    height: 100%;
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
    width: 0;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease infinite;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 20px 20px;
    animation: progressPattern 1s linear infinite;
}

/* Projects Section */
#projects {
    background-color: var(--light-color) !important;
}

#projects .container {
    background-color: transparent !important;
}

/* Force all Bootstrap row and col elements to be transparent */
.row, [class*="col-"] {
    background-color: transparent !important;
}

/* Make project columns equal height */
#projects .row {
    display: flex;
    flex-wrap: wrap;
}

#projects [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.project-card {
    background: var(--lighter-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
    animation: shimmerEffect 1.5s ease infinite;
}

.project-card {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.3s; }
.project-card:nth-child(3) { animation-delay: 0.5s; }

.project-card:hover {
    transform: translateY(-20px) scale(1.03) rotateX(5deg);
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

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

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-placeholder {
    width: 100%;
    height: 250px;
    background: var(--gradient-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.project-placeholder i {
    margin-bottom: 15px;
    opacity: 0.9;
}

.project-placeholder h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Ensure all sections have dark backgrounds */
section {
    background-color: var(--dark-color);
}

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

section:nth-child(odd) {
    background-color: var(--darker-color);
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tech {
    margin-top: auto;
}

.project-content h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--dark-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Contact Section */
#contact {
    background-color: var(--darker-color) !important;
}

#contact .container {
    background-color: transparent !important;
}

/* Global override for any remaining white backgrounds */
html, body, main {
    background-color: var(--dark-color) !important;
}

/* Ensure no white backgrounds anywhere */
.bg-white, .bg-light, .text-bg-light {
    background-color: var(--light-color) !important;
    color: var(--text-color) !important;
}

/* Parallax and Performance Optimizations */
.parallax-element {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Smooth hardware acceleration for better performance */
.project-card, .skill-item, .social-link, .btn-primary, .contact-icon {
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0);
}

/* Add subtle entrance delays for better flow */
.hero-buttons .btn:nth-child(1) {
    animation-delay: 1s;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 1.2s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add depth with layered shadows */
.project-card:hover {
    z-index: 10;
    position: relative;
}

.contact-form {
    background: var(--lighter-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 12px 15px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-info {
    text-align: center;
    padding: 30px;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
}

.contact-icon:hover {
    transform: scale(1.2) rotate(360deg);
    background: var(--gradient-2);
}

.contact-info h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: white;
}

/* 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);
    }
}

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

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

@keyframes float {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(360deg);
    }
}

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

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.6);
    }
}

@keyframes expandWidth {
    0% {
        width: 0;
    }
    100% {
        width: 60px;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes zoomInFade {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

@keyframes morphingShapes {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    }
    33% {
        background: 
            radial-gradient(circle at 70% 30%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 30% 70%, rgba(255, 119, 198, 0.4) 0%, transparent 50%);
    }
    66% {
        background: 
            radial-gradient(circle at 50% 50%, rgba(120, 119, 198, 0.35) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.35) 0%, transparent 50%);
    }
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

@keyframes shimmerEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes liquidFlow {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes magneticPull {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes neuralNetwork {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes holographicGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(102, 126, 234, 0.4),
            0 0 10px rgba(102, 126, 234, 0.3),
            0 0 15px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(102, 126, 234, 0.6),
            0 0 30px rgba(102, 126, 234, 0.4),
            0 0 40px rgba(102, 126, 234, 0.3);
    }
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes progressPattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* Loader Responsive Design */
@media (max-width: 768px) {
    .logo-icons {
        gap: 20px;
    }
    
    .skill-icon {
        font-size: 2.5rem;
    }
    
    .icon-label {
        font-size: 0.8rem;
    }
    
    .logo-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .loading-text {
        font-size: 1.2rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .particle {
        width: 4px;
        height: 4px;
    }
    
    .bg-circle {
        display: none; /* Hide background circles on mobile for performance */
    }
}

@media (max-width: 480px) {
    .logo-icons {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto 20px;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .icon-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    .logo-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .coding-blocks {
        gap: 6px;
    }
    
    .code-block {
        width: 10px;
        height: 10px;
    }
    
    .progress-container {
        width: 200px;
    }
    
    .loader-content {
        padding: 0 20px;
    }
}

@media (max-width: 320px) {
    .logo-icons {
        gap: 8px;
        max-width: 260px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
    }
    
    .icon-label {
        font-size: 0.6rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
        padding-top: 100px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Footer */
footer {
    background-color: var(--darker-color) !important;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-light) !important;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .social-links {
        display: none !important;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.notification-success {
    background-color: #4CAF50;
    border-left: 4px solid #2E7D32;
}

.notification-error {
    background-color: #f44336;
    border-left: 4px solid #C62828;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
} 