/* Base Styles */
:root {
    --primary: #00ff9d;
    --primary-dark: #00c97a;
    --secondary: #00b8ff;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #f5f5f5;
    --gray: #333;
    --glow: 0 0 10px rgba(0, 255, 157, 0.7);
    --text-glow: 0 0 5px rgba(0, 255, 157, 0.5);
    --error-color: #ff0000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker);
    color: var(--light);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Circuit Overlay */
.circuit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="rgba(0,255,157,0.03)" stroke-width="1"/><path d="M30,30 L70,30 L70,70 L30,70 Z" fill="none" stroke="rgba(0,255,157,0.03)" stroke-width="1"/><path d="M40,40 L60,40 L60,60 L40,60 Z" fill="none" stroke="rgba(0,255,157,0.03)" stroke-width="1"/><path d="M10,50 L90,50" fill="none" stroke="rgba(0,255,157,0.03)" stroke-width="1"/><path d="M50,10 L50,90" fill="none" stroke="rgba(0,255,157,0.03)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: -1;
}

/* Glitch Effect Overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: -1;
    animation: glitch 10s infinite linear;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-shadow: var(--text-glow);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title span {
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    box-shadow: var(--glow);
}

/* Formbricks Section */
.formbricks-section {
    padding: 100px 0;
    background: rgba(5, 5, 5, 0.7);
    text-align: center;
}

.formbricks-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.pulse {
    animation: pulse 2s infinite;
}

.btn-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
}

.tech {
    color: var(--primary);
}

.smith {
    color: var(--light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Slogan Animation */
.slogan-container {
    display: flex;
    justify-content: left;
    align-items: left;
    font-size: 1.25rem;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
}

.scrolling-words-container {
    height: 1.5em;
    overflow: hidden;
    margin: 0 0.5em;
    display: inline-block;
}

.scrolling-words {
    display: flex;
    flex-direction: column;
    animation: scroll-words 10s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

.scrolling-words .word {
    height: 1.5em;
    display: block;
    text-align: center;
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    font-weight: bold;
}

.scrolling-words .word:nth-child(1) {
    color: #00ffc8;
}
.scrolling-words .word:nth-child(2) {
    color: #ff0077;
}
.scrolling-words .word:nth-child(3) {
    color: #00aaff;
}
.scrolling-words .word:nth-child(4) {
    color: #ffaa00;
}
.scrolling-words .word:nth-child(5) {
    color: #e0e0e0;
}
.scrolling-words .word:nth-child(6) {
    color: #00ffc8;
}

/* Service Cards */
.services {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 255, 157, 0) 50%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card h3 {
    position: relative;
    z-index: 2;
}

.service-card .subtext {
    font-size: 0.6rem;
    position: relative;
    z-index: 2;
    color: var(--primary);
}

.service-card p {
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.service-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 20px;
    text-shadow: var(--text-glow);
    position: relative;
    z-index: 2;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    height: 400px;
    background: var(--gray);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.logo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/TechSmithLogoTP.png) center / contain no-repeat;
}

/* Social Icons specific styling */
.social-links {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    align-items: center;
    gap: 20px;
    margin-top: 20px; /* Space between contact info and social icons */
}

.social-links a {
    color: var(--primary);
    font-size: 2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #5dff00; /* Change color on hover for a cool effect */
}

/* Terminal-Style Skills */
.skills {
    margin-top: 2rem;
    width: 100%;
}

.terminal-container {
    background-color: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #444;
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-header .dot.red {
    background-color: #ff5f56;
}
.terminal-header .dot.yellow {
    background-color: #ffbd2e;
}
.terminal-header .dot.green {
    background-color: #27c93f;
}

.terminal-header .terminal-title {
    color: #999;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 1rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* Typing Cursor */
#diagnostic-output::after {
    content: '_';
    opacity: 1;
    animation: blink-cursor 1s infinite;
    display: inline-block;
    width: 0.5em;
    vertical-align: top;
}

/* Diagnostic Output */
.diagnostic-line {
    color: var(--primary-light);
}

.diagnostic-status {
    color: var(--primary);
    font-weight: bold;
}

/* Circuit Animation Lines */
.circuit-line {
    position: absolute;
    background-color: var(--primary);
    box-shadow: var(--glow);
    opacity: 0.1;
    z-index: -1;
    animation: circuit-line-flow 5s linear infinite;
}

.circuit-line.horizontal {
    height: 1px;
}

.circuit-line.vertical {
    width: 1px;
}

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

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

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-effect 3s infinite linear alternate-reverse;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-effect 2s infinite linear alternate;
}

.error-code {
    color: var(--error-color);
    font-weight: 700;
    font-size: 0.8em;
    position: relative;
    top: -0.5em;
    left: 0.1em;
    display: inline-block;
    animation: glitch-404 0.5s infinite steps(1);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-info {
    background: rgba(20, 20, 20, 0.7);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 15px;
    width: 30px;
}

/* Footer */
footer {
    background: var(--dark);
    padding: 30px 0;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.9rem;
    color: #aaa;
}

/* Custom Scrollbar Styles */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: #34d399;
    border-radius: 10px;
    border: 3px solid #0f172a;
}

body::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--glow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--glow);
    }
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    25% {
        transform: translate(-2px, 2px);
    }
    50% {
        transform: translate(2px, -2px);
    }
    75% {
        transform: translate(-2px, -2px);
    }
    100% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitch-404 {
    0% {
        transform: skew(0deg);
        opacity: 1;
    }
    20% {
        transform: skew(-5deg);
        opacity: 0.8;
    }
    40% {
        transform: skew(5deg);
        opacity: 1;
    }
    60% {
        transform: skew(-3deg);
        opacity: 0.7;
    }
    80% {
        transform: skew(3deg);
        opacity: 1;
    }
    100% {
        transform: skew(0deg);
        opacity: 0.8;
    }
}

@keyframes scroll-words {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-1.5em);
    }
    40% {
        transform: translateY(-3em);
    }
    60% {
        transform: translateY(-4.5em);
    }
    80% {
        transform: translateY(-6em);
    }
    100% {
        transform: translateY(-7.5em);
    }
}

@keyframes circuit-line-flow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    20% {
        transform: scale(1);
        opacity: 0.2;
    }
    80% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .about .container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .slogan-container {
        font-size: 1rem;
        justify-content: center;
        align-items: center;
    }

    .terminal-container {
        width: 95%;
        max-width: none;
        margin: 1rem auto;
        border-radius: 6px;
    }

    .terminal-header {
        padding: 0.3rem 0.6rem;
    }

    .terminal-header .dot {
        width: 8px;
        height: 8px;
        margin-right: 6px;
    }

    .terminal-header .terminal-title {
        font-size: 0.65rem;
    }

    .terminal-body {
        padding: 0.75rem;
        font-size: 0.7rem;
    }
}