/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #121214;
    color: #e1e1e6;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 2. Header & Navigation Structure */
header {
    background-color: #1a1a1e;
    padding: 20px 0;
    border-bottom: 1px solid #29292e;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;             /* Ensures full space usage */
    position: relative;      /* Keeps mobile dropdown anchored to header */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

nav a {
    color: #a8a8b3;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: #00adb5; /* Vibrant accent color */
}

/* 3. Hero Section Layout */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #a8a8b3;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* 4. Interactive Elements (Buttons) */
.btn {
    display: inline-block;
    background-color: #00adb5;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #007a80;
}

/* 5. Footer Layout */
footer {
    background-color: #0a0a0c;
    padding: 30px 0;
    font-size: 0.9rem;
    color: #737380;
    width: 100%;
    /* Removed position: absolute; and bottom: 0; */
}

.footer-links {
    display: flex;
    gap: 20px;
}

.about-section {
    padding: 60px 0;
}

.page-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Flexbox layout to put text on left, image on right */
.about-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #a8a8b3;
}

.about-image {
    flex-shrink: 0;
    max-width: 320px; /* Adjust size of Polaroid container here */
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
    /* Optional slight rotate for a cool physical photo look */
    transform: rotate(3deg); 
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Mobile Responsiveness: Stacks photo below text on phones */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: left;
    }
    
    .about-image {
        max-width: 250px;
        margin: 20px auto 0 auto;
    }
}

/* --- Hamburger Button Styles --- */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: auto; /* Ensures form button styles don't stretch it */
    margin-left: auto; /* Pushes button to the far right */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    left: 0;
    transition: transform 0.2s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }


/* --- Mobile Navigation Styles --- */
@media (max-width: 768px) {
    /* Keeps logo on far left */
    .logo {
        order: 1;
    }

    /* Pushes hamburger button to the far right */
    .nav-toggle {
        display: block; 
        order: 2;
        margin-left: auto;
    }

    /* Positions the mobile drop-down menu */
    .nav-menu {
        display: none; 
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1e;
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid #29292e;
    }

    /* Shown when toggled open via JavaScript */
    .nav-menu.nav-open {
        display: flex;
    }

    .nav-menu a {
        margin: 10px 0;
        text-align: center;
    }

    header .container {
        position: relative; 
    }
}

/* Styles the logo container link */
.logo {
  display: inline-flex;  /* Keeps the image and text inline */
  align-items: center;  /* Vertically centers the image with the text */
  gap: 10px;            /* Adds space between icon and text */
  text-decoration: none;
}

/* Explicitly constrain the SVG image dimensions */
.logo-icon {
  width: 24px !important;  /* Hard-locks the width */
  height: 24px !important; /* Hard-locks the height */
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;          /* Stops flexbox from resizing or stretching the icon */
  object-fit: contain;
}

/* --- Navigation Layout Reset --- */
.nav-menu ul {
  list-style: none; /* Removes bullet points */
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 25px; /* Spacing between navigation links */
}

/* Base Link Styles */
.nav-list a {
  color: #a8a8b3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-left: 0; /* Clear previous margin */
}

.nav-list a:hover,
.nav-list a.active {
  color: #00adb5; /* Accent teal */
}

/* --- Dropdown Container --- */
.dropdown {
  position: relative;
}

/* Dropdown Sub-menu Styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1e;
  border: 1px solid #29292e;
  border-radius: 6px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #a8a8b3;
  white-space: nowrap;
  text-align: left;
}
.dropdown-menu a:hover {
  background-color: #25252b;
  color: #00adb5;
}

/* Show sub-menu on hover (Desktop) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile Responsiveness Adjustment */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: #121214;
    padding-left: 15px;
  }
}

/* =========================================
   FOOTER STYLES
   ========================================= */

footer {
    background-color: #1a1a1e; /* Matches your header background */
    border-top: 1px solid #29292e; /* Matches the header border */
    padding: 20px 0;
    margin-top: auto; /* Pushes footer to the bottom of the page */
}

