/*=============================================
=            Table of Contents            =
=============================================
1. Imports & Typography
2. Layout Containers
3. Project Components
4. Navigation Elements
5. Loading & Transitions
6. Animations
7. Media Queries
=============================================*/

/* -- 1. Imports & Typography -- */
/* Core imports */
@import url(../styles/root.css); /* Root variables and theme settings */
@import url(../styles/menu.css); /* Menu component styles */
@import url(../styles/intro.css); /* Import intro animations */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400&display=swap'); /* Main font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap'); /* Sari */
@import url('https://fonts.googleapis.com/css2?family=Philosopher&display=swap'); /* Sari secondary */
@import url('https://fonts.googleapis.com/css2?family=Fleur+De+Leah&display=swap'); /* Michelle */
@import url('https://fonts.googleapis.com/css2?family=Quintessential&display=swap'); /* Alba */
@import url('https://fonts.googleapis.com/css2?family=Tinos&display=swap'); /* Alexandria */

/* Typography Base */
.orbitron-text {
    font-family: "Orbitron", sans-serif; /* Sets custom font with fallback */
    font-weight: 400; /* Standard font weight */
    font-style: normal; /* Normal font style */
}

/* -- 2. Layout Containers -- */
.front-page {
    display: none;
    width: 100%; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    position: relative; /* Creates positioning context */
    background-color: rgba(var(--bg-color), 1); /* Theme background color */
    background-image: 
        linear-gradient(to bottom, transparent 50%, color-mix(in srgb, var(--bg-texture) 25%, transparent) 50%),
        linear-gradient(to right, transparent 50%, color-mix(in srgb, var(--bg-texture) 25%, transparent) 50%);
    background-size: 4px 4px;
    background-blend-mode: multiply;
    transition: background-color 0.4s ease; /* Smooth theme transitions */
    scroll-behavior: smooth; /* Smooth scrolling */
    scrollbar-width: none; /* Hides scrollbar */
    overscroll-behavior: none; /* Prevents browser bounce */
}

/* Add texture overlay */
.front-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, 
            transparent, 
            transparent 1px, 
            color-mix(in srgb, var(--bg-texture) 25%, transparent) 1px, 
            color-mix(in srgb, var(--bg-texture) 25%, transparent) 2px
        );
    background-size: 8px 8px;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.viewport-section {
    width: 100%; /* Full container width */
    height: 100%; /* Full container height */
    position: relative; /* Positioning context */
    overflow: hidden; /* Clips content */
}

/* -- 3. Project Components -- */
.project-container {
    position: relative; /* Creates stacking context */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Clips overflow */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}
.social {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.social-content {
    text-align: center;
}

.social-content h2 {
    font-size: 2rem;
    margin: 0;
}
.social-content p {
    margin-top: 10px;
    font-size: 1.4rem;
    opacity: 0.7;
    text-transform: lowercase;
}

/* Navigation styles */
.navigation {
    position: fixed; /* Stays in viewport */
    bottom: 20px; /* Distance from bottom */
    left: 0; /* Aligned to left */
    width: 100%; /* Full width */
    padding: 0 40px; /* Horizontal padding */
    z-index: 1; /* Above content */
}

.nav-controls {
    display: flex; /* Enables flexbox */
    justify-content: space-between; /* Spreads items */
    align-items: center; /* Centers vertically */
}

.progress-bar {
    flex: 1; /* Grows to fill space */
    height: 2px; /* Thin line */
    background-color: rgba(var(--text-color), 1); /* Theme color */
    position: relative; /* For progress indicator */
    margin-right: 20px; /* Space from buttons */
}

.progress {
    position: absolute; /* Positioned within bar */
    height: 100%; /* Full height */
    background-color: rgba(var(--bg-color), 1); /* Theme color */
    width: 0%; /* Initially empty */
    transition: width var(--transition-medium); /* Smooth width changes */
}

.nav-buttons {
    display: flex; /* Enables flexbox */
    gap: 8px; /* Space between buttons */
    z-index: 1; /* Above progress bar */
}

.nav-buttons button {
    font-family: "Orbitron", sans-serif; /* Main brand font */
    font-weight: 400; /* Standard weight */
    font-style: normal; /* Normal style */
    background: none; /* Transparent background */
    border: none; /* No border */
    font-size: 1rem; /* Button text size */
    cursor: none; /* Custom cursor */
    padding: 8px 16px; /* Button padding */
    color: rgba(var(--text-color), 1); /* Default color */
    transition: color var(--transition-fast); /* Color transition */
}

.nav-buttons button:hover {
    color: rgba(var(--text-color), 1); /* Hover state color */
}

.nav-buttons button:disabled {
    opacity: 0.5; /* Dimmed when disabled */
    cursor: default; /* Default cursor */
}



.nav-controls {
    display: flex; /* Enables flexbox */
    justify-content: space-between; /* Spreads items */
    align-items: center; /* Centers vertically */
}

/* -- 6. Theme Toggle & Copyright -- */
.theme-toggle {
    position: fixed; /* Fixed in viewport */
    bottom: 20px; /* Distance from bottom */
    left: 20px; /* Distance from left */
    box-shadow: 0 0 28px var(--shadow-color);
    z-index: 10; /* Above most content */
}

.copyright {
    font-family: "Orbitron", sans-serif; /* Main brand font */
    font-weight: 400; /* Standard weight */
    font-style: normal; /* Normal style */
    font-size: 24px; /* Copyright text size */
    position: relative; /* Enables positioning */
    transition: right 0.3s ease; /* Smooth position changes */
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start hidden */
        transform: translateY(20px); /* Start below */
    }
    to {
        opacity: 1; /* End visible */
        transform: translateY(0); /* End at natural position */
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* -- 7. Media Queries -- */
/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .theme-toggle {
        bottom: 20px; /* Position from bottom */
        left: 20px; /* Position from left */
    }
}

/* Medium Screens (768px to 1199px) */
@media (max-width: 1199px) {
    .theme-toggle {
        bottom: 20px;
        left: 20px;
    }
    .copyright{
        font-family: "Orbitron", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 24px;
        right: -63%;
      }
}

/* Small Screens (480px to 767px) */
@media (max-width: 767px) {
    .navigation {
        bottom: 15px; /* Adjusted from 5px */
    }
    
    .title-name{
        display: none;
    }
    
    .theme-toggle {
        bottom: 20px;
        left: 20px;
    }
    .copyright{
        font-family: "Orbitron", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 24px;
        right: -52%;
      }
}

/* Extra Small Screens (up to 479px) */
@media (max-width: 479px) {
    .title-name{
        display: none;
    }
    .social-content h2 {
        font-size: 1.2rem;
        margin: 0;
    }
    .social-content p {
        margin-top: 8px;
        font-size: 0.8rem;
        opacity: 0.7;
        text-transform: lowercase;
    }
    .navigation {
        padding: 0 28px;
        bottom: 2px; 
    }
    .progress-bar {
        margin-right: 0;
    }
    .nav-buttons {
        display: none;
    }
    .menu-toggle {
        position: fixed;
        top: 44px;
        right: 28px; 
    }
    .theme-toggle {
        bottom: 20px;
        left: 20px;
        box-shadow: 0 0 28px var(--shadow-color);
    }
    .copyright{
        font-family: "Orbitron", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 12px;
        right: -50%;
        
    }
}
@media (max-width: 390px) {
    .copyright{
        font-family: "Orbitron", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 12px;
        right: -50%;
        
      }
}

