/* Monitor Animation Styles with Enhanced Green Theme */
.monitor-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    z-index: 5;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.monitor {
    position: relative;
    width: 100%;
    background: #1f1f09;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 195, 74, 0.3);
    overflow: hidden;
    transition: all 0.5s ease;
}

.monitor-frame {
    position: relative;
    padding-top: 62.5%; /* 16:10 aspect ratio */
    background: #1f1f09;
    border: 12px solid #2a2a0f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.monitor-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a0f 0%, #1f1f09 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 195, 74, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(139, 195, 74, 0.1) 0%, transparent 25%);
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.monitor-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.monitor-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    background: rgba(139, 195, 74, 0.2);
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.monitor-buttons {
    display: flex;
    gap: 5px;
}

.monitor-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.2);
}

.monitor-button.red {
    background: #ff5f57;
}

.monitor-button.yellow {
    background: #febc2e;
}

.monitor-button.green {
    background: #28c840;
}

.monitor-address {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    margin: 0 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.monitor-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(31, 31, 9, 0.95);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.monitor-code-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    overflow: hidden;
}

.monitor-code-line {
    display: flex;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.monitor-code-line:nth-child(1) { animation-delay: 0.2s; }
.monitor-code-line:nth-child(2) { animation-delay: 0.4s; }
.monitor-code-line:nth-child(3) { animation-delay: 0.6s; }
.monitor-code-line:nth-child(4) { animation-delay: 0.8s; }
.monitor-code-line:nth-child(5) { animation-delay: 1.0s; }
.monitor-code-line:nth-child(6) { animation-delay: 1.2s; }
.monitor-code-line:nth-child(7) { animation-delay: 1.4s; }
.monitor-code-line:nth-child(8) { animation-delay: 1.6s; }

.monitor-code-number {
    width: 30px;
    color: rgba(205, 220, 57, 0.6);
    font-family: 'Consolas', monospace;
    font-size: 14px;
    text-align: right;
    padding-right: 10px;
    user-select: none;
}

.monitor-code-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Consolas', monospace;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(139, 195, 74, 0.2);
}

/* Typewriter effect styles */
.typewriter-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3.5s steps(40, end) forwards;
}

.typewriter-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    height: 100%;
    width: 8px;
    background-color: #cddc39;
    animation: blink 1s step-end infinite;
}

.monitor-code-line:nth-child(1) .typewriter-text { animation-delay: 0.3s; }
.monitor-code-line:nth-child(2) .typewriter-text { animation-delay: 0.6s; }
.monitor-code-line:nth-child(3) .typewriter-text { animation-delay: 0.9s; }
.monitor-code-line:nth-child(4) .typewriter-text { animation-delay: 1.2s; }
.monitor-code-line:nth-child(5) .typewriter-text { animation-delay: 1.5s; }
.monitor-code-line:nth-child(6) .typewriter-text { animation-delay: 1.8s; }
.monitor-code-line:nth-child(7) .typewriter-text { animation-delay: 2.1s; }
.monitor-code-line:nth-child(8) .typewriter-text { animation-delay: 2.4s; }

.monitor-code-keyword {
    color: #8bc34a;
    font-weight: bold;
}

.monitor-code-string {
    color: #cddc39; /* Lime accent to match your theme */
}

.monitor-code-comment {
    color: #a4d070; /* Light green for comments */
    font-style: italic;
}

.monitor-stand {
    width: 120px;
    height: 40px;
    background: linear-gradient(to bottom, #2a2a0f, #1f1f09);
    margin: 0 auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.monitor-base {
    width: 200px;
    height: 15px;
    background: #1f1f09;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Cursor animation */
.monitor-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: #cddc39; /* Lime cursor to match theme */
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* Floating animation for the monitor */
.monitor-container {
    animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .monitor-container {
        max-width: 450px;
    }
}

@media (max-width: 767px) {
    .monitor-container {
        max-width: 350px;
    }
    
    .monitor-code-number {
        width: 20px;
        font-size: 12px;
    }
    
    .monitor-code-text {
        font-size: 12px;
    }
}

/* Hero section adjustments for centered layout */
.hero .section-title {
    text-align: center;
}

.hero .hero-content-body {
    max-width: 800px;
    margin: 0 auto;
}

.hero .hero-btn {
    justify-content: center;
    display: flex;
}

/* Enhanced glow effect */
.monitor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(139, 195, 74, 0.6), 0 0 20px rgba(205, 220, 57, 0.3);
    opacity: 0;
    animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

/* Add reflection effect */
.monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 40%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Add scanline effect */
.monitor-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.02) 100%
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
}

/* Add animated gradient line at bottom */
.monitor-screen::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, 
        #cddc39 0%, 
        #8bc34a 50%, 
        #cddc39 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    z-index: 3;
    box-shadow: 0 0 15px rgba(205, 220, 57, 0.8);
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Add power button glow */
.monitor::after {
    content: '';
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cddc39;
    box-shadow: 0 0 10px #cddc39, 0 0 5px #cddc39;
    animation: powerGlow 2s ease-in-out infinite alternate;
}

@keyframes powerGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}
