/* Custom Styles for Abdul-Hafiz Portfolio */

/* Force Dark Mode */
:root {
    color-scheme: dark;
}

body {
    background-color: #111827;
    color: #f9fafb;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Orbiting Icons Animation */
.orbit-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

@media (max-width: 768px) {
    .orbit-container {
        width: 400px;
        height: 400px;
    }
}

.profile-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 165, 0, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.orbit-1 {
    width: 380px;
    height: 380px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 450px;
    height: 450px;
    animation: rotate 25s linear infinite reverse;
}

.orbit-3 {
    width: 520px;
    height: 520px;
    animation: rotate 30s linear infinite;
}

@media (max-width: 768px) {
    .orbit-1 {
        width: 300px;
        height: 300px;
    }
    
    .orbit-2 {
        width: 350px;
        height: 350px;
    }
    
    .orbit-3 {
        width: 400px;
        height: 400px;
    }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-icon {
    position: absolute;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 165, 0, 0.3);
    border: 2px solid rgba(255, 165, 0, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@media (max-width: 768px) {
    .orbit-icon {
        width: 50px;
        height: 50px;
    }
    
    .orbit-icon i {
        font-size: 1.5rem !important;
    }
}

.orbit-icon:hover {
    transform: scale(1.3);
    background: rgba(255, 165, 0, 0.4);
    box-shadow: 0 12px 48px rgba(255, 165, 0, 0.6);
}

/* Position icons on each orbit */
.orbit-1 .orbit-icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 .orbit-icon:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.orbit-1 .orbit-icon:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.orbit-1 .orbit-icon:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.orbit-2 .orbit-icon:nth-child(1) {
    top: 15%;
    right: 15%;
    transform: translate(0, 0);
}

.orbit-2 .orbit-icon:nth-child(2) {
    bottom: 15%;
    right: 15%;
    transform: translate(0, 0);
}

.orbit-2 .orbit-icon:nth-child(3) {
    bottom: 15%;
    left: 15%;
    transform: translate(0, 0);
}

.orbit-3 .orbit-icon:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
}

.orbit-3 .orbit-icon:nth-child(2) {
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 0);
}

@keyframes float {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(255, 165, 0, 0.3);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(255, 165, 0, 0.5);
    }
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Enhanced Gradient Background */
.bg-gradient-to-br {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-br::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #002060;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.dark ::-webkit-scrollbar-thumb {
    background: #FFA500;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #002060 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(-45deg, #002060, #003080, #FFA500, #FF8C00);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 32, 96, 0.2);
}

/* Skill Bar Animation */
.skill-bar {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #002060 0%, #FFA500 100%);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

.dark .skill-bar {
    background: #374151;
}

/* Button Pulse Animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-pulse:hover {
    animation: pulse 1s infinite;
}

/* Typing Animation */
.typing-animation {
    overflow: hidden;
    border-right: 3px solid #FFA500;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #FFA500; }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFA500;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 32, 96, 0.8) 0%, rgba(255, 165, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Glowing Effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.8);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Print Styles */
@media print {
    nav, footer, .no-print { display: none; }
}
