:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #0a192f;
    --dark: #020c1b;
    --card-bg: rgba(17, 34, 64, 0.7);
    --text: #e6f1ff;
    --text-muted: #8892b0;
    --accent: #64ffda;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo span {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== PAGE SYSTEM ===== */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.45s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.25;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2,12,27,0.95) 0%, rgba(10,25,47,0.85) 50%, rgba(0,212,255,0.15) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    display: none;
}

@media (min-width: 1100px) {
    .hero-visual {
        display: block;
    }
}

.hero-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

/* ===== SECTION COMMON ===== */
section {
    padding: 100px 5%;
    position: relative;
}

.page-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: block;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== REFERENCES ===== */
.bg-secondary {
    background: var(--secondary);
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.ref-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ref-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.ref-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ref-card:hover::before {
    transform: scaleX(1);
}

.ref-card.active-card {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
}

.ref-card.active-card::before {
    transform: scaleX(1);
}

.ref-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.ref-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ref-card p {
    color: var(--text-muted);
}

.card-hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

/* ===== DİNAMİK TABLOLAR ===== */
#ref-tables-wrapper {
    margin-top: 3rem;
}

.ref-table-section {
    display: none;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.ref-table-section.active {
    display: block;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.close-table-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}

.close-table-btn:hover {
    background: var(--primary);
    color: #000;
}

.table-responsive {
    overflow-x: auto;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ref-table thead {
    background: rgba(0, 212, 255, 0.1);
}

.ref-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    white-space: nowrap;
}

.ref-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
    color: var(--text);
}

.ref-table tbody tr {
    transition: background 0.2s;
}

.ref-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.ref-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.15);
}

.ref-table tbody tr:nth-child(even):hover {
    background: rgba(0, 212, 255, 0.08);
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,12,27,0.7), transparent);
    border-radius: 20px;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.mission-box {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    padding: 1.8rem;
    border-radius: 0 12px 12px 0;
    margin-top: 2rem;
}

.mission-box h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-body {
    padding: 1.8rem;
}

.service-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-body h3 i {
    color: var(--primary);
}

.service-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-item .icon-box {
    width: 55px;
    height: 55px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-4px);
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(2, 12, 27, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ===== FOOTER ===== */
footer {
    background: #010810;
    padding: 3rem 5% 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-logo span {
    color: var(--text);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(2, 12, 27, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    section {
        padding: 70px 5%;
    }
    .page-section {
        padding-top: 120px;
    }
    .hero-btns {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .ref-table th,
    .ref-table td {
        padding: 0.75rem 0.8rem;
        font-size: 0.85rem;
    }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}