:root {
    --bg-color: #050505;
    --primary-color: #ff2a6d; /* Neon Pink/Red */
    --secondary-color: #05d9e8; /* Neon Cyan */
    --text-color: #d1d5db;
    --panel-bg: rgba(20, 20, 20, 0.7);
    --border-color: rgba(255, 42, 109, 0.3);
    --font-primary: 'JetBrains Mono', monospace;
    --font-secondary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair; /* Crosshair cursor for targeting feel */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary); /* Default to mono for tech feel */
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
}

/* Scanline Effect */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}



/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Main Theme Background */
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: var(--font-primary);
    transition: opacity 0.5s ease, visibility 0.5s;
}

#boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none; /* Layouttan kaldır */
}

.boot-content {
    text-align: center;
    color: var(--secondary-color);
}

.boot-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem; /* Biraz daha büyük */
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -4px; /* Harfleri birbirine yapıştır, logo gibi dursun */
    text-shadow: 0 0 15px var(--secondary-color);
    animation: ambigram-spin 6s cubic-bezier(0.6, 0, 0.4, 1) infinite; /* Süreyi uzattık */
    display: inline-block;
}

/* Logo Kerning Adjustment */
.center-char {
    display: inline-block;
    margin-left: 3.5px;  /* Sol tarafı aç */
    margin-right: 1px;   /* Sağ tarafı biraz daha sıkı tut */
}

@keyframes ambigram-spin {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(180deg); } /* Hızlı dönüş */
    45% { transform: rotate(180deg); } /* Uzun bekleme (Ters) */
    60% { transform: rotate(360deg); } /* Tamamlama */
    100% { transform: rotate(360deg); } /* Bekleme */
}

.boot-terminal p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0.5rem 0;
    text-align: left;
    width: 300px;
    margin: 0 auto 5px auto;
    font-family: 'JetBrains Mono', monospace;
}

#start-btn {
    margin-top: 3rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    animation: pulse-btn 1.5s infinite;
}

#start-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

@keyframes pulse-btn {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 0;
}

/* HUD Header */
.hud-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none; /* Let clicks pass through except on elements */
}

.logo {
    font-family: 'Orbitron', sans-serif; /* Tech font */
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: lowercase;
    letter-spacing: 2px;
    pointer-events: auto;
    text-shadow: 0 0 10px var(--primary-color);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    pointer-events: auto;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 5px var(--secondary-color); }
    50% { opacity: 0.5; box-shadow: 0 0 2px var(--secondary-color); }
    100% { opacity: 1; box-shadow: 0 0 5px var(--secondary-color); }
}

/* Main Layout */
main {
    padding-top: 0;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 10%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

.sub-h {
    font-size: 0.4em;
    color: var(--secondary-color);
    font-family: var(--font-primary);
    vertical-align: middle;
    margin-left: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}


/* Hero Section */
#hero {
    text-align: center;
    align-items: center;
    border-bottom: none;
}

#hero h1 {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
    text-transform: lowercase;
}

#tagline {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-height: 24px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wide-card {
    grid-column: span 2;
}

.card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    font-size: 0.95rem;
    color: #aaa;
}

.scenario {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 20, 20, 0.6);
    border-left: 3px solid var(--secondary-color);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
}

.scenario strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Contact */
.contact-info {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--secondary-color);
}

.contact-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: #000;
}

.cta-button:hover::after {
    left: 0;
}

footer {
    padding: 2rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links a svg {
    width: 1.2rem;
    height: 1.2rem;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--secondary-color));
}

#system-shutdown {
    background: transparent;
    border: 1px solid rgba(255, 42, 109, 0.3);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

#system-shutdown:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Glitch Animation */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--secondary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(11px, 9999px, 83px, 0); }
    5% { clip: rect(56px, 9999px, 16px, 0); }
    10% { clip: rect(38px, 9999px, 98px, 0); }
    15% { clip: rect(81px, 9999px, 4px, 0); }
    20% { clip: rect(50px, 9999px, 35px, 0); }
    100% { clip: rect(25px, 9999px, 90px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(5px, 9999px, 46px, 0); }
    10% { clip: rect(89px, 9999px, 2px, 0); }
    15% { clip: rect(19px, 9999px, 63px, 0); }
    20% { clip: rect(40px, 9999px, 85px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

/* Typing Cursor */
#tagline::after {
    content: '_';
    animation: blink 1s step-end infinite;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    #hero h1 { font-size: 4rem; }
    h2 { font-size: 2rem; }
    .hud-header { padding: 1rem; }
    .wide-card { grid-column: span 1; }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .footer-center {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

/* Contact Overlay */
#contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#contact-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.contact-panel {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    box-shadow: 0 0 30px rgba(255, 42, 109, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#contact-overlay.active .contact-panel {
    transform: scale(1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.panel-header h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-family: var(--font-primary);
}

#close-contact-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: #fff;
    padding: 0.8rem;
    font-family: var(--font-secondary);
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-color);
}

@media (hover: none) {
    .cursor-follower {
        display: none !important;
    }
}
