/* Pipeline Punk Dropouts - Global Styles
   Because copy-pasting CSS is for fucking amateurs */

:root {
    --bg: #0A0A0A;
    --bg-secondary: #1C1C1E;
    --green: #00FF41;
    --magenta: #FF006E;
    --orange: #FF6B35;
    --text: #B0B3B8;
    --dark-gray: #2A2A2C;
    --light-gray: #565659;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
}

/* Terminal grid background - because we're fucking hackers */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--dark-gray) 1px, transparent 1px),
        radial-gradient(var(--dark-gray) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: -1;
    opacity: 0.07;
}

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

a:hover {
    color: var(--magenta);
}

/* Navigation - consistent across all pages */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.8);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--green);
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 150px;
    width: auto;
    margin-right: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(0, 255, 65, 0.9)) drop-shadow(0 0 50px rgba(0, 255, 65, 0.5));
    vertical-align: middle;
}

.logo-icon-right {
    height: 150px;
    width: auto;
    margin-left: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(255, 0, 110, 0.9)) drop-shadow(0 0 50px rgba(255, 0, 110, 0.5));
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 2rem;
}

.nav-links a {
    color: var(--text);
    position: relative;
    padding-bottom: 3px;
    font-weight: bold;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--green);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Headers - because first impressions matter */
header {
    padding: 120px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: "<code>";
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: var(--dark-gray);
    font-size: 0.8rem;
    opacity: 0.5;
}

header::before {
    content: "</code>";
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--dark-gray);
    font-size: 0.8rem;
    opacity: 0.5;
}

h1 {
    font-size: 3.5rem;
    color: var(--green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--magenta);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

p {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTAs - because we need people to click shit */
.cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: 2px solid var(--green);
    color: var(--green);
    background: transparent;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--green);
    transition: all 0.3s;
    z-index: -1;
}

.btn:hover {
    color: #000;
}

.btn:hover::before {
    width: 100%;
}

.btn.secondary {
    border-color: var(--magenta);
    color: var(--magenta);
}

.btn.secondary::before {
    background: var(--magenta);
}

/* Features/Cards - for all that sexy content */
section.features {
    padding: 80px 10% 100px;
    position: relative;
}

section.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--magenta), var(--orange));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--magenta);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--green);
    transition: height 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.card h3 {
    color: var(--orange);
    margin-bottom: 15px;
    position: relative;
}

/* Terminal Section - the sexy console stuff */
.terminal-section {
    padding: 80px 5%;
    background-color: var(--bg-secondary);
    position: relative;
}

.terminal-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        45deg,
        var(--orange),
        var(--orange) 10px,
        var(--bg) 10px,
        var(--bg) 20px
    );
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--dark-gray);
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

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

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

.terminal-close {
    background-color: var(--magenta);
}

.terminal-minimize {
    background-color: var(--orange);
}

.terminal-maximize {
    background-color: var(--green);
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.7;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    min-height: 300px;
}

.terminal-line {
    margin-bottom: 10px;
    overflow: hidden;
}

.terminal-prompt {
    color: var(--green);
}

.terminal-command {
    color: var(--text);
}

.terminal-output {
    color: var(--text);
    margin-left: 15px;
}

.terminal-output.success {
    color: var(--green);
}

.terminal-output.error {
    color: var(--magenta);
}

/* Typing animation - because we're not savages */
.typing-animation {
    border-right: 2px solid var(--green);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
}

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

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

/* Footer - the bottom shit no one reads */
footer {
    padding: 60px 5% 40px;
    text-align: center;
    background-color: var(--bg-secondary);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--green);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-column h3 {
    color: var(--orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-gray);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--green);
    color: var(--bg);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-gray);
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Glitch effect - for that extra punk aesthetic */
.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    animation: glitchTop 2s infinite linear;
    color: var(--magenta);
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translate(-2px, -2px);
}

.glitch::after {
    animation: glitchBottom 1.5s infinite linear;
    color: var(--orange);
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitchTop {
    0% { transform: translate(-2px, -2px); }
    50% { transform: translate(-4px, -1px); }
    to { transform: translate(-2px, -2px); }
}

@keyframes glitchBottom {
    0% { transform: translate(2px, 2px); }
    50% { transform: translate(4px, 1px); }
    to { transform: translate(2px, 2px); }
}

/* Course specific styles */
.courses {
    padding: 80px 5%;
    text-align: center;
}

.course-tabs {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.course-tab {
    padding: 12px 25px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text);
    font-weight: bold;
    position: relative;
    margin: 0 5px 10px;
}

.course-tab::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green);
    transition: width 0.3s;
}

.course-tab.active {
    color: var(--green);
}

.course-tab.active::after {
    width: 80%;
}

.course-tab:hover::after {
    width: 60%;
}

.course-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    min-height: 400px;
    position: relative;
}

.course-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--green);
}

.course-title {
    color: var(--green);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.course-description {
    margin-bottom: 30px;
}

.course-features {
    list-style: none;
    margin-bottom: 30px;
}

.course-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.course-features li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--orange);
}

.course-price {
    font-size: 2rem;
    color: var(--magenta);
    margin: 30px 0;
}

/* Testimonial styles */
.testimonials {
    padding: 80px 5%;
    text-align: center;
}

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

.testimonial-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 5px;
    position: relative;
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 0;
    left: 15px;
    font-size: 5rem;
    color: var(--dark-gray);
    line-height: 1;
    opacity: 0.3;
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: var(--green);
    font-weight: bold;
}

.testimonial-role {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive - because mobile users deserve automation too */
@media (max-width: 768px) {
    .logo-icon, .logo-icon-right {
        height: 80px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 20px 0;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* True North Data Strategies Footer - Because shameless plugs should look good */
.tnds-footer {
    background: var(--bg-secondary);
    border-top: 3px solid var(--green);
    padding: 4rem 5% 2rem;
    margin-top: 6rem;
    position: relative;
}

.tnds-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--magenta), var(--orange), var(--green));
    animation: gradientFlow 3s ease-in-out infinite;
}

.tnds-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tnds-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.tnds-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.tnds-link-group h4 {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tnds-link-list {
    list-style: none;
    padding: 0;
}

.tnds-link-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.tnds-link-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 0.8rem;
    top: 2px;
}

.tnds-link-list a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 15px;
    margin-left: -15px;
}

.tnds-link-list a:hover {
    color: var(--green);
    border-left-color: var(--green);
    background: rgba(0, 255, 65, 0.05);
    transform: translateX(5px);
}

.feature-badge {
    display: block;
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-top: 0.3rem;
    font-style: italic;
}

.tnds-motto {
    border-top: 1px solid var(--dark-gray);
    padding-top: 2rem;
    margin-top: 2rem;
}

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

/* Mobile responsive for TNDS footer */
@media (max-width: 768px) {
    .tnds-footer {
        padding: 3rem 5% 2rem;
    }
    
    .tnds-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tnds-link-group {
        text-align: center;
    }
    
    .tnds-motto p {
        font-size: 0.9rem;
    }
}

/* Utility classes - because we're not animals */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Scrollbar styling - because default scrollbars are ugly AF */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}