/* styles.css */

/* Base Styles & Fonts */
body {
    font-family: 'Montserrat', sans-serif;
    @apply bg-gray-50 text-gray-700;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* Base Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #64B5F6 0%, #1E88E5 100%);
    --accent-gradient: linear-gradient(135deg, #90CAF9 0%, #42A5F5 100%);
    --text-gradient: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
#mainHeader {
    transition: all 0.3s ease;
}

#mainHeader.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
}

.nav-links a {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Styling */
#mobileMenu {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.95) !important;
}

#mobileMenu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: black;
    opacity: 0.95;
    z-index: -1;
}

#mobileMenu.opacity-100 {
    opacity: 1;
}

#mobileMenu a {
    position: relative;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

#mobileMenu.opacity-100 a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-item:nth-child(5) { transition-delay: 0.3s; }

#mobileMenu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

#mobileMenu a:hover {
    transform: scale(1.05);
    color: #90CAF9;
}

#mobileMenu a:hover::after {
    width: 80%;
}

.mobile-close-icon {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#closeMenu:hover .mobile-close-icon {
    transform: rotate(90deg);
    color: #64B5F6;
}

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

/* Hero Section Enhancements */
.animate-kenburns {
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-5%, 5%);
    }
}

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* Section Styling */
section {
    @apply overflow-hidden; /* For WOW.js animations */
}

/* About Section Image Hover */
.about-image-container {
    perspective: 1000px;
}
.about-image-container img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-image-container:hover img {
    transform: scale(1.05) rotateY(-5deg) rotateX(2deg);
}

/* Experience Section Cards */
.hover-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-10px);
    @apply shadow-2xl;
}

/* Form Input Styling */
.form-input {
    @apply block w-full border-gray-300 rounded-md shadow-sm;
    @apply focus:border-blue-500 focus:ring focus:ring-blue-200 focus:ring-opacity-50;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Contact Info Hover */
.contact-info {
    transition: transform 0.3s ease-in-out;
}
.contact-info:hover {
    transform: translateX(5px);
}
.contact-info:hover i {
    @apply text-blue-300;
}

/* Custom Scrollbar (Optional, for Webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-800;
}

::-webkit-scrollbar-thumb {
    @apply bg-blue-500 rounded-full;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-blue-400;
}

/* WOW.js Animation Delays - ensure WOW.js is initialized in script.js */
.wow {
    visibility: hidden; /* Hide elements until WOW.js reveals them */
}

/* Notification Styling (from script.js, if you want to style it here) */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification.success {
    background-color: #28a745; /* Green */
}

.notification.error {
    background-color: #dc3545; /* Red */
}

/* Loading Spinner for form (from script.js) */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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