/* 
   Erpin® Özel Web Yazılım Sayfası Stilleri 
   Theme: Dark Code / Matrix Inspired
   Colors: Dark Navy, Emerald Green, Sky Blue, Amber
*/

:root {
    --sw-bg-dark: #0f172a;
    --sw-bg-darker: #020617;
    --sw-primary: #10b981;
    /* Emerald Green */
    --sw-primary-hover: #059669;
    --sw-secondary: #0ea5e9;
    /* Sky Blue */
    --sw-accent: #f59e0b;
    /* Amber */
    --sw-text-main: #e2e8f0;
    --sw-text-muted: #94a3b8;
    --sw-card-bg: rgba(30, 41, 59, 0.7);
    --sw-card-border: 1px solid rgba(255, 255, 255, 0.05);
    --sw-gradient-hero: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --sw-gradient-text: linear-gradient(to right, #10b981, #0ea5e9);
}

/* Base Overrides */
body.custom-soft-page {
    background-color: var(--sw-bg-dark);
    color: var(--sw-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

main {
    background-color: var(--sw-bg-dark);
    margin-top: 0 !important;
    /* Override potential sticky header gaps */
}

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

/* Section Common */
.sw-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.sw-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.sw-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.sw-heading p {
    color: var(--sw-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===========================
   HERO SECTION
   =========================== */
.sw-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--sw-gradient-hero);
    position: relative;
    padding-top: 120px;
}

/* Binary Background Effect */
.sw-hero::before {
    content: '0101010100110101';
    position: absolute;
    top: 10%;
    left: 5%;
    font-family: monospace;
    font-size: 10rem;
    color: rgba(16, 185, 129, 0.03);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.sw-hero::after {
    content: '{ code: true }';
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-family: monospace;
    font-size: 8rem;
    color: rgba(14, 165, 233, 0.03);
    pointer-events: none;
    z-index: 0;
}

.sw-hero-content {
    position: relative;
    z-index: 2;
}

.sw-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    color: var(--sw-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.sw-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: white;
}

.sw-gradient-text {
    background: var(--sw-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Standard property for text fill */
    background-clip: text;
    /* Standard property */
    display: inline-block;
}

.sw-hero-code-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #c9d1d9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.sw-hero-code-block:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.code-line {
    display: block;
    margin-bottom: 5px;
}

.cl-keyword {
    color: #ff7b72;
}

/* Red/Pink */
.cl-func {
    color: #d2a8ff;
}

/* Purple */
.cl-string {
    color: #a5d6ff;
}

/* Blue */
.cl-class {
    color: #79c0ff;
}

/* Light Blue */

/* Buttons */
.sw-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.sw-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sw-btn-primary {
    background: var(--sw-primary);
    color: #020617;
    /* Dark text on green for contrast */
}

.sw-btn-primary:hover {
    background: var(--sw-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    color: white;
}

.sw-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.sw-btn-outline:hover {
    border-color: var(--sw-primary);
    color: var(--sw-primary);
    background: rgba(16, 185, 129, 0.05);
}

/* ===========================
   TECH STACK
   =========================== */
.sw-tech-stack {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sw-tech-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.sw-tech-item {
    font-size: 40px;
    color: var(--sw-text-muted);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sw-tech-item span {
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.sw-tech-item:hover {
    color: var(--sw-primary);
    transform: translateY(-5px);
}

.sw-tech-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   SERVICES GRID
   =========================== */
.sw-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.sw-service-card {
    background: var(--sw-card-bg);
    border: var(--sw-card-border);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sw-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--sw-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

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

.sw-service-card:hover::before {
    transform: scaleY(1);
}

.sw-service-icon {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--sw-primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.sw-service-card:hover .sw-service-icon {
    background: var(--sw-primary);
    color: white;
}

.sw-service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.sw-service-card p {
    color: var(--sw-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===========================
   PROCESS (SDLC)
   =========================== */
.sw-process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.sw-step {
    text-align: center;
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sw-step:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--sw-secondary);
}

.sw-step-icon {
    font-size: 2rem;
    color: var(--sw-secondary);
    margin-bottom: 15px;
}

.sw-step h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sw-step p {
    color: var(--sw-text-muted);
    font-size: 0.85rem;
}

/* ===========================
   FAQ
   =========================== */
.sw-faq {
    background: rgba(2, 6, 23, 0.5);
}

.sw-accordion-item {
    background: var(--sw-card-bg);
    border: var(--sw-card-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.sw-accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sw-accordion-header:hover {
    color: var(--sw-primary);
}

.sw-accordion-header i {
    transition: transform 0.3s ease;
}

.sw-accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sw-accordion-header[aria-expanded="true"] {
    color: var(--sw-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sw-accordion-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    color: var(--sw-text-muted);
}

.sw-accordion-header[aria-expanded="true"]+.sw-accordion-body {
    max-height: 500px;
    /* Safe limit for content */
    padding: 20px 25px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .sw-hero h1 {
        font-size: 3rem;
    }

    .sw-hero-code-block {
        display: none;
    }

    .sw-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sw-hero {
        text-align: center;
        padding-top: 140px;
    }

    .sw-btn-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sw-process-grid {
        grid-template-columns: 1fr;
    }

    .sw-hero::before,
    .sw-hero::after {
        display: none;
    }

    .sw-badge {
        margin: 0 auto 20px;
    }
}