body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117;
    /* Dark background */
    color: #c9d1d9;
    /* Light text */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}


.logo {
    max-width: 200px;
}


.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    margin-left: 10px;

}

.social-icons a {
    font-size: 30px;
    color: #2575fc;
    transition: .3s ease-in-out;
}

.social-icons i {
    font-size: 45px;
}

.social-icons a:hover {
    color: #c9d1d9;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Slide-in from top animation */
@keyframes slideInTop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-top {
    opacity: 0;
    /* Using animation property directly for better control with Intersection Observer */
}

.slide-in-top.visible {
    animation: slideInTop 0.8s ease-out forwards;
}

/* Slide-in from bottom animation */
@keyframes slideInDown {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-down {
    opacity: 0;
    /* Using animation property directly for better control with Intersection Observer */
}

.slide-in-down.visible {
    animation: slideInDown 0.8s ease-out forwards;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in.visible {
    opacity: 1;
}

/* Flip card animation on hover */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 1.5rem;
}

.flip-card-front {
    background-color: #111827;
    color: #c9d1d9;
    /* border: 1px solid #30363d; */
}

.flip-card-back {
    background-color: #111827;
    color: #c9d1d9;
    transform: rotateY(180deg);
    /* border: 1px solid #30363d; */
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom button styling */
.btn-primary {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(100, 100, 255, 0.75);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(100, 100, 255, 0.9);
}

.btn-secondary {
    border: 1px solid #2575fc;
    color: #2575fc;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2575fc;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Subtle rotation on hover for skill cards */
.skill-card-hover:hover {
    transform: rotate(3deg) scale(1.02);
    /* Slight rotation and scale */
    transition: transform 0.3s ease-in-out;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
    /* Adjust as needed, should be larger than content */
    opacity: 1;
}

/* Navbar scroll effect */
.navbar-transparent {
    background-color: transparent;
    box-shadow: none;
}

.navbar-scrolled {
    background-color: rgba(13, 17, 23, 0.8);
    /* bg-gray-900 with opacity */
    backdrop-filter: blur(8px);
    /* Tailwind's backdrop-blur-sm is approx 4px, using 8px for stronger effect */
    -webkit-backdrop-filter: blur(8px);
    /* For Safari */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Tailwind's shadow-lg */
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(./img/hero_mountain.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.about-pic {
    max-height: 500px;
    border-radius: 0 50% 50% 50%;
}



@media(max-width: 640px) {
    .logo {
        width: 150px;
    }

    #hero h1 {
        font-size: 40px;
        text-align: center;
    }

    #hero p {
        font-size: 20px;
        text-align: center;
    }

    #hero a {
        text-align: center;
    }
}

@media(max-width: 800px) {
    #hero {
        display: flex;
        padding: 150px 0 50px 0;
        flex-direction: column;
    }

    .social-icons {
        display: none;
    }

    .profile-pic {
        max-width: 500px;
    }

    #about {
        text-align: center;
    }
}


























/* Card rotation on hover */
.card-rotate:hover {
    transform: rotateY(5deg) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

/* Project card slide-up on hover */
.project-card-content {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.project-card:hover .project-card-content {
    transform: translateY(0);
    opacity: 1;
}

/* Section slide-in animation (on load for simplicity) */
.section-slide-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for sections */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* General transitions for interactive elements */
.transition-all-ease {
    transition: all 0.3s ease-in-out;
}

/* Custom scrollbar for aesthetics */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
    /* Darker track */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    /* Slightly lighter thumb */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #636b77;
    /* Even lighter on hover */
}

/* Ensure images are responsive within their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}