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

.animate-spin {
    animation: spin 1s linear infinite;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #f8fafc;
}

/* Safe area support for notched devices (iPhone X+, etc.) */
.safe-area-top {
    padding-top: env(safe-area-inset-top, 0);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.safe-area-inset {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.heading-font {
    font-family: 'Outfit', sans-serif;
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for cards */
main .glass-card:not(.slider-card):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Highlight bold text in About section */
#about p b {
    color: #60a5fa;
}

/* Nav Link Hover: Expand from Center */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #60a5fa;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-reveal {
    opacity: 0;
    /* Hidden by default for animation */
}

/* .visible class logic removed in favor of Animate.css classes */

.profile-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.nav-shadow {
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5), 0 0 15px -3px rgba(96, 165, 250, 0.1);
}

/* Nav container: transparent on mobile, styled on desktop */
@media (max-width: 767px) {
    .nav-container {
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
    }
}

@media (min-width: 768px) {
    .nav-container {
        box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5), 0 0 15px -3px rgba(96, 165, 250, 0.1);
    }
}

/* Slider Styles */
.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.slider-container:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 8px;
    transition: opacity 0.5s ease;
}

@media (min-width: 640px) {
    .slider-slide {
        padding: 0 15px;
    }
}

/* Media queries removed to show only one project slide at a time */

/* Profile Image Styling */
.profile-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.profile-frame-bg {
    position: absolute;
    inset: -15px;
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 2.5rem;
    z-index: 0;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.profile-container:hover .profile-frame-bg {
    transform: rotate(0deg) scale(1.05);
    border-color: rgba(96, 165, 250, 0.5);
}

.profile-glass-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.accent-top {
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.accent-bottom {
    bottom: 20px;
    left: -30px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

/* Logo Area for Portfolio */
.project-logo-area {
    height: 140px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.project-logo-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.01) 10px, rgba(255, 255, 255, 0.01) 20px);
}

@media (min-width: 640px) {
    .project-logo-area {
        height: 160px;
    }
}

@media (min-width: 768px) {
    .project-logo-area {
        height: 180px;
    }
}

/* Layout modifications for Sticky Left Column */
@media (min-width: 1024px) {
    .sticky-column {
        position: sticky;
        top: 150px;
        height: fit-content;
    }
}

/* Prevent horizontal overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

/* Line clamp fallback for project descriptions */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
