@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --dark-bg: #0f172a;
    --liquid-blue: rgba(59, 130, 246, 0.5);
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--dark-bg);
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.name-underline {
    position: relative;
    display: inline-block;
}

.name-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--liquid-blue);
    border-radius: 2px;
}

.liquid-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 15s infinite ease-in-out;
}

.liquid-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.liquid-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    bottom: 15%;
    right: 10%;
    animation-delay: -5s;
}

.liquid-circle-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 30px) rotate(5deg);
    }
    50% {
        transform: translate(0, 50px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, 30px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.skill-bar {
    height: 8px;
    background: rgba(30, 64, 175, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

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

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

.social-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
}

.social-icon:hover::before {
    opacity: 1;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: blob-animation 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-blue);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes blob-animation {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .liquid-circle { filter: blur(40px); }
    .liquid-circle-1 { width: 200px; height: 200px; top: -40px; left: -40px; }
    .liquid-circle-2 { width: 160px; height: 160px; bottom: -40px; right: -40px; }
    .liquid-circle-3 { width: 120px; height: 120px; top: 45%; right: -20px; }
    .blob-1 { width: 260px; height: 260px; top: -80px; left: -80px; }
    .blob-2 { width: 220px; height: 220px; bottom: -80px; right: -80px; }
}
