/* 
===============================================
    Premium Dark Theme Portfolio Styles
===============================================
*/

:root {
    --bg-color: #000000;
    --bg-secondary: #0A0A0A;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-primary: #F8F9FA;
    --text-secondary: #A1A1AA;
    
    /* Accent Colors - Luxurious Gold */
    --accent-blue: #D4AF37;
    --accent-purple: #F3E5AB;
    
    /* Brand Colors for Skills */
    --color-orange: #F97316;
    --color-blue: #3B82F6;
    --color-yellow: #FACC15;
    --color-cyan: #06B6D4;
    --color-indigo: #6366F1;
    --color-light-blue: #0EA5E9;
    --color-gray: #9CA3AF;
    --color-red: #EF4444;
    --color-blue-yellow: #EAB308;
    --color-purple: #A855F7;
    --color-green: #22C55E;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Overrides for Bootstrap to use premium colors */
.text-white { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Typography & Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-light-gray { color: var(--text-secondary); }
.text-accent { color: var(--accent-blue); }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* Colors for specific skills */
.text-orange { color: var(--color-orange); }
.text-blue { color: var(--color-blue); }
.text-yellow { color: var(--color-yellow); }
.text-cyan { color: var(--color-cyan); }
.text-indigo { color: var(--color-indigo); }
.text-light-blue { color: var(--color-light-blue); }
.text-gray { color: var(--color-gray); }
.text-red { color: var(--color-red); }
.text-blue-yellow { color: var(--color-blue-yellow); }
.text-purple { color: var(--color-purple); }
.text-green { color: var(--color-green); }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.custom-navbar {
    background: transparent;
    transition: all 0.4s ease;
    padding: 1.2rem 0;
}
.custom-navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Buttons */
.btn-glow {
    background: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: #2563EB;
    color: white;
}
.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}
.btn-outline-accent {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.btn-outline-accent:hover {
    background: var(--accent-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15; /* Much more subtle */
    animation: float 15s infinite ease-in-out alternate;
}
.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: 20%;
    left: 10%;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Premium Profile Image */
.profile-img-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    perspective: 1000px;
}
.premium-img-wrapper {
    position: relative;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--color-cyan));
    background-size: 300% 300%;
    animation: gradient-shift 5s ease infinite;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.2);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-img-wrapper:hover {
    transform: scale(1.05) rotateY(10deg);
}
.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    background-color: var(--bg-color);
    transition: all 0.5s ease;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Titles */
.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0, 0.4);
}
.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.border-accent {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Skills */
.skill-item {
    width: 120px;
}

/* Projects */
.project-img-wrapper {
    position: relative;
    overflow: hidden;
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-img-wrapper img {
    transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}
.btn-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.project-card:hover .btn-icon {
    transform: translateY(0);
}

/* Education Timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}
.timeline-dot {
    width: 40px;
    height: 40px;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-dot::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border-radius: 50%;
}
.shadow-glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}
.bg-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

/* Form */
.custom-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
}
.custom-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    color: white;
}
.form-floating > label {
    color: var(--text-secondary);
}

/* Footer & Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .profile-img {
        width: 260px;
        height: 260px;
    }
    .premium-img-wrapper {
        padding: 5px;
        margin-bottom: 20px;
    }
    .custom-navbar {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
    }
}
@media (max-width: 768px) {
    .profile-img {
        width: 240px;
        height: 240px;
    }
    .display-3 { font-size: 2.2rem; }
    .hero-section { text-align: center; }
}
