/* --- Variables & Reset --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --primary: #4f46e5; /* Indigo */
    --accent: #8b5cf6; /* Violet */
    --highlight: #22d3ee; /* Cyan/Neon */
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.section-label { color: var(--highlight); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.gradient-text {
    background: linear-gradient(to right, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* --- Layout Utils --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 100px 0; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

/* --- WhatsApp Floating Button --- */

/* Ana Buton Yuvası */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* Sol alt köşe */
    background-color: #25d366; /* Orijinal WhatsApp Yeşili */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999; /* Her şeyin üstünde durması için */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* İkonun dikeyde hafifçe süzülme animasyonu */
    animation: floatIcon 3s ease-in-out infinite;
}

/* İkonun kendisi */
.my-float-icon {
    margin-top: 2px; /* Optik hizalama */
}

/* Hover Efekti */
.whatsapp-float:hover {
    background-color: #20b857; /* Biraz daha koyu yeşil */
    transform: scale(1.1); /* Hoverda hafif büyüme */
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* Dalga (Pulse) Animasyon Halkası */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit; /* Ana butonun rengini alır */
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1; /* Butonun arkasına at */
    animation: pulse-border 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* --- Animasyon Keyframe'leri --- */

/* Dışarı yayılan dalga efekti */
@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2); /* 2.2 katına kadar büyür */
        opacity: 0; /* Büyürken kaybolur */
    }
}

/* Butonun kendi kendine hafifçe yukarı aşağı süzülmesi */
@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Mobil Uyumluluk Ayarı */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 30px;
    }
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6); }

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    margin-left: 15px;
}
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; text-align: center; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; }
.logo .highlight { color: var(--highlight); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.nav-link:hover { color: white; }
.nav-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}
.nav-btn:hover { background: white; color: black; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background: white; margin: 5px auto; transition: 0.3s; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.7);
    background: linear-gradient(to bottom, rgba(10,10,10,0.3), var(--bg-dark));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; }

/* Abstract Blob Animation */
.shape-blob {
    background: var(--accent);
    height: 400px; width: 400px;
    border-radius: 40% 50% 30% 40%;
    position: absolute;
    left: -100px; top: -100px;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 10s infinite alternate;
    z-index: 0;
}
@keyframes move { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(100px, 100px) rotate(20deg); } }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { position: relative; border-radius: 10px; overflow: hidden; }
.experience-badge {
    position: absolute;
    bottom: 20px; right: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.experience-badge .number { display: block; font-size: 2rem; font-weight: 800; color: var(--highlight); }
.experience-badge .text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.2; }
.about-list { margin-top: 20px; }
.about-list li { margin-bottom: 10px; color: var(--text-muted); }
.about-list i { color: var(--highlight); margin-right: 10px; }

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}
.icon-box {
    font-size: 2rem;
    color: var(--highlight);
    margin-bottom: 20px;
    background: rgba(34, 211, 238, 0.1);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.service-card h3 { margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; }
.service-link { font-size: 0.85rem; font-weight: 600; color: white; display: flex; align-items: center; gap: 5px; }
.service-link i { font-size: 0.7rem; transition: 0.3s; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.3s;
}
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); opacity: 1; }
.portfolio-overlay h4 { color: white; margin-bottom: 5px; }
.portfolio-overlay p { color: var(--highlight); font-size: 0.85rem; }

/* --- Testimonials --- */
.testimonial-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.client-info { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.client-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.client-info h5 { font-size: 1rem; margin-bottom: 2px; }
.client-info span { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-card p { font-style: italic; color: #ccc; }

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; margin-top: 20px; }
.info-item i { color: var(--highlight); width: 20px; }
.map-container { margin-top: 30px; border-radius: 10px; overflow: hidden; opacity: 0.8; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

/* --- Responsiveness --- */
@media (max-width: 968px) {
    .hero h1 { font-size: 3rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .about-img { order: -1; margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-menu.active { right: 0; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-secondary { margin-left: 0; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}