/* Base Styles */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --dark-color: #000000;
    --light-color: #ffffff;
    --terminal-bg: #282c34;
    --terminal-text: #abb2bf;
    --success-color: #2ecc71;
    --warning-color: #e67e22;
    --danger-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Terminal Screen (Gaya Diperbarui) */
.terminal-screen {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    background-color: var(--terminal-bg);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 40px;
}

.terminal-header {
    display: flex;
    align-items: center;
    background-color: #21252b;
    height: 30px;
    padding: 0 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.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 {
    margin-left: 10px;
    color: #9da5b4;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

.terminal-content {
    height: calc(100% - 30px);
    padding: 10px;
    font-family: 'Roboto Mono', monospace;
    color: var(--terminal-text);
    font-size: 14px;
    overflow: auto;
}

/* Navigation */
header {
    background-color: var(--dark-color);
    color: var(--light-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.code-column {
    position: absolute;
    top: 0;
    height: 100vh;
}

.code-char {
    position: absolute;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    color: rgba(108, 92, 231, 0.7);
    text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.code-char:first-child {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(108, 92, 231, 0.8), 0 0 15px rgba(108, 92, 231, 0.3);
    }
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: background-color 0.3s ease;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    transform: translateY(-5vh);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 auto;
    clip-path: inset(0 100% 0 0);
    animation: 
        reveal 2s ease-out forwards,
        rotate-once 1s ease-in-out 2.1s;
}

.highlight {
    color: var(--primary-color);
}

/* Gaya untuk Tautan Sosial Media */
.hero-social-links {
    margin-top: 30px;
    display: flex;
    gap: 25px;
}

.hero-social-links a {
    color: var(--light-color);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.hero-social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .terminal-screen {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        font-size: 2.5rem !important;
    }

    .terminal-screen {
        height: 200px;
        margin-bottom: 30px;
    }

    .hero-social-links a {
        font-size: 2.2rem;
    }
}


/* === EFEK CYBERPUNK START === */

.hero-logo {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: 'Roboto Mono', monospace;
  color: var(--light-color);
  position: relative;
  animation: glitch 1.5s infinite linear alternate-reverse;
  text-shadow: 
    0 0 5px #fff, 
    0 0 10px #fff, 
    0 0 15px #00aaff,
    0 0 20px #00aaff, 
    0 0 25px #00aaff, 
    0 0 30px #ff00ff,
    0 0 35px #ff00ff;
}

.hero-logo::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: 2px;
  text-shadow: -1px 0 #ff0055;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.hero-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: -2px;
  text-shadow: -1px 0 #00d9ff, 1px 1px #00e5ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes glitch-anim {
  0% { clip: rect(46px, 9999px, 9px, 0); }
  5% { clip: rect(25px, 9999px, 33px, 0); }
  10% { clip: rect(46px, 9999px, 21px, 0); }
  15% { clip: rect(21px, 9999px, 88px, 0); }
  20% { clip: rect(3px, 9999px, 91px, 0); }
  25% { clip: rect(84px, 9999px, 7px, 0); }
  30% { clip: rect(51px, 9999px, 83px, 0); }
  35% { clip: rect(77px, 9999px, 29px, 0); }
  40% { clip: rect(10px, 9999px, 33px, 0); }
  45% { clip: rect(74px, 9999px, 5px, 0); }
  50% { clip: rect(21px, 9999px, 99px, 0); }
  55% { clip: rect(4px, 9999px, 43px, 0); }
  60% { clip: rect(38px, 9999px, 7px, 0); }
  65% { clip: rect(69px, 9999px, 75px, 0); }
  70% { clip: rect(25px, 9999px, 1px, 0); }
  75% { clip: rect(8px, 9999px, 88px, 0); }
  80% { clip: rect(45px, 9999px, 97px, 0); }
  85% { clip: rect(19px, 9999px, 60px, 0); }
  90% { clip: rect(82px, 9999px, 46px, 0); }
  95% { clip: rect(59px, 9999px, 19px, 0); }
  100% { clip: rect(50px, 9999px, 95px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(83px, 9999px, 10px, 0); }
  5% { clip: rect(40px, 9999px, 100px, 0); }
  10% { clip: rect(2px, 9999px, 86px, 0); }
  15% { clip: rect(91px, 9999px, 100px, 0); }
  20% { clip: rect(69px, 9999px, 57px, 0); }
  25% { clip: rect(14px, 9999px, 59px, 0); }
  30% { clip: rect(3px, 9999px, 66px, 0); }
  35% { clip: rect(88px, 9999px, 73px, 0); }
  40% { clip: rect(43px, 9999px, 20px, 0); }
  45% { clip: rect(72px, 9999px, 91px, 0); }
  50% { clip: rect(85px, 9999px, 19px, 0); }
  55% { clip: rect(100px, 9999px, 52px, 0); }
  60% { clip: rect(41px, 9999px, 49px, 0); }
  65% { clip: rect(8px, 9999px, 11px, 0); }
  70% { clip: rect(100px, 9999px, 40px, 0); }
  75% { clip: rect(26px, 9999px, 87px, 0); }
  80% { clip: rect(63px, 9999px, 7px, 0); }
  85% { clip: rect(9px, 9999px, 63px, 0); }
  90% { clip: rect(44px, 9999px, 50px, 0); }
  95% { clip: rect(27px, 9999px, 34px, 0); }
  100% { clip: rect(90px, 9999px, 4px, 0); }
}

/* Keyframes untuk animasi memunculkan tulisan */
@keyframes reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Keyframes untuk animasi berputar satu kali */
@keyframes rotate-once {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* === EFEK CYBERPUNK END === */