/* Preloader Styles */
.preloader {
    position: fixed;
    inset: 0;
    background-color: #111827;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Custom CSS for Portfolio Website */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: #111827;
    color: #f9fafb;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #111827;
    color: #f9fafb;
    line-height: 1.6;
}

.floating-item {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.nav-link.active {
    color: #60a5fa;
    font-weight: 600;
    border-bottom: 2px solid #60a5fa;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

/* Navigation styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(17, 24, 39, 0.8);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Security badge */
.security-badge {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.security-badge:hover {
    transform: translateY(-5px);
}

/* Animation for sections */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fixed Container sizes for better laptop/desktop viewing */
.container {
    max-width: 1200px !important;
    margin: 0 auto;
}

/* Hero section specific adjustments */
:root {
    --navbar-height: 70px;
}

.hero-section {
    padding-top: var(--navbar-height);
    padding-bottom: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: #111827;
    position: relative;
}

/* Ensure proper spacing between sections */
section {
    padding: 80px 0;
    position: relative;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 45;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-overlay {
    z-index: 40;
    transition: opacity 0.3s ease;
}

/* Fix for mobile white space issue */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-color: #111827;
}

/* Home button styles */
.home-btn {
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-btn:hover {
    text-decoration: none;
    color: #93c5fd !important;
}

/* Payment Section Styles */
.payment-option {
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.payment-option:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.payment-option.active {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.payment-details {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-details.active {
    display: block;
}

.payment-address {
    font-family: 'Courier New', monospace;
    background: #111827;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #4b5563;
    word-break: break-all;
    color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
}

.payment-address:hover {
    background: #374151;
    border-color: #60a5fa;
}

.payment-address.copied::after {
    content: 'Copied!';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Service cards hover effects */
.bg-gray-800 {
    transition: all 0.3s ease;
}

.bg-gray-800:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Text selection */
::selection {
    background: rgba(96, 165, 250, 0.3);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Loading animation for preloader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: var(--navbar-height);
        padding-bottom: 60px;
        min-height: 85vh;
    }
    
    .payment-option {
        padding: 12px;
    }
    
    .security-badge {
        padding: 16px;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .page-wrapper {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure no white bar at bottom */
    .page-wrapper::after {
        display: none;
    }
    
    /* Move profile picture 5px lower in mobile view */
    .hero-section .order-1 {
        transform: translateY(5px);
    }
    
    /* Improve mobile typography */
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .payment-address {
        font-size: 12px;
        padding: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90% !important;
    }
    
    section {
        padding: 70px 0;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1200px !important;
    }
}

/* Footer styles */
footer {
    margin-top: auto;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social media icons */
.fab, .fas {
    transition: transform 0.3s ease;
}

.fab:hover, .fas:hover {
    transform: scale(1.1);
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Button hover effects */
.bg-blue-600 {
    transition: all 0.3s ease;
}

.bg-blue-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.border-blue-400 {
    transition: all 0.3s ease;
}

.border-blue-400:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

/* Service tabs */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}