/* Align the paragraph and the link inside the footer */
.footer-content {
    display: flex;
    justify-content: space-between; /* Puts copyright on left, Contact on right */
    align-items: center;
}

.footer-content p {
    color: #a8a8b3;
    font-size: 0.9rem;
}

/* Match the Contact link to your header .nav-list a styles */
.footer-contact-link {
    color: #a8a8b3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #00adb5; /* Matches your teal hover state */
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    z-index: 1000;
}

.cookie-banner .terminal-body p {
    color: #d4d4d4;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-banner .terminal-body {
    padding: 20px 25px;
}

.cookie-banner .terminal-body a {
    color: #00adb5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #a8a8b3;
    border: 1px solid #29292e;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: #00adb5;
    color: #00adb5;
}

.cookie-banner .btn,
.cookie-banner .btn-outline {
    background-color: #2a2a2a;
    color: #d4d4d4;
    border: 1px solid #444;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
}

.cookie-banner .btn:hover,
.cookie-banner .btn-outline:hover {
    background-color: #3a3a3a;
}

/* =========================================
   SHARED TERMINAL WINDOW STYLES
   ========================================= */

.terminal-window {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #252526;
    padding: 10px 15px;
    cursor: default;
}

.window-buttons {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.window-title {
    color: #858585;
    font-size: 0.85rem;
}

.terminal-body {
    padding: 20px 25px;
}

/* =========================================
   PRIVACY TABLE STYLES
   ========================================= */

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 0.95rem;
}

.privacy-table th,
.privacy-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #29292e;
}

.privacy-table th {
    color: #569cd6;
    font-weight: 700;
    background-color: #1a1a1e;
}

.privacy-table td {
    color: #d4d4d4;
}

.privacy-table tr:hover td {
    background-color: #1a1a1e;
}

/* Makes the Cookie Name column stand out like code */
.privacy-table td:first-child {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #ce9178;
}

/* --- File Explorer (Terminal Sidebar) --- */

.file-explorer {
    display: flex;
    min-height: 300px;
}

.file-explorer-section {
    padding-bottom: 60px;
}

.file-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 140px;
    flex-shrink: 0;
    padding: 0 16px;
    border-right: 1px solid #333;
}

.file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: fit-content;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}

.file-icon-shape {
    width: 40px;
    display: flex;
    flex-direction: column;
}

.file-icon-tab {
    width: 60%;
    height: 6px;
    background-color: #393e46;
    border-radius: 3px 3px 0 0;
    align-self: flex-start;
}

.file-icon-body {
    width: 100%;
    height: 30px;
    background-color: #393e46;
    border-radius: 0 3px 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: #eeeeee;
}

.file-icon-body svg {
    width: 18px;
    height: 18px;
}

.file-icon:hover .file-icon-tab,
.file-icon:hover .file-icon-body,
.file-icon.active .file-icon-tab,
.file-icon.active .file-icon-body {
    background-color: #00adb5;
}
.file-icon:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-icon.active {
    border-color: #00adb5;
    color: #00adb5;
    background: rgba(0, 173, 181, 0.08);
}

.file-icon-glyph {
    font-size: 1.1rem;
}

.file-icon-label {
    word-break: break-word;
    text-align: center;
}

.file-content {
    flex: 1;
    padding-left: 20px;
    overflow-y: auto;
}

.file-pane {
    display: none;
}

.file-pane.active {
    display: block;
}

.pane-title {
    margin-top: 0;
    margin-bottom: 16px;
}

.pane-empty {
    color: #888;
}

.book-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    gap: 12px;
}

.book-cover {
    flex: 0 0 60px;
}

.book-cover img {
    width: 60px;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.book-details {
    flex: 1;
    min-width: 0;
}

.book-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-title {
    font-weight: 500;
}

.book-author {
    color: #888;
}

.book-rating {
    margin-left: auto;
    margin-right: 10px;
    color: #FFD700;
    letter-spacing: 2px;
    font-size: 20px;
}

.book-review {
    color: #888;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .book-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-rating {
        margin-left: 0;
        margin-right: 0;
    }
}

