/* ============================================
   RADQN - Ana Sayfa Özel Stiller
   (shared.css üzerine eklenir)
   ============================================ */

/* ============================================
   Background Effects
   ============================================ */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-tertiary);
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: fade-in-up 0.8s ease forwards;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

.hero-badge span:last-child {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title .line {
    display: block;
}

.hero-title .gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .code-text {
    font-family: var(--font-code);
    color: var(--accent-primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 40px;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Terminal */
.hero-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 480px;
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.85rem;
}

.terminal-line {
    display: flex;
    margin-bottom: 10px;
}

.terminal-prompt {
    color: var(--accent-primary);
    margin-right: 10px;
}

.terminal-command {
    color: var(--text-secondary);
}

.terminal-output {
    color: var(--text-muted);
    padding-left: 20px;
    margin-bottom: 6px;
}

.terminal-output .highlight {
    color: var(--accent-secondary);
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent-primary);
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Tech Icons */
.floating-tech {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-icon {
    width: 55px;
    height: 55px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.tech-icon:nth-child(1) { animation-delay: 0s; }
.tech-icon:nth-child(2) { animation-delay: 0.5s; margin-left: 25px; }
.tech-icon:nth-child(3) { animation-delay: 1s; }
.tech-icon:nth-child(4) { animation-delay: 1.5s; margin-left: 25px; }
.tech-icon:nth-child(5) { animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 1024px) {
    .floating-tech { display: none; }
}

/* ============================================
   Section Common (used in index.html sections)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
    content: '//';
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.2);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tech span {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-family: var(--font-code);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 14px;
}

.service-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .services { padding: 70px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 28px; }
}

/* ============================================
   Code Showcase / About Section
   ============================================ */
.code-showcase {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.code-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.code-text .section-tag {
    justify-content: flex-start;
}

.code-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.code-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.code-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.code-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-feature-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-primary);
}

.code-feature span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Code Editor */
.code-editor {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.editor-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-tabs {
    display: flex;
    margin-left: 20px;
    gap: 4px;
}

.editor-tab {
    padding: 6px 14px;
    background: var(--bg-primary);
    border-radius: 6px 6px 0 0;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-bottom: none;
}

.editor-tab.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.editor-body {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-line {
    display: flex;
}

.line-number {
    width: 35px;
    color: var(--text-muted);
    user-select: none;
}

.code-keyword { color: #c678dd; }
.code-function { color: #61afef; }
.code-string { color: #98c379; }
.code-variable { color: #e06c75; }
.code-property { color: #d19a66; }
.code-bracket { color: #abb2bf; }

@media (max-width: 1024px) {
    .code-content { grid-template-columns: 1fr; }
    .code-editor { max-width: 100%; overflow-x: auto; }
}

@media (max-width: 768px) {
    .code-showcase { padding: 70px 0; }
    .editor-body { font-size: 0.75rem; padding: 15px; }
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: 70px 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-code);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats { padding: 50px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item { padding: 20px 15px; }
    .stat-number { font-size: 2rem; }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.4rem;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.85rem;
}

.contact-card a:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .contact { padding: 70px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
}
