@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #6878d6;
    --primary-hover: #576ad6;
    --dark: #242a56;
    --dark-light: #393a56;
    --light: #ffffff;
    --gray-light: #f4f5f7;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(36, 42, 86, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-light);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 15px rgba(104, 120, 214, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(104, 120, 214, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-outline:hover {
    background-color: var(--light);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 25px;
    height: 25px;
    background-color: #ffdd00; /* Yellow square */
}

.logo-bitek {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-size: 0.9rem;
}

.logo-bitek .bi {
    font-weight: 800;
}

.logo-bitek .tek {
    font-weight: 400;
    font-size: 0.8rem;
}

.logo-yazilim {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--dark);
    margin-left: 5px;
}

header:not(.scrolled) .logo-bitek,
header:not(.scrolled) .logo-yazilim {
    color: var(--light);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Dropdown styling */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light);
    min-width: 200px;
    box-shadow: var(--glass-shadow);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-light) !important;
}

.dropdown li a::after {
    display: none !important;
}

.dropdown li a:hover {
    background: var(--gray-light);
    color: var(--primary) !important;
}

.btn-teklif {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 5px;
}


.nav-links li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-light);
    position: relative;
}

header:not(.scrolled) .nav-links li a {
    color: var(--light);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

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

header:not(.scrolled) .nav-links li a::after {
    background: var(--light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../images/hero.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(36, 42, 86, 0.85) 0%, rgba(104, 120, 214, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--light);
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-btns {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-header {
    background: var(--dark);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--light);
}

.page-header h1 {
    color: var(--light);
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Services */
.services {
    background-color: var(--gray-light);
}

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

.service-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(36, 42, 86, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
    z-index: -1;
    border-radius: 20px 20px 0 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36, 42, 86, 0.1);
}

.service-card:hover::before {
    height: 5px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(104, 120, 214, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--light);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* References */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.reference-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(36, 42, 86, 0.08);
    position: relative;
    group: hover;
}

.reference-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.reference-card:hover .reference-img {
    transform: scale(1.05);
}

.reference-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(36, 42, 86, 0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.reference-card:hover .reference-overlay {
    opacity: 1;
}

.reference-overlay h3 {
    color: var(--light);
    transform: translateY(20px);
    transition: var(--transition);
}

.reference-card:hover .reference-overlay h3 {
    transform: translateY(0);
}

/* Contact */
.contact-section {
    background-color: var(--dark);
    color: var(--light);
}

.contact-section .section-title h2,
.contact-section .section-title p {
    color: var(--light);
}

.contact-section .section-title h2::after {
    background: var(--primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: #1a1e3b;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add mobile menu later if needed */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}
