/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth !important;
}

body {
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
}

/* Experience Cards */
.experience-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.experience-card:nth-child(1) {
    animation-delay: 0.1s;
}

.experience-card:nth-child(2) {
    animation-delay: 0.3s;
}

.experience-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Fix autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border-color: #000;
    -webkit-transition: background-color 5000s ease-in-out 0s;
    transition: background-color 5000s ease-in-out 0s;
}

input,
select,
optgroup,
textarea,
::file-selector-button {
    background-color: #fff;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: exclusion;
    transition: width 0.3s ease, height 0.3s ease;
    display: none;
}

@media (min-width: 1024px) {
    .custom-cursor {
        display: block;
    }
}

/* Text Stroke Effect */
.text-stroke {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000;
}

/* Shadow Bottom */
.shadow-bottom {
    box-shadow: 4px 4px 0px #000;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }
}

/* Social and Skill Cards - Black Borders */
.social-card,
.skill-card {
    border-color: #000 !important;
}

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

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

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

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

.hero-content {
    animation: fadeInLeft 1.5s ease-out;
}

.hero-image {
    animation: fadeInRight 1.5s ease-out;
}

.skill-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }
.skill-card:nth-child(10) { animation-delay: 1s; }
.skill-card:nth-child(11) { animation-delay: 1.1s; }
.skill-card:nth-child(12) { animation-delay: 1.2s; }

.about-paragraph {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.about-paragraph:nth-child(1) { animation-delay: 0.2s; }
.about-paragraph:nth-child(2) { animation-delay: 0.4s; }
.about-paragraph:nth-child(3) { animation-delay: 0.6s; }

.project-card {
    animation: slideInRight 0.9s ease-out;
    animation-fill-mode: both;
}

.contact-heading {
    animation: fadeInUp 1s ease-out;
}

/* Mobile Menu Styles */
#header.menu-open {
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    padding-left: 5rem;
}

#nav-menu.mobile-open {
    display: block;
}

#nav-menu.mobile-open ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 7.5rem;
}

/* Scroll to Top Button Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(7px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-7px);
    }
}

#scroll-to-top .scroll-text {
    animation: bounce 1s ease-in-out;
}

#scroll-to-top:hover .scroll-arrow {
    animation: arrowBounce 1.3s ease-in-out infinite;
}

/* Quirky Section Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

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

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.modal-overlay.show {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay.hide {
    animation: modalFadeOut 0.3s ease-out;
}

/* Typing Animation */
#typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

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

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover Effects */
.social-card:hover,
.skill-card:hover {
    transform: scale(1.05);
}

.social-card:active {
    transform: scale(0.9);
}

/* Form Input Focus */
input:focus,
textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Error States */
input.error,
textarea.error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

input.error::placeholder,
textarea.error::placeholder {
    color: #ef4444 !important;
}

/* Loading State */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
}

