/* Import futuristic and cell-shaded fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Raleway:wght@400;700&display=swap');

/* Global Color Scheme inspired by A Scanner Darkly */
body {
    background-image: url('nav.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Raleway', sans-serif;
    color: #f4f5fc;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    filter: blur(10px);
    animation: background-blur 20s ease infinite alternate;
}

/* Apply a dark overlay for the nav area */
header, nav {
    background-color: rgba(22, 24, 46, 0.75);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Navigation Links */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    font-family: 'Orbitron', sans-serif;
    color: #ff6666;
    text-decoration: none;
    font-size: 1.3em;
    letter-spacing: 0.15em;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6666;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

nav ul li a:hover::before {
    transform: scaleX(1);
}

/* Main content styling */
main {
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

/* Adjust portfolio layout */
.portfolio-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
}

.project-details {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    flex: 1;
}

/* Code gallery layout */
.file-list {
    background-color: rgba(22, 24, 46, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 10px;
    width: 95%;
}

#code-display {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 95%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


/* WHOIS Section */
.whois-section {
    background-color: #282a44;
    padding: 40px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 100, 0, 0.4);
}

.whois-section h1 {
    color: #ffcc00;
    font-size: 2.8em;
    margin-bottom: 25px;
}

input[type="text"] {
    width: 320px;
    padding: 12px;
    font-size: 1.2em;
    border: 2px solid #ff6666;
    border-radius: 5px;
    background-color: #393a5a;
    color: #f4f5fc;
    text-align: center;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #ffcc00;
}

button {
    padding: 12px 30px;
    background-color: #ff6666;
    color: #f4f5fc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ffcc00;
    color: #282a44;
}

/* Project Titles */
h2 {
    font-family: 'Orbitron', sans-serif;
    color: #ff6666;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.7);
    text-transform: uppercase;
}

/* Code Gallery and Text */
code {
    font-family: 'Courier Prime', monospace;
    background: #232343;
    color: #f4f5fc;
    /* border-left: 4px solid #ff6666; */
    padding: 12px;
    margin: 12px 0;
    /* box-shadow: 0 4px 8px rgba(255, 100, 0, 0.2); */
}

/* Image Gallery Styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.gallery img {
    width: 100%;
    max-width: 260px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 100, 0, 0.6);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(255, 200, 0, 0.8);
}

/* Modal styles for full-size image */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.modal-image {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #FFFFFF;
    cursor: pointer;
}

/* General Link Styling (applies to all pages and dynamic content) */
a {
    color: #ff6666;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffcc00;
}

a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6666;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

a:hover::before {
    transform: scaleX(1);
}

/* Style Links Inside Project, College, and Pro Sections */
#project-list a, 
#file-list a,
#project-content a {
    color: #ff6666; /* Same color as nav links */
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

#project-list a:hover, 
#file-list a:hover,
#project-content a:hover {
    background-color: #393a5a;
    color: #ffcc00;
}

/* Footer Link Styling */
footer a {
    color: #ff6666;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffcc00;
}

/* Footer */
footer {
    text-align: center;
    background-color: #16182e;
    color: #CCCCCC;
    font-size: 0.8em;
    padding: 30px;
}

/* Glitch Text Effect (Blurred Glitch) */
.glitch {
    position: relative;
    color: #ff6666;
    cursor: pointer;
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    transition: color 0.3s, filter 0.3s;
}

.glitch:hover {
    animation: glitch-intense 1s infinite;
    color: #ffcc00;
    filter: blur(8px);
    text-shadow: 2px 0 #ff6666, -2px 0 #ffcc00;
}

@keyframes glitch-intense {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Dynamic Background Blur Animation */
@keyframes background-blur {
    0% {
        filter: blur(5px);
    }
    50% {
        filter: blur(8px);
    }
    100% {
        filter: blur(5px);
    }
}

/* Dynamic Foreground Blur Effect (Limit to 20% of screen) */
.foreground-blur {
    position: absolute;
    width: 20vw;
    height: 20vh;
    background-color: rgba(0, 0, 0, 0.2);
    filter: blur(10px);
    border-radius: 50%;
    animation: foreground-blur-move 30s infinite alternate;
}

@keyframes foreground-blur-move {
    0% {
        top: 10%;
        left: 10%;
    }
    50% {
        top: 40%;
        left: 60%;
    }
    100% {
        top: 70%;
        left: 30%;
    }
}

/* Scrambling Text Animation */
@keyframes scramble-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; transform: scale(1.05); }
    70% { opacity: 0.8; transform: scale(1.08); }
}

/* Button Animation */
button:hover {
    animation: scramble-text 1.5s ease-out infinite;
}

/* Terminal window styling */
.terminal-window {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.85);
    color: #f4f5fc;
    padding: 15px;
    height: 150px;
    overflow-y: auto;
    border-radius: 8px;
    border: none;
    line-height: 1.5em;
}

/* Command input styling */
#command-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #f4f5fc;
    border: none;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2em;
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column;
        align-items: center;
    }
    
    .sub-nav {
        width: 100%;
        margin-bottom: 20px;
    }

    .project-details {
        width: 100%;
    }

    main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 1.1em;
    }

    .project-details, .sub-nav {
        padding: 15px;
    }

    input[type="text"] {
        width: 100%;
    }
} 
