/* Landing Mode Styles */

/* Body styles when in landing-only mode */
body.landing-only-mode {
  overflow: hidden;
  height: 100vh;
  background: var(--matrix-bg);
}

/* Enhanced landing section styles when in landing-only mode */
body.landing-only-mode #landing {
  height: 100vh;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 0;
}

body.landing-only-mode #professional,
body.landing-only-mode #terminal,
body.landing-only-mode .main-header,
body.landing-only-mode .side-navigation,
body.landing-only-mode .back-to-top {
  display: none !important;
}

body.landing-only-mode .landing-container {
  max-width: 800px;
  width: 90%;
  padding: var(--space-8);
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-3), 0 0 30px rgba(0, 255, 0, 0.15);
  border: 1px solid rgba(0, 255, 0, 0.1);
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.landing-only-mode .landing-container:hover {
  transform: translateY(-10px);
  box-shadow: var(--elevation-4), 0 0 50px rgba(0, 255, 0, 0.25);
  border-color: rgba(0, 255, 0, 0.2);
}

body.landing-only-mode h1 {
  font-size: calc(var(--font-size-4xl) * 1.2);
  margin-bottom: var(--space-6);
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

body.landing-only-mode .intro {
  font-size: calc(var(--font-size-lg) * 1.1);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

body.landing-only-mode .social-links {
  margin: var(--space-6) 0;
  gap: var(--space-4);
}

body.landing-only-mode .social-icon {
  padding: var(--space-3) var(--space-5);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 0, 0.2);
  color: var(--light-gray-1);
  font-size: var(--font-size-md);
}

body.landing-only-mode .social-icon:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border-color: rgba(0, 255, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

body.landing-only-mode .cta-container {
  margin-top: var(--space-6);
}

body.landing-only-mode .cta-button {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-md);
  letter-spacing: 0.5px;
}

body.landing-only-mode .cta-button.primary {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.7), rgba(0, 100, 0, 0.7));
  border: 1px solid rgba(0, 255, 0, 0.3);
}

body.landing-only-mode .cta-button.primary:hover {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.8), rgba(0, 100, 0, 0.8));
  border-color: rgba(0, 255, 0, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 0, 0.3);
}

body.landing-only-mode .scroll-down {
  display: none;
}

/* Mode switch container styles when in landing-only mode */
body.landing-only-mode .mode-switch-container {
  bottom: 30px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 0, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.1);
}

body.landing-only-mode .mode-switch-container:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(0, 255, 0, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
  body.landing-only-mode h1 {
    font-size: var(--font-size-4xl);
  }
  
  body.landing-only-mode .intro {
    font-size: var(--font-size-lg);
  }
  
  body.landing-only-mode .landing-container {
    padding: var(--space-6);
  }
  
  body.landing-only-mode .social-links {
    gap: var(--space-3);
  }
  
  body.landing-only-mode .social-icon {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  body.landing-only-mode h1 {
    font-size: calc(var(--font-size-3xl) * 0.9);
  }
  
  body.landing-only-mode .intro {
    font-size: var(--font-size-md);
  }
  
  body.landing-only-mode .landing-container {
    padding: var(--space-4);
    width: 95%;
  }
  
  body.landing-only-mode .social-links {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  body.landing-only-mode .social-icon {
    width: 100%;
    justify-content: center;
  }
  
  body.landing-only-mode .cta-button {
    width: 100%;
  }
}
/* Terminal Mode Styles */
#terminal {
    background-color: #0d0d0d;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
}

.terminal-window {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #333;
}

.terminal-header {
    background-color: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.terminal-buttons {
    position: absolute;
    left: 15px;
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.close { background-color: #ff5f56; }
.terminal-button.minimize { background-color: #ffbd2e; }
.terminal-button.maximize { background-color: #27c93f; }

.terminal-title {
    color: #ccc;
    font-size: 14px;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #00ff00;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

.terminal-body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.57807; }
    40% { opacity: 0.26593; }
    45% { opacity: 0.84623; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

.terminal-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-prompt {
    color: #00ff00;
    white-space: nowrap;
    margin-right: 5px;
}

#terminalInput {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    flex: 1;
    outline: none;
    caret-color: #00ff00;
}

#terminalInput::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: #00ff00; }
}

.terminal-output {
    margin-bottom: 10px;
}

.command-echo {
    color: #ffffff;
    margin-bottom: 5px;
}

.command-response {
    color: #00ff00;
    margin-bottom: 15px;
}

.command-error {
    color: #ff5f56;
    margin-bottom: 15px;
}

/* Scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #444;
}

body.terminal-mode {
    overflow: hidden !important;
}

body.terminal-mode #landing,
body.terminal-mode #professional,
body.terminal-mode .main-header,
body.terminal-mode .side-navigation,
body.terminal-mode .back-to-top {
    display: none !important;
}

body.terminal-mode #terminal {
    display: flex !important;
}
