/*
 * Copyright © Derouiche Oussama
 * All rights reserved.
 * Unauthorized copying, modification, distribution or use
 * of this file is strictly prohibited.
 * https://derouicheoussama.com
 */

/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050505;
    --bg-secondary: #101020;
    --text-primary: #ffffff;
    --text-secondary: #adc5e7;
    --accent: #007bff;
    --accent-second: #0036b3;
    --accent-hover: #4da3ff;
    --console-green: #00a2ff;
    --console-dark: #0a0a14;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-second));
    --terminal-bg: rgba(5, 5, 10, 0.85);
    --grid-color: rgba(0, 123, 255, 0.05);
    --glow: 0 0 10px rgba(0, 123, 255, 0.5);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 54, 179, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    animation: oceanWave 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Terminal Header Effect */
.terminal-bar {
    height: 30px;
    background: var(--console-dark);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-top: -30px;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background-color: #0066cc; }
.yellow { background-color: #003399; }
.green { background-color: #007bff; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 10px;
    font-family: monospace;
}

/* Header and Profile */
header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 1.2s ease-in-out;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    background: var(--terminal-bg);
    border: 1px solid rgba(0, 238, 255, 0.1);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    animation: scanline 3s linear infinite;
    opacity: 0.5;
    z-index: 0;
}

.profile {
    position: relative;
    z-index: 1;
}

.profile::before, .profile::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: transparent;
    top: 0;
    z-index: -1;
}

.profile::before {
    left: calc(50% - 180px);
    border: 2px solid var(--accent);
    opacity: 0.3;
    animation: pulse 3s infinite alternate, rotate 20s linear infinite;
}

.profile::after {
    right: calc(50% - 180px);
    border: 2px solid var(--accent-second);
    opacity: 0.3;
    animation: pulse 3s infinite alternate-reverse, rotate 20s linear infinite reverse;
}

.profile-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid transparent;
    background-image: var(--gradient);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: var(--glow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    transform: perspective(800px) rotateY(15deg);
}

.profile-img::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent) 20%, var(--accent-second) 40%, transparent 60%);
    animation: rotate 6s linear infinite;
    z-index: -1;
    opacity: 0.4;
}

.profile-img:hover {
    transform: perspective(800px) rotateY(-15deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 238, 255, 0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%) contrast(110%);
}

.profile-img:hover img {
    transform: scale(1.05);
}

.console-line {
    font-family: 'Courier New', monospace;
    color: var(--console-green);
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.console-prompt::before {
    content: '> ';
    color: var(--accent);
}

h1 {
    font-size: 2.8rem;
    margin: 2rem 0 0.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 3s linear infinite;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

h1::before, h1::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

h1::before {
    left: -40px;
}

h1::after {
    right: -40px;
}

h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    width: 0;
    animation-fill-mode: forwards;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

/* Sections */
section {
    background: var(--terminal-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 238, 255, 0.1);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0.5;
}

.code-section {
    font-family: 'Courier New', monospace;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--console-dark);
    border-radius: 5px;
    color: var(--console-green);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.code-numbers {
    position: absolute;
    left: 0;
    top: 0;
    padding: 1rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    text-align: right;
    font-size: 0.9rem;
    user-select: none;
}

.code-content {
    margin-left: 2.5rem;
}

.comment {
    color: var(--text-secondary);
}

.keyword {
    color: #4da3ff;
}

.function {
    color: #007bff;
}

.string {
    color: #a0c8ff;
}

section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 238, 255, 0.2);
}

.about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.skill {
    background: rgba(14, 21, 37, 0.8);
    color: var(--text-primary);
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    backdrop-filter: blur(10px);
}

.skill i {
    font-size: 1.2rem;
    color: var(--accent);
    transition: color 0.3s ease;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill:hover {
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--glow);
    border-color: transparent;
}

.skill:hover i {
    color: white;
}

.skill:hover::before {
    opacity: 0.8;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.8rem;
    height: 3.8rem;
    background-color: var(--console-dark);
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateY(0deg);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 2;
}

.social-icon:hover {
    transform: perspective(800px) rotateY(-15deg) translateY(-8px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
}

.social-icon:hover::before {
    opacity: 0.8;
}

.social-icon:hover i {
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    font-family: 'Courier New', monospace;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 238, 255, 0.3), transparent);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: 'Courier New', monospace;
}

.footer-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 123, 255, 0.1);
}

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

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(1000%);
    }
}

/* Staggered animations for sections */
.about {
    animation: fadeIn 0.8s ease-in-out 0.2s backwards;
}

.services {
    animation: fadeIn 0.8s ease-in-out 0.4s backwards;
}

.skills {
    animation: fadeIn 0.8s ease-in-out 0.6s backwards;
}

.social {
    animation: fadeIn 0.8s ease-in-out 0.8s backwards;
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #0036b3;
    animation: glitch-animation 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 1px 0 #007bff;
    animation: glitch-animation 2s infinite linear alternate-reverse;
}

