/* ============================================================
   MATRIX THEME - GSA SoftEng
   Cyberpunk/Tech Aesthetic with Blue Neon Elements
   ============================================================ */

:root {
    /* Matrix Blue Color Palette */
    --matrix-blue-bright: #60a5fa;
    --matrix-blue-primary: #3b82f6;
    --matrix-blue-dark: #1e3a8a;
    --matrix-blue-neon: #00b4ff;
    --matrix-blue-electric: #0ea5e9;

    /* Negative Gray (User Request) */
    --matrix-text-primary: #f3f4f6;
    /* Negative Gray/White */
    --matrix-text-secondary: #d1d5db;
    /* Softer Gray */

    /* Dark Backgrounds */
    --matrix-bg-black: #000000;
    --matrix-bg-dark: #0a0a0a;
    --matrix-bg-darker: #050505;
    --matrix-bg-overlay: rgba(0, 0, 0, 0.85);

    /* Neon Glows */
    --glow-blue: 0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
    --glow-blue-strong: 0 0 10px rgba(59, 130, 246, 0.8),
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.2);
    --text-glow-blue: 0 0 5px rgba(96, 165, 250, 0.8),
        0 0 10px rgba(96, 165, 250, 0.6);
}

/* Matrix Background Grid Pattern */
.matrix-bg {
    position: relative;
    background-color: var(--matrix-bg-dark);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* Scanline Effect */
.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    animation: scanline-move 8s linear infinite;
}

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

    100% {
        transform: translateY(10px);
    }
}

/* Digital Border Effect */
.digital-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--matrix-bg-dark), var(--matrix-bg-dark)) padding-box,
        linear-gradient(135deg, var(--matrix-blue-primary), var(--matrix-blue-electric)) border-box;
    border-radius: 10px;
}

.digital-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--matrix-blue-primary), var(--matrix-blue-electric));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.digital-border:hover::before {
    opacity: 0.3;
}

/* Neon Glow Text */
.neon-text {
    color: var(--matrix-text-primary);
    text-shadow: var(--text-glow-blue);
    font-weight: 700;
}

.neon-text-strong {
    color: var(--matrix-text-primary);
    text-shadow: var(--glow-blue-strong);
    font-weight: 800;
}

/* Neo-Tech Card Styles */
.tech-card {
    background: rgba(10, 10, 10, 0.4);
    /* More transparent for rain visibility */
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    color: var(--matrix-text-primary);
}

/* Testimonial Specific Overrides */
.testimonial__card {
    background: rgba(5, 5, 10, 0.85);
    /* Higher opacity for readability */
}

.testimonial__text {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.testimonial__author.neon-text {
    color: #60a5fa !important;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.6);
    /* Tighter glow for readability */
    font-size: 1.1rem;
    margin-top: 15px;
    display: block;
}

.testimonial__role {
    color: #9ca3af !important;
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--matrix-blue-primary) 50%,
            transparent 100%);
    opacity: 0.5;
}

.tech-card:hover {
    border-color: var(--matrix-blue-primary);
    box-shadow: var(--glow-blue);
    transform: translateY(-5px);
}

.tech-card h1,
.tech-card h2,
.tech-card h3,
.tech-card h4 {
    color: var(--matrix-text-primary) !important;
    /* Ensure visibility */
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.tech-card p {
    color: var(--matrix-text-secondary);
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    color: var(--matrix-blue-electric);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--matrix-blue-neon);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    33% {
        transform: translate(-2px, 2px);
    }

    66% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    33% {
        transform: translate(2px, -2px);
    }

    66% {
        transform: translate(-2px, 2px);
    }
}

/* Pulse Animation for Accents */
.pulse-blue {
    animation: pulse-blue 2s ease-in-out infinite;
}

@keyframes pulse-blue {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Digital Loading Bar */
.loading-bar {
    width: 100%;
    height: 3px;
    background: rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            var(--matrix-blue-primary),
            transparent);
    animation: loading-sweep 1.5s ease-in-out infinite;
}

@keyframes loading-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Matrix-style Button */
.btn-matrix {
    position: relative;
    background: transparent;
    color: var(--matrix-blue-bright);
    border: 2px solid var(--matrix-blue-primary);
    padding: 12px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.btn-matrix:hover {
    color: white;
    border-color: var(--matrix-blue-bright);
    box-shadow: var(--glow-blue);
    text-shadow: var(--text-glow-blue);
}

.btn-matrix:hover::before {
    left: 100%;
}

/* Cyberpunk Divider */
.cyber-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--matrix-blue-primary) 50%,
            transparent 100%);
    position: relative;
    margin: 40px 0;
}

.cyber-divider::before,
.cyber-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--matrix-blue-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--glow-blue);
}

.cyber-divider::before {
    left: 0;
}

.cyber-divider::after {
    right: 0;
}

/* Matrix Terminal Text */
.terminal-text {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    color: var(--matrix-blue-bright);
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
    letter-spacing: 1px;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(14, 165, 233, 0.1) 25%,
            rgba(96, 165, 250, 0.1) 50%,
            rgba(59, 130, 246, 0.1) 75%,
            rgba(14, 165, 233, 0.1) 100%);
    background-size: 200% 200%;
    animation: holographic-shift 3s ease infinite;
}

@keyframes holographic-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Tech Icon Glow */
.tech-icon {
    color: var(--matrix-blue-primary);
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    transition: all 0.3s ease;
}

.tech-icon:hover {
    color: var(--matrix-blue-bright);
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.8));
    transform: scale(1.1);
}

/* Data Stream Effect */
@keyframes data-stream {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Contact Section Visibility - Force visible colors */
.contact__method {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 2px solid rgba(59, 130, 246, 0.5) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #f3f4f6 !important;
}

.contact__method:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-5px);
}

.contact__method-icon {
    font-size: 2.5rem;
    color: #60a5fa !important;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.8);
}

.contact__method-icon i {
    color: #60a5fa !important;
}

.contact__method-title {
    color: #ffffff !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact__method-description {
    color: #60a5fa !important;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
}

.contact__content {
    margin-top: 40px;
}

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

/* Hero Section Adjustments */
.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    height: 100%;
}

.hero .hero__content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    justify-content: start;
}

.hero .hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .hero__image img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.hero .hero__text {
    text-align: left;
    max-width: 600px;
}

/* Ensure typewriter container doesn't force excessive height but keeps layout stable */
.typewriter-multiline {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero .typewriter-hero {
    line-height: 1.1;
}

.hero .typewriter-section {
    line-height: 1.5;
}