/* Global Variables */
:root {
    --yellow: #f4e34c;
    --dark-blue: #b0b6c1;
    --black: #020406;
    --text: #F2F2F2;
    --green: #64ffda;
    --terminal-green: #39d353;
    --focus-outline: 2px solid var(--green);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Lazy loading images */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--terminal-green);
    color: var(--black);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--green);
}

.back-to-top:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--black);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 20px 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    z-index: 1;
}

/* Terminal */
.terminal {
    width: 100%;
    max-width: 800px;
    margin-bottom: 50px;
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
}

.terminal-buttons {
    display: flex;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: var(--text);
    font-size: 14px;
    opacity: 0.7;
}

.terminal-body {
    padding: 20px;
    min-height: 150px;
    font-family: 'Share Tech Mono', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.prompt {
    color: var(--terminal-green);
    margin-right: 10px;
}

.command {
    color: var(--text);
}

.cursor {
    color: var(--terminal-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-output {
    margin-top: 20px;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.5s;
}

.terminal-output.show {
    opacity: 1;
}

/* Hero Text */
.hero-text {
    text-align: center;
    z-index: 1;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--yellow);
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--dark-blue);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--green);
    z-index: -2;
}

@keyframes glitch-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: translate(0);
    }
    20% {
        clip: rect(12px, 9999px, 59px, 0);
        transform: translate(-5px);
    }
    40% {
        clip: rect(48px, 9999px, 29px, 0);
        transform: translate(5px);
    }
    60% {
        clip: rect(42px, 9999px, 73px, 0);
        transform: translate(-3px);
    }
    80% {
        clip: rect(33px, 9999px, 27px, 0);
        transform: translate(3px);
    }
    100% {
        clip: rect(2px, 9999px, 85px, 0);
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: translate(0);
    }
    20% {
        clip: rect(19px, 9999px, 40px, 0);
        transform: translate(5px);
    }
    40% {
        clip: rect(79px, 9999px, 55px, 0);
        transform: translate(-5px);
    }
    60% {
        clip: rect(34px, 9999px, 92px, 0);
        transform: translate(3px);
    }
    80% {
        clip: rect(82px, 9999px, 64px, 0);
        transform: translate(-3px);
    }
    100% {
        clip: rect(5px, 9999px, 15px, 0);
        transform: translate(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text);
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-button {
    padding: 12px 25px;
    border: 2px solid var(--yellow);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 1;
}

.hero-button.primary {
    background-color: var(--yellow);
    color: var(--black);
}

.hero-button.secondary {
    background-color: transparent;
    color: var(--yellow);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    transition: left 0.3s;
    z-index: -1;
}

.hero-button:hover::before {
    left: 0;
}

.hero-button:hover {
    color: var(--yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 227, 76, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--text);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* Services Preview Section */
.services-preview {
    padding: 100px 0;
    background-color: rgba(10, 25, 47, 0.3);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--yellow);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--yellow);
}

.service-icon {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--text);
    opacity: 0.8;
}

.service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 227, 76, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.service-card:hover .service-hover {
    transform: translateY(0);
}

.service-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 3rem;
    color: var(--black);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    
    .terminal {
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 200px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* Tech Stack Section */
.tech-stack {
    padding: 100px 0;
    background-color: rgba(10, 25, 47, 0.3);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-item {
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--yellow);
}

.tech-icon {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 15px;
}

.tech-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.tech-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tech-progress {
    height: 100%;
    background-color: var(--yellow);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Code Playground Section */
.code-playground {
    padding: 100px 0;
    background-color: rgba(2, 4, 6, 0.5);
}

.playground-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.code-editor {
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.editor-header {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
}

.editor-buttons {
    display: flex;
    margin-right: 15px;
}

.editor-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.editor-button.close {
    background-color: #ff5f56;
}

.editor-button.minimize {
    background-color: #ffbd2e;
}

.editor-button.maximize {
    background-color: #27c93f;
}

.editor-title {
    color: var(--text);
    font-size: 14px;
    opacity: 0.7;
}

.editor-body {
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 5px;
}

.code-comment {
    color: #6a9955;
}

.code-keyword {
    color: #569cd6;
}

.code-variable {
    color: #9cdcfe;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.playground-output {
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    flex-direction: column;
}

.output-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    color: var(--text);
    font-size: 14px;
    opacity: 0.7;
}

.output-body {
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    color: var(--terminal-green);
    flex-grow: 1;
}

.run-button {
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 15px;
}

.run-button:hover {
    background-color: #ffcc00;
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: rgba(10, 25, 47, 0.3);
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 30px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s;
}

.testimonial-card.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    margin-bottom: 5px;
}

.author-position {
    font-size: 0.9rem;
    opacity: 0.8;
}

.author-signature {
    flex: 0 0 150px;
    height: 60px;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}
.author-signature img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}
.testimonial-card:hover .author-signature img {
    filter: grayscale(0%);
}
/* Add a subtle pen icon to indicate it's a signature */
.author-signature::after {
    content: '\f304';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    bottom: 5px;
    font-size: 12px;
    color: var(--yellow);
    opacity: 0.7;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: var(--yellow);
}

/* Process Section */
.process {
    padding: 100px 0;
    background-color: rgba(2, 4, 6, 0.5);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    width: 2px;
    height: calc(100% + 10px);
    background-color: rgba(100, 255, 218, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--yellow);
}

.step-content p {
    line-height: 1.6;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .playground-container {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .process-step:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
        top: 110px;
        height: calc(100% - 60px);
    }
}
/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Add to your styles.css */
.morphing-container {
    position: relative;
    margin: 40px 0;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.morphing-text, .morphing-overlay {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: absolute;
    color: var(--yellow);
}

.morphing-overlay {
    color: var(--dark-blue);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.morphing-container.glitch .morphing-overlay {
    clip-path: inset(0 0 0 0);
}

.morphing-container::before, .morphing-container::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.morphing-container::before {
    color: var(--green);
    z-index: -1;
    animation: glitch-1 0.5s infinite;
}

.morphing-container::after {
    color: var(--terminal-green);
    z-index: -2;
    animation: glitch-2 0.5s infinite;
}

@keyframes glitch-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: translate(0);
    }
    20% {
        clip: rect(12px, 9999px, 59px, 0);
        transform: translate(-5px);
    }
    40% {
        clip: rect(48px, 9999px, 29px, 0);
        transform: translate(5px);
    }
    60% {
        clip: rect(42px, 9999px, 73px, 0);
        transform: translate(-3px);
    }
    80% {
        clip: rect(33px, 9999px, 27px, 0);
        transform: translate(3px);
    }
    100% {
        clip: rect(2px, 9999px, 85px, 0);
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: translate(0);
    }
    20% {
        clip: rect(19px, 9999px, 40px, 0);
        transform: translate(5px);
    }
    40% {
        clip: rect(79px, 9999px, 55px, 0);
        transform: translate(-5px);
    }
    60% {
        clip: rect(34px, 9999px, 92px, 0);
        transform: translate(3px);
    }
    80% {
        clip: rect(82px, 9999px, 64px, 0);
        transform: translate(-3px);
    }
    100% {
        clip: rect(5px, 9999px, 15px, 0);
        transform: translate(0);
    }
}
