/* Full Stack Master - Custom Styles */

/* Global Styles */
:root {
    --primary-cyan: #0cf2eb;
    --primary-teal: #056360;
    --gradient: linear-gradient(135deg, #0cf2eb 0%, #056360 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Terminal Animation Styles */
.terminal {
    position: relative;
    transition: all 0.3s ease;
}

.terminal-header {
    user-select: none;
}

.terminal-body {
    min-height: 200px;
    overflow: hidden;
}

.typing-line {
    display: block;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #4ade80;
    animation: 
        typing 2s steps(40, end) forwards,
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { 
        width: 0;
        opacity: 1;
    }
    to { 
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #4ade80; }
}

/* Delay classes for each line */
.typing-line:nth-child(1) { animation-delay: 0s; }
.typing-line:nth-child(2) { animation-delay: 1s; }
.typing-line:nth-child(3) { animation-delay: 2.5s; }
.typing-line:nth-child(4) { animation-delay: 4s; }
.typing-line:nth-child(5) { animation-delay: 5.5s; }
.typing-line:nth-child(6) { animation-delay: 7s; }
.typing-line:nth-child(7) { animation-delay: 8.5s; }
.typing-line:nth-child(8) { animation-delay: 10s; }
.typing-line:nth-child(9) { animation-delay: 11.5s; }
.typing-line:nth-child(10) { animation-delay: 13s; }
.typing-line:nth-child(11) { animation-delay: 14.5s; }
.typing-line:nth-child(12) { animation-delay: 16s; }
.typing-line:last-child { 
    border-right: none;
    animation: none;
    opacity: 1;
}

/* Blinking cursor for the last line */
.typing-line:last-child::after {
    content: '|';
    color: #4ade80;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #0cf2eb 0%, #056360 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #0cf2eb 0%, #056360 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4b5563 !important; /* Default text color */
}

/* Active state with gradient background */
.nav-link.active {
    background: linear-gradient(135deg, #0cf2eb 0%, #056360 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hover state */
.nav-link:not(.active):hover {
    background: rgba(12, 242, 235, 0.1);
    color: #0cf2eb !important;
}

/* Mobile menu styles */
#mobile-menu .nav-link {
    padding: 10px 16px;
    margin: 2px 0;
}

#mobile-menu .nav-link.active {
    background: linear-gradient(135deg, #0cf2eb 0%, #056360 100%);
    color: white !important;
}

#mobile-menu .nav-link:not(.active):hover {
    background: rgba(12, 242, 235, 0.1);
    color: #0cf2eb !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0cf2eb 0%, #056360 100%);
    color: white !important;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(12, 242, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #056360;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #056360;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #056360;
    color: white;
    transform: translateY(-2px);
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: inherit !important;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 15px 40px rgba(12, 242, 235, 0.5);
}

.floating-chat-btn:focus {
    outline: 3px solid #0cf2eb;
    outline-offset: 2px;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(12, 242, 235, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(12, 242, 235, 0.2);
    border-color: rgba(12, 242, 235, 0.3);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #0cf2eb;
    outline-offset: 2px;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    display: flex;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease-out;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 242, 235, 0.9) 0%, rgba(5, 99, 96, 0.9) 100%);
    z-index: 1;
}

/* Code Blocks */
pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: #0cf2eb;
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}
