/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

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

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

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

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #06b6d4, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0891b2, #7c3aed);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #06b6d4 rgba(15, 23, 42, 0.5);
}

/* Floating Background Elements */
.floating-shape {
    position: absolute;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-shape-2 {
    position: absolute;
    top: 60%;
    right: 10%;
    animation: floatReverse 8s ease-in-out infinite;
    pointer-events: none;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #06b6d4, #8b5cf6);
    transition: width 0.3s ease;
}

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

/* Typing Animation */
.typing-text {
    border-right: 2px solid transparent;
}

.cursor {
    animation: blink 1s infinite;
}

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

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::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.5s;
}

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

/* Skill Category Card */
.skill-category {
    padding: 2.5rem; /* bigger padding */
    border-radius: 1.5rem; /* smoother rounded corners */
    background: rgba(255, 255, 255, 0.05); /* glass effect */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: default;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #06b6d4; /* subtle glow on hover */
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
}

/* Skill Category Icon */
.skill-category i {
    font-size: 3rem; /* slightly bigger */
    transition: transform 0.3s ease;
}

.skill-category:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Skill Category Title */
.skill-category h3 {
    font-size: 2.25rem; /* bigger than before */
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Skill Tags */
.skill-category .space-y-4 span {
    display: inline-block;
    padding: 0.75rem 1.25rem; /* bigger padding */
    font-size: 1.05rem; /* slightly bigger text */
    font-weight: 600;
    border-radius: 9999px; /* pill shape */
    background: rgba(6, 182, 212, 0.15); /* default color */
    color: #06b6d4;
    transition: all 0.3s ease;
}

.skill-category:hover .space-y-4 span {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.2);
}

/* Individual skill color variants */
.skill-category:nth-child(2) .space-y-4 span { /* Backend */
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.skill-category:nth-child(3) .space-y-4 span { /* Tools */
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

/* Responsive */
@media (max-width: 768px) {
    .skill-category h3 {
        font-size: 1.9rem;
    }
    
    .skill-category .space-y-4 span {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
}


/* Experience Timeline Styles */
.experience-item {
    position: relative;
}

.experience-item .bg-white\/5 {
    position: relative;
    overflow: hidden;
}

.experience-item .bg-white\/5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-item .bg-white\/5:hover::before {
    opacity: 1;
}

/* Timeline responsive adjustments */
@media (max-width: 768px) {
    .experience-item {
        text-align: center;
    }
    
    .experience-item .bg-white\/5 {
        margin-bottom: 2rem;
    }
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Contact Form */
.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

/* Intersection Observer Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Experience Timeline Animation */
.experience-item .animate-fade-in-left,
.experience-item .animate-fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.experience-item .animate-fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.experience-item .animate-fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-shape,
    .floating-shape-2 {
        display: none;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #06b6d4, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    border-top-color: #06b6d4;
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth transitions for all interactive elements */
a, button, input, textarea, .project-card, .skill-category, .experience-item .bg-white\/5 {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    .floating-shape,
    .floating-shape-2,
    nav,
    .cursor {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}



.mobile-menu-btn i {
    transition: transform 0.4s ease;
}