/* PPB1701.com - Clean Modern Design */

:root {
  --primary-color: #5b8def;
  --primary-hover: #4a7de8;
  --accent-color: #7c6aef;
  --text-color: #e8eaed;
  --secondary-text: #b8bcc2;
  --dark-bg: #0f1419;
  --dark-surface: #1a1f2e;
  --glass-border: rgba(255, 255, 255, 0.1);
  --sidebar-width: 60px;
  --panel-width: 450px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

/* Layout */
.main-layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

.left-panel {
  flex: 1;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.left-panel::-webkit-scrollbar {
  display: none;
}

.left-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Header */
.split-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(91, 141, 239, 0.2);
}

.logo-main {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-color);
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(91, 141, 239, 0.3);
}

.logo-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tagline {
  color: var(--secondary-text);
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* Typography */
section {
  margin-bottom: 3rem;
}

h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(91, 141, 239, 0.3);
  transform: translateX(5px);
}

.project-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.badge {
  background: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.project-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Contact */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(91, 141, 239, 0.1);
  border-color: rgba(91, 141, 239, 0.3);
  transform: translateX(5px);
}

.contact-link i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Footer */
.split-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--secondary-text);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(20, 25, 30, 0.98);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-button {
  width: 56px;
  height: 56px;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px;
}

.sidebar-button:hover {
  background: rgba(91, 141, 239, 0.15);
}

.sidebar-button::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary-color);
  transition: height 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.sidebar-button:hover::before {
  height: 24px;
}

.sidebar-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.sidebar-link {
  text-decoration: none;
}

/* Right Panel */
.right-panel {
  width: 0;
  background: rgba(10, 13, 18, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease;
  border-left: 1px solid transparent;
}

.right-panel.open {
  width: var(--panel-width);
  border-left-color: var(--glass-border);
}

.content-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.content-panel.active {
  display: flex;
}

.panel-header {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  border: none;
  margin: 0;
  font-size: 1.3rem;
}

.close-panel {
  background: transparent;
  border: none;
  color: var(--secondary-text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.close-panel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

/* Feed Container */
.feed-container {
  flex: 1;
  overflow: hidden;
  padding: 1rem;
}

.feed-container iframe {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

/* Selection */
::selection {
  background: rgba(91, 141, 239, 0.3);
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
    overflow-y: visible;
    min-height: 100vh;
  }

  .left-panel {
    width: 100%;
    height: auto;
    overflow: visible;
    flex-shrink: 0;
  }

  .sidebar {
    width: 100%;
    height: var(--sidebar-width);
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    padding: 0 1rem;
    justify-content: center;
  }

  .sidebar-button::before {
    display: none;
  }

  .right-panel {
    width: 100%;
    height: 0;
    border-left: none;
    border-top: 1px solid transparent;
    transition: height 0.3s ease !important;
    flex-shrink: 0;
  }

  .main-layout .right-panel.open {
    width: 100%;
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    border-top-color: var(--glass-border);
  }

  body {
    overflow: auto;
    height: auto;
  }
}

@media (max-width: 768px) {
  .left-content {
    padding: 2rem 1.5rem;
  }

  .logo-main {
    font-size: 2.5rem;
  }

  .logo-sub {
    font-size: 0.95rem;
    letter-spacing: 3px;
  }

  .panel-header {
    padding: 1rem 1.5rem;
  }

  .main-layout .right-panel.open {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
  }
}
