/* Custom CSS for Portfolio Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Custom Background with Stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(88, 28, 135, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #9333ea, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7c3aed, #db2777);
}

/* Navigation Styles */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.8);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(45deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #9333ea, #ec4899);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #7c3aed, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.4);
}

/* Service Card Highlight */
.service-highlight {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.4);
}

/* Avatar Glow */
.avatar-glow {
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.6);
}

/* Profile Image Styles */
.profile-image {
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.profile-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

/* About Section Profile Image - Large and Prominent */
.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.1);
}

.about-profile-image:hover {
    transform: scale(1.03);
    filter: brightness(1.15) contrast(1.1);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
}

/* Image Border Glow */
.image-glow {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
}

.image-glow:hover {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
}

/* Form Input Styles */
.form-input {
    background: rgba(88, 28, 135, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.5);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    background: rgba(88, 28, 135, 0.5);
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.4);
}

/* Skill Tags */
.skill-tag {
    background: linear-gradient(45deg, #9333ea, #ec4899);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.4);
}

/* Project Card */
.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

/* Pagination Dots */
.pagination-dot {
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: linear-gradient(45deg, #9333ea, #ec4899);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile about image sizing */
    .about-profile-image {
        width: 100%;
        height: 100%;
    }
}

/* Large screen about image enhancements */
@media (min-width: 1024px) {
    .about-profile-image {
        width: 100%;
        height: 100%;
    }
}

/* Mobile Navigation */
.mobile-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Menu Button Animation */
#mobile-menu-btn {
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Responsive Navigation Breakpoints */
@media (max-width: 1023px) {
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
}

@media (min-width: 1024px) {
    /* Hide mobile menu button on desktop */
    .mobile-menu-btn {
        display: none;
    }
    
    /* Show desktop navigation */
    .desktop-nav {
        display: flex;
    }
}

/* Custom Animations for Elements */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Glass Morphism */
.glass {
    background: rgba(88, 28, 135, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Custom Selection */
::selection {
    background: rgba(147, 51, 234, 0.3);
    color: white;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
   0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.bounce {
    animation: bounce 1s infinite;
}

/* Custom Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-glow {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #9333ea, #ec4899) 1;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}