/* File: /css/index.css */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

/* Email & Nav (Top Right/Center) */
#email-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

#email-link {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
}

#navbar {
    position: fixed;
    top: 30px;
    right: 40px; 
    z-index: 1000;
}

#nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

#nav-links a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Content Styling */
#hero {
    flex-direction: column; /* Stack text and cube vertically */
}

#hero-content {
    margin-bottom: 40px; /* Space between text and cube */
    text-align: center;
}

#hero-name {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

#hero-title {
    font-size: 1.1rem;
    color: #00ffcc;
    margin-top: 10px;
    opacity: 0.8;
}

/* Social Links - Bottom Left Positioning */
#social-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 1001;
}

#social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#social-links a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    transition: all 0.2s ease;
}

#social-links i {
    font-size: 1.2rem; /* Make the logo slightly larger than the text */
}

#social-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffcc;
    transform: translateX(5px); /* Subtle slide effect on hover */
}

/* Resume - Bottom Right Positioning */
#resume-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1001;
}

#resume-link {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

#resume-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffcc;
    transform: scale(1.1);
}

/* Terminal Icon - Top Left */
#terminal-icon {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1002;
    color: #00ffcc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#terminal-icon:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px #00ffcc;
}

/* Terminal Window */
#terminal-window {
    position: fixed;
    top: 100px;
    left: 40px;
    width: 400px;
    height: 250px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hidden { display: none !important; }

#terminal-header {
    background: #1a1a1a;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
    cursor: move;
}

#close-terminal {
    background: none;
    border: none;
    color: #ff5555;
    cursor: pointer;
}

#terminal-body {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #00ffcc;
}

#terminal-output {
    white-space: pre-wrap;
    margin-bottom: 10px;
}

#input-line {
    display: flex;
    gap: 5px;
}

#terminal-input {
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex-grow: 1;
}

#prompt { color: #00ffcc; }

/* Ensure the cursor is visible during typing */
.cursor {
    display: inline-block;
    width: 10px;
    background-color: #00ffcc;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Section Layouts */
section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cube Styles remains the same */
.scene { width: 200px; height: 200px; perspective: 600px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; cursor: grab; }
.face {
    position: absolute; width: 200px; height: 200px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 255, 204, 0.05);
    backdrop-filter: blur(2px);
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }


/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    
    /* 1. Re-enable and adjust Email at the top */
    #email-container {
        display: block !important;
        top: 15px;
        font-size: 0.65rem; /* Small so it fits between icon and nav */
        width: 100%;
        text-align: center;
    }

    /* 2. Vertically Aligned Nav (Pinned Top-Right) */
    #navbar {
        top: 15px;
        right: 15px;
    }

    #nav-links {
        display: flex;
        flex-direction: column; /* Back to vertical */
        align-items: flex-end;
        gap: 8px; /* Tighten vertical gap */
    }

    #nav-links a {
        font-size: 0.7rem;
        padding: 4px;
    }

    /* 3. Hero Content & Tiny Cube */
    #hero {
        flex-direction: column; 
        padding-top: 60px; /* Room for header elements */
    }

    #hero-name {
        font-size: 1.4rem;
        margin-top: 20px;
    }

    #hero-title {
        font-size: 0.75rem;
    }

    /* Shrink the cube significantly for mobile */
    .scene {
        width: 100px; 
        height: 100px;
        margin-top: 30px;
    }

    .face {
        width: 100px;
        height: 100px;
        font-size: 0.6rem;
    }

    /* Recalculate 3D for 100px size (50px is half) */
    .front  { transform: rotateY(0deg) translateZ(50px); }
    .back   { transform: rotateY(180deg) translateZ(50px); }
    .right  { transform: rotateY(90deg) translateZ(50px); }
    .left   { transform: rotateY(-90deg) translateZ(50px); }
    .top    { transform: rotateX(90deg) translateZ(50px); }
    .bottom { transform: rotateX(-90deg) translateZ(50px); }

    /* 4. Terminal Icon Adjustment */
    #terminal-icon {
        top: 15px;
        left: 15px;
        font-size: 1.1rem;
    }

    /* 5. Terminal Window (Make it wide enough to type) */
    #terminal-window {
        width: 94vw;
        left: 3vw;
        height: 35vh;
        top: 55px;
    }

    /* 6. Footer Elements */
    #social-container, #resume-container {
        bottom: 15px;
    }
}