/* Custom CSS for animations and additional styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    background: linear-gradient(135deg, #fbfdff 0%, #faf8ff 50%, #fff8f2 100%);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

.bg-blob {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    will-change: opacity, transform;
}

/* top-left: blue */
.bg-blob-blue {
    width: 70vw;
    height: 70vw;
    top: -10vh;
    left: -10vw;
    background: rgba(147, 197, 253, 0.5);
    opacity: 0.25;
    animation: blob-blue 12s ease-in-out infinite;
}

/* top-right: purple */
.bg-blob-purple {
    width: 65vw;
    height: 65vw;
    top: -5vh;
    right: -10vw;
    background: rgba(196, 181, 253, 0.5);
    opacity: 0.3;
    animation: blob-purple 17s ease-in-out 2s infinite;
}

/* bottom-left: orange */
.bg-blob-orange {
    width: 65vw;
    height: 65vw;
    bottom: -10vh;
    left: -5vw;
    background: rgba(253, 186, 116, 0.45);
    opacity: 0.2;
    animation: blob-orange 14s ease-in-out 5s infinite;
}

/* center: soft peach */
.bg-blob-pink {
    width: 60vw;
    height: 60vw;
    top: 25vh;
    left: 20vw;
    background: rgba(254, 202, 202, 0.4);
    opacity: 0.2;
    animation: blob-pink 19s ease-in-out 8s infinite;
}

@keyframes blob-blue {
    0%   { opacity: 0.25; transform: scale(1)    translate(0,   0); }
    35%  { opacity: 0.45; transform: scale(1.1)  translate(5%,  3%); }
    70%  { opacity: 0.2;  transform: scale(0.95) translate(-2%, 5%); }
    100% { opacity: 0.25; transform: scale(1)    translate(0,   0); }
}

@keyframes blob-purple {
    0%   { opacity: 0.3;  transform: scale(1)    translate(0,   0); }
    40%  { opacity: 0.15; transform: scale(1.08) translate(-4%, 4%); }
    72%  { opacity: 0.4;  transform: scale(0.92) translate(3%, -2%); }
    100% { opacity: 0.3;  transform: scale(1)    translate(0,   0); }
}

@keyframes blob-orange {
    0%   { opacity: 0.2;  transform: scale(1)    translate(0,   0); }
    45%  { opacity: 0.4;  transform: scale(1.08) translate(4%, -3%); }
    78%  { opacity: 0.15; transform: scale(0.95) translate(-3%, 2%); }
    100% { opacity: 0.2;  transform: scale(1)    translate(0,   0); }
}

@keyframes blob-pink {
    0%   { opacity: 0.2;  transform: scale(1)    translate(0,   0); }
    38%  { opacity: 0.35; transform: scale(1.12) translate(-5%, -4%); }
    68%  { opacity: 0.1;  transform: scale(0.9)  translate(4%,  5%); }
    100% { opacity: 0.2;  transform: scale(1)    translate(0,   0); }
}

.top-fade-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    pointer-events: none;
    z-index: 40;
    background: linear-gradient(
        to bottom,
        rgba(251, 253, 255, 1) 0%,
        rgba(251, 253, 255, 1) 25%,
        rgba(251, 253, 255, 0.85) 55%,
        rgba(251, 253, 255, 0) 100%
    );
}

.hero-parallax {
    position: relative;
}

.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* Ensure all content sits above background blobs */
nav, section, footer {
    position: relative;
    z-index: 2;
}

/* Company logos in experience cards */
.company-logo {
    width: 52px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Frosted glass cards */
.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation active state */
.nav-link.active {
    color: #2563eb;
    font-weight: 500;
}

/* Hover effects for project cards */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form input focus effects */
.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message animation */
.success-message {
    animation: slideInRight 0.5s ease-out;
}

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

/* Pastel toast notifications */
.toast-success {
    background: rgba(220, 252, 231, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(134, 239, 172, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    color: #166534;
}

.toast-error {
    background: rgba(254, 226, 226, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(252, 165, 165, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    color: #991b1b;
}

.toast-info {
    background: rgba(219, 234, 254, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(147, 197, 253, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    color: #1e40af;
}

/* Custom form validation error styling */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(254, 226, 226, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(252, 165, 165, 0.45);
    color: #991b1b;
    font-size: 0.8rem;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

input.input-invalid,
textarea.input-invalid {
    border-color: rgba(252, 165, 165, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-fade-in,
    .animate-fade-in-delay,
    .animate-fade-in-delay-2,
    .animate-fade-in-delay-3 {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}
