/* MyWebPresence - Custom Styles */
/* Built on Bootstrap 5.3 */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-secondary {
    background: var(--secondary-gradient) !important;
}

.bg-gradient-dark {
    background: var(--dark-gradient) !important;
}

.bg-gradient-success {
    background: var(--success-gradient) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-hover-lift:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    border-color: #dee2e6;
}

/* Navbar */
.navbar {
    background: var(--primary-gradient);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Profile Photo */
.profile-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-soft);
}

.profile-photo-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.profile-photo-upload:hover {
    transform: scale(1.1);
}

/* Public Profile Page */
.profile-header {
    background: var(--primary-gradient);
    padding: 4rem 0 6rem;
    margin-bottom: -4rem;
    color: #fff;
}

.profile-info-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-3px);
}

.skill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
    border-radius: 50px;
    margin: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dashboard Stats */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--dark-gradient);
    min-height: 100vh;
    position: fixed;
    width: 260px;
    padding: 1.5rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .profile-header {
        padding: 2rem 0 4rem;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.profile-header-wrapper {
    position: relative;
    overflow: hidden;
}

.profile-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 15% 50%, rgba(255,255,255,0.15) 0%, transparent 40%),
                        radial-gradient(circle at 85% 30%, rgba(255,255,255,0.1) 0%, transparent 35%);
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.bg-circle-1 {
    width: 250px;
    height: 250px;
    top: -100px;
    right: -60px;
    animation: float-up-down 6s ease-in-out infinite;
}

.bg-circle-2 {
    width: 180px;
    height: 180px;
    bottom: 20px;
    left: -50px;
    animation: float-up-down 8s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 20%;
    animation: pulse-glow 5s ease-in-out infinite;
}

.bg-circle-4 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 15%;
    animation: float-diagonal 7s ease-in-out infinite;
}

@keyframes float-up-down {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

@keyframes float-diagonal {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(25px, 5px); }
    75% { transform: translate(10px, 15px); }
}

.profile-photo-main {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo-main:hover {
    transform: scale(1.05);
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wave-container {
    position: relative;
    z-index: 5;
    margin-top: -1px;
    line-height: 0;
}

.wave-container svg {
    width: 100%;
    height: 80px;
    display: block;
}

.opacity-80 {
    opacity: 0.8;
}

.profile-info-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}
