/* ============================================
   ABM MAHI Portfolio - Custom Styles
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&family=Poppins:wght@600;700;800&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

/* Utility Classes */
.poppins-bold {
    font-family: 'Poppins', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Navigation Styles
   ============================================ */

.nav-glass {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(75, 85, 99, 0.4);
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: #22d3ee;
}

.nav-link.active {
    color: #22d3ee;
    border-bottom: 2px solid #22d3ee;
}

/* ============================================
   Mobile Menu with 3 Dots - Column View
   ============================================ */

/* Mobile Menu Button (3 Dots / Hamburger) */
.mobile-menu-btn {
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.menu-icon {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: #22d3ee;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.mobile-nav-overlay.active .mobile-nav-menu {
    right: 0;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.close-menu-btn {
    font-size: 32px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s;
    line-height: 1;
}

.close-menu-btn:hover {
    color: #22d3ee;
}

/* Mobile Nav Links - Column View */
.mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 5px;
}

.mobile-nav-link {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-link:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    transform: translateX(5px);
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

/* Hide menu when clicking outside */
.mobile-nav-overlay.close-on-click {
    cursor: pointer;
}

.mobile-nav-menu {
    cursor: default;
}

/* ============================================
   Profile Picture Glow Animation
   ============================================ */

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.7);
    animation: pulseGlow 3s infinite;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.7),
                    0 0 20px rgba(150, 0, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 200, 255, 0.9),
                    0 0 60px rgba(150, 0, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.7),
                    0 0 20px rgba(150, 0, 255, 0.6);
    }
}

/* ============================================
   Wave Animation
   ============================================ */

.wave {
    display: inline-block;
    animation: waveAnim 1s infinite;
}

@keyframes waveAnim {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* ============================================
   Skill Bar Animation
   ============================================ */

.skill-bar {
    animation: fillBar 1.5s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: 100%; }
}

/* ============================================
   Loader Styles - Clean & Simple
   ============================================ */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hide {
    opacity: 0;
    visibility: hidden;
}

.loader-brand {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid #8b5cf6;
    border-right: 3px solid #22d3ee;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-brand-name {
    color: #a78bfa;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textPulse 1.5s ease infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ============================================
   Back to Top Button
   ============================================ */

#backToTop {
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .profile-pic {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 640px) {
    .profile-pic {
        width: 180px;
        height: 180px;
    }
}

/* ============================================
   Scrollbar Styles
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* ============================================
   Grid Pattern Background
   ============================================ */

.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ============================================
   Border Gradient
   ============================================ */

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(to right, #22d3ee, #8b5cf6) 1;
}

/* ============================================
   Card Hover Effects
   ============================================ */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Text Gradient Utility
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   Button Glow Effect
   ============================================ */

.btn-glow {
    position: relative;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Page Transition Loader */
.page-transition-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-transition-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid #8b5cf6;
    border-right: 3px solid #22d3ee;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    color: #a78bfa;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