@keyframes glitch-animation {
    0% {
        clip-path: inset(0% 0% 98% 0%);
    }
    5% {
        clip-path: inset(30% 0% 70% 0%);
    }
    10% {
        clip-path: inset(10% 0% 80% 0%);
    }
    15% {
        clip-path: inset(10% 0% 90% 0%);
    }
    20% {
        clip-path: inset(50% 0% 30% 0%);
    }
    25% {
        clip-path: inset(80% 0% 10% 0%);
    }
    100% {
        clip-path: inset(100% 0% 0% 0%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .social-icons {
        gap: 1.2rem;
    }
    
    .profile::before, .profile::after {
        width: 100px;
        height: 100px;
    }
    
    .profile::before {
        left: calc(50% - 140px);
    }
    
    .profile::after {
        right: calc(50% - 140px);
    }
    
    .code-section {
        font-size: 0.8rem;
    }
    
    .popup-content {
        max-width: 90%;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-img {
        width: 130px;
        height: 130px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .social-icon {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1.2rem;
    }
    
    .profile::before, .profile::after {
        display: none;
    }
    
    .code-section {
        padding: 0.8rem;
    }
    
    .code-numbers {
        display: none;
    }
    
    .code-content {
        margin-left: 0;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Contact Form Popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-container.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    width: 100%;
    max-width: 500px;
    background: var(--terminal-bg);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 238, 255, 0.2);
    position: relative;
    animation: fadeInUp 0.5s ease;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-container.show .popup-content {
    transform: scale(1);
}

.popup-body {
    padding: 2rem;
}

.popup-body h3 {
    margin-top: 0.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--console-dark);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    resize: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--glow);
    outline: none;
}

.submit-btn {
    background: var(--console-dark);
    color: var(--console-green);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: auto;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
    color: white;
}

.submit-btn:hover::before {
    opacity: 0.8;
}

.submit-btn .btn-text,
.submit-btn i {
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes typewriter {
    from { width: 0 }
    to { width: 100% }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--console-dark);
    border-radius: 8px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 238, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient);
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 238, 255, 0.2);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    margin-bottom: 1.2rem;
    font-size: 2.2rem;
    color: var(--accent);
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(0, 238, 255, 0.1);
    z-index: -1;
    animation: morphBlob 8s ease-in-out infinite;
}

.service-card:hover .service-icon {
    color: var(--accent-second);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 4px;
    color: var(--accent);
    display: inline-block;
    align-self: flex-start;
}

@keyframes morphBlob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% {
        border-radius: 30% 30% 70% 70% / 70% 30% 70% 30%;
    }
    75% {
        border-radius: 70% 70% 30% 30% / 30% 70% 30% 70%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Ocean-specific animations */
@keyframes oceanWave {
    0% {
        transform: translateX(-100%) scaleY(0.7);
    }
    50% {
        transform: translateX(100%) scaleY(1.3);
    }
    100% {
        transform: translateX(-100%) scaleY(0.7);
    }
}

/* Welcome Popup Styles */
.welcome-message {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 3px solid var(--accent);
    background: rgba(0, 123, 255, 0.05);
    border-radius: 0 5px 5px 0;
}

.welcome-message p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

#start-session {
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 500;
}

#start-session::before {
    background: var(--accent-second);
}

#start-session i {
    margin-left: 8px;
    font-size: 0.9rem;
}

#welcome-popup .popup-content {
    max-width: 550px;
}

#welcome-popup .popup-body h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Typing animation for welcome message */
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.console-line {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1s steps(40, end);
}

.console-line:first-of-type {
    animation-delay: 0.5s;
}

.console-line.console-prompt {
    animation-delay: 1.5s;
}

/* Terminal Loader */
.terminal-loader {
    width: 100%;
    height: 6px;
    background: var(--console-dark);
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

.terminal-loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 3px;
    animation: loading 1.5s forwards ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    20% { width: 20%; }
    50% { width: 50%; }
    70% { width: 70%; }
    90% { width: 90%; }
    100% { width: 100%; }
}

/* Typing Animation */
.typing-effect {
    opacity: 0;
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 1s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
    animation-delay: var(--delay, 1.5s);
}

.console-line:first-of-type {
    --delay: 1.5s;
}

.console-line.console-prompt {
    --delay: 2.5s;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.form-checkbox input {
    margin-right: 10px;
    width: auto;
    cursor: pointer;
}

.form-checkbox label {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Form Response Messages */
.form-response {
    background: var(--console-dark);
    border-radius: 5px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.form-response i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-response h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-response p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.form-response p:last-child {
    margin-bottom: 0;
}

.form-response a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-response a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.form-response.success i {
    color: #00b4d8;
}

.form-response.error i {
    color: #ff4d6d;
}

.submit-btn .fa-spinner {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Email template styles for the confirmation email would be created on the server side */ 