/* Custom CSS for Portfolio */

:root {
    /* Morning (Default) Theme */
    --primary: #000000;
    --secondary: #000080;
    --accent: #FF69B4;
    --smokey: #F5F5F5;
}

[data-theme="afternoon"] {
    --primary: #000000;
    --secondary: #001f3f;
    --accent: #0074D9;
}

[data-theme="evening"] {
    --primary: #000000;
    --secondary: #006400;
    --accent: #FFD700;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--smokey);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Nav Link Hover */
.nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Glow Effect */
.btn-glow-accent {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
}

.btn-glow-accent:hover {
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.7);
    transform: translateY(-2px);
}

/* Project Card Styling */
.project-card, .skill-card-container, .experience-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card:hover, .skill-card-container:hover, .experience-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 0, 128, 0.4), 0 0 40px rgba(255, 105, 180, 0.2);
    animation: glimmer-border 3s infinite alternate;
}

/* Glimmer Animation */
@keyframes glimmer-border {
    0% {
        box-shadow: 0 0 15px rgba(0, 0, 128, 0.3), 0 0 30px rgba(255, 105, 180, 0.1);
        border-color: rgba(0, 0, 128, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 105, 180, 0.4), 0 0 50px rgba(0, 0, 128, 0.2);
        border-color: rgba(255, 105, 180, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 0, 128, 0.3), 0 0 30px rgba(255, 105, 180, 0.1);
        border-color: rgba(0, 0, 128, 0.5);
    }
}

.tech-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Skill Item Animation */
.skill-item {
    position: relative;
    padding-left: 1.5rem;
}

.skill-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: translateX(5px);
}

/* Navbar Scrolled State */
.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typing Cursor Customization */
.typed-cursor {
    color: var(--accent);
    font-size: 1.5rem;
}

/* Input Styles */
input, textarea {
    color: var(--smokey);
}

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

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-gradient {
        background: linear-gradient(90deg, #fff, var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.avatar-glow {
    position: relative;
    border-radius: 50%;
    display: inline-block;
    isolation: isolate;
}

.avatar-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.avatar-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary), var(--accent), var(--secondary));
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
    mask: radial-gradient(circle, transparent 62%, #000 63%);
    animation: spinRing 6s linear infinite;
    pointer-events: none;
}

.avatar-glow::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 105, 180, 0.25), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 128, 0.25), transparent 55%);
    filter: blur(12px);
    animation: glimmerShift 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

@keyframes glimmerShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%;
    }
    50% {
        background-position: 100% 0%, 0% 100%;
    }
}

.portrait-glow {
    position: relative;
    display: inline-block;
    border-radius: 1.25rem;
    padding: 6px;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(255, 105, 180, 0.9) 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    animation: borderFlow 7s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 0, 128, 0.25), 0 0 60px rgba(255, 105, 180, 0.18);
    isolation: isolate;
}

.portrait-inner {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.portrait-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(120deg, rgba(255, 105, 180, 0.1) 0%, rgba(255, 105, 180, 0) 40%, rgba(0, 0, 128, 0.12) 60%, rgba(0, 0, 128, 0) 100%);
    background-size: 200% 200%;
    mix-blend-mode: screen;
    animation: glimmerSweep 6s ease-in-out infinite;
    pointer-events: none;
}

/* Profile Frame Orbit Animations */
.profile-frame-wrapper {
    position: relative;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.orbit-layer {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-outer {
    inset: -5%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, var(--secondary) 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-mask: radial-gradient(circle, transparent 68%, black 70%);
    mask: radial-gradient(circle, transparent 68%, black 70%);
    animation: rotate-clockwise 10s linear infinite;
    opacity: 0.6;
    filter: blur(1px);
}

.orbit-inner {
    inset: -2%;
    border: 2px solid transparent;
    background: conic-gradient(from 180deg, var(--accent) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-mask: radial-gradient(circle, transparent 69%, black 71%);
    mask: radial-gradient(circle, transparent 69%, black 71%);
    animation: rotate-counter-clockwise 8s linear infinite;
    opacity: 0.8;
}

.profile-frame-wrapper:hover .orbit-outer {
    animation-duration: 4s;
    opacity: 1;
    filter: blur(0px) drop-shadow(0 0 15px var(--secondary));
}

.profile-frame-wrapper:hover .orbit-inner {
    animation-duration: 3s;
    opacity: 1;
    filter: drop-shadow(0 0 15px var(--accent));
}

.profile-frame-wrapper:hover {
    transform: scale(1.02);
}

.profile-frame-wrapper:hover .profile-image-container {
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3), 0 0 60px rgba(0, 0, 128, 0.2);
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Vertical Scroll Progress Styles */
.scroll-dot {
    position: relative;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: transparent;
    font-size: 0;
}

.scroll-dot i {
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-dot.active {
    background: var(--accent);
    transform: scale(1.8);
    box-shadow: 0 0 15px var(--accent);
    color: var(--primary);
    font-size: 0.65rem;
}

.scroll-dot.active i {
    opacity: 1;
}

.scroll-dot:hover {
    background: rgba(255, 105, 180, 0.5);
    transform: scale(1.4);
}

.dot-label {
    position: absolute;
    right: 25px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 105, 180, 0.2);
    pointer-events: none;
}

.scroll-dot:hover .dot-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scroll-dot.active .dot-label {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes borderFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glimmerSweep {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}
