/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* Remove default margins and padding from all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set base styles for the entire page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a; /* Deep black background */
    color: #e0e0e0; /* Light grey text */
    overflow: hidden; /* Prevent scrolling since we're using modals */
    height: 100vh; /* Full viewport height */
    position: relative;
}

/* ============================================
   BACKGROUND GRID EFFECT
   ============================================ */

/* Create an animated grid pattern in the background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Grid cell size */
    animation: gridMove 20s linear infinite; /* Slow moving animation */
    z-index: 0; /* Behind everything */
}

/* Animation to make the grid slowly move */
@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* ============================================
   HAMBURGER MENU (Top Right)
   ============================================ */

/* Style the hamburger menu button */
.hamburger-menu {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1); /* Translucent cyan background */
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000; /* Above everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* Glassmorphism blur effect */
}

/* Hover effect for hamburger menu */
.hamburger-menu:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Style the three lines of the hamburger icon */
.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: #00ffff; /* Cyan color */
    transition: all 0.3s ease;
}

/* ============================================
   SIDE PANEL NAVIGATION (Backup Menu)
   ============================================ */

/* Style the side panel that slides in from the right */
.side-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen by default */
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.9); /* Semi-transparent dark background */
    backdrop-filter: blur(20px); /* Strong blur for glassmorphism */
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 999;
    transition: right 0.4s ease; /* Smooth slide animation */
    padding: 60px 30px 30px;
}

/* When the panel is active (open), slide it in */
.side-panel.active {
    right: 0;
}

/* Close button for the side panel */
.close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-panel:hover {
    transform: rotate(90deg);
}

/* Style the navigation list inside the side panel */
.nav-list {
    list-style: none;
    margin-top: 40px;
}

.nav-list li {
    margin-bottom: 20px;
}

.nav-list a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    color: #00ffff;
    border-left-color: #00ffff;
    padding-left: 20px;
}

/* ============================================
   CENTRAL HUB (The Main Navigation)
   ============================================ */

/* Container for the central hub - centers everything */
.central-hub {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect centering */
    z-index: 100;
}

/* ============================================
   CENTRAL ORB/CUBE
   ============================================ */

/* The main orb/cube in the center */
.central-orb {
    width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s ease;
}

/* The core of the orb - creates a 3D cube effect */
.orb-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 255, 0.3));
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px; /* Slightly rounded for modern look */
    position: relative;
    transform-style: preserve-3d;
    animation: rotateOrb 8s linear infinite; /* Continuous rotation */
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Create a 3D cube effect using pseudo-elements */
.orb-core::before,
.orb-core::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.orb-core::before {
    transform: rotateY(45deg) rotateX(45deg);
    background: rgba(0, 255, 255, 0.1);
}

.orb-core::after {
    transform: rotateY(-45deg) rotateX(-45deg);
    background: rgba(255, 0, 255, 0.1);
}

/* Rotation animation for the orb */
@keyframes rotateOrb {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* Scale up the orb when hovering over the central hub */
.central-hub:hover .orb-core {
    transform: scale(1.2);
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.8),
        inset 0 0 50px rgba(255, 0, 255, 0.5);
}

/* ============================================
   SATELLITE BUTTONS (Orbiting Navigation)
   ============================================ */

/* Container for the satellite buttons */
.satellites-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Can't click when hidden */
    transition: opacity 0.4s ease;
}

/* Show satellites when hovering over central hub */
.central-hub:hover .satellites-container {
    opacity: 1;
    pointer-events: all; /* Can click when visible */
}

/* Individual satellite button */
.satellite-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    color: #00ffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Hover effect for satellite buttons */
.satellite-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

/* Position each satellite button in a circle around the orb */
.satellite-btn:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.satellite-btn:nth-child(1):hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.satellite-btn:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.satellite-btn:nth-child(2):hover {
    transform: translate(50%, -50%) scale(1.2);
}

.satellite-btn:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.satellite-btn:nth-child(3):hover {
    transform: translate(-50%, 50%) scale(1.2);
}

.satellite-btn:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.satellite-btn:nth-child(4):hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Label inside satellite button */
.satellite-label {
    position: absolute;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 1px;
}

/* ============================================
   MODAL OVERLAYS (Content Display)
   ============================================ */

/* The full-screen overlay that appears when a section is opened */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
    backdrop-filter: blur(5px); /* Blur the background */
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Can't interact when hidden */
    transition: opacity 0.4s ease;
}

/* Show the modal when it has the 'active' class */
.modal-overlay.active {
    opacity: 1;
    pointer-events: all; /* Can interact when visible */
}

/* The glassmorphism panel that contains the content */
.modal-content {
    background: rgba(10, 10, 10, 0.7); /* Semi-transparent dark background */
    backdrop-filter: blur(20px); /* Strong blur for glass effect */
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto; /* Scroll if content is too long */
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
    transform: scale(0.9); /* Start slightly smaller */
    transition: transform 0.4s ease;
}

/* Scale up the modal when it becomes active */
.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close button for modals */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal heading */
.modal-content h2 {
    color: #00ffff;
    margin-bottom: 30px;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Modal body content */
.modal-body {
    color: #e0e0e0;
    line-height: 1.6;
}

/* ============================================
   PROJECT ITEMS (Inside Projects Modal)
   ============================================ */

.project-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border-left: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00ffff;
    transform: translateX(10px);
}

.project-item h3 {
    color: #00ffff;
    margin-bottom: 10px;
}

.project-item p {
    margin-bottom: 15px;
}

.project-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ============================================
   SKILLS GRID (Inside Skills Modal)
   ============================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

.skill-category h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* ============================================
   CONTACT FORM (Inside Contact Modal)
   ============================================ */

.contact-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00ffff;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.submit-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.social-links p {
    margin-bottom: 15px;
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    color: #00ffff;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ============================================ */

/* For tablets and smaller screens */
@media (max-width: 768px) {
    /* Make the central orb smaller on mobile */
    .central-orb {
        width: 80px;
        height: 80px;
    }

    /* Adjust satellite container size */
    .satellites-container {
        width: 300px;
        height: 300px;
    }

    /* Make satellite buttons smaller */
    .satellite-btn {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }

    /* Adjust modal padding on mobile */
    .modal-content {
        padding: 30px 20px;
        max-height: 90vh;
    }

    /* Stack skills grid on mobile */
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .central-orb {
        width: 60px;
        height: 60px;
    }

    .satellites-container {
        width: 250px;
        height: 250px;
    }

    .satellite-btn {
        width: 50px;
        height: 50px;
        font-size: 9px;
    }

    .modal-content h2 {
        font-size: 24px;
    }
}

/* ============================================
   SCROLLBAR STYLING (For Modal Content)
   ============================================ */

/* Style the scrollbar for the modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

