/* Custom Reset and Premium Variables */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #10b981;
    --primary-hover: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.w-100 { width: 100%; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Premium Typography */
h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.025em; }
.highlight { color: var(--primary); }
.section-title { font-size: 2.75rem; text-align: center; margin-bottom: 1rem; }
.section-desc { text-align: center; color: var(--text-muted); font-size: 1.125rem; max-width: 768px; margin: 0 auto 4rem; }

/* Header & Nav */
.main-header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px); z-index: 1000; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.desktop-nav ul { display: flex; list-style: none; gap: 14px; align-items: center; white-space: nowrap; }
.desktop-nav a { font-weight: 500; font-size: 0.88rem; color: #cbd5e1; transition: color 0.3s; }
.desktop-nav a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all 0.3s ease; display: inline-block; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }

/* Hero Section */
.hero-section { padding: calc(var(--header-height) + 120px) 0 140px; min-height: 90vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 100%); }
.hero-section .container { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-title { font-size: 4.5rem; margin-bottom: 24px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.25rem; color: #e2e8f0; margin-bottom: 48px; line-height: 1.8; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* Image Integration */
.content-image { width: 100%; height: 350px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--glass-border); }

/* Sections */
.content-section { padding: 100px 0; }
.bg-darker { background-color: var(--bg-darker); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }

/* Glassmorphism Cards */
.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 40px; transition: transform 0.3s ease, border-color 0.3s ease; box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2); }
.glass:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }

/* Grids */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.automation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.automation-content { display: grid; gap: 24px; }
.detail-item { padding: 24px; border-left: 4px solid var(--primary); background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%); border-radius: 0 12px 12px 0; }
.detail-item h4 { color: var(--primary); font-size: 1.25rem; }

/* Refined Footer */
.main-footer { background: #020617; padding: 80px 0 30px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 2fr; gap: 40px; margin-bottom: 60px; }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { display: flex; align-items: flex-start; margin-bottom: 16px; color: #94a3b8; }
.footer-contact-list svg { flex-shrink: 0; margin-right: 12px; margin-top: 4px; color: var(--primary); }
.pseo-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; }
.pseo-directory a { color: #94a3b8; font-size: 0.95rem; transition: color 0.3s; }
.pseo-directory a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* Fixed Buttons */
.whatsapp-float-btn { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 64px; height: 64px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 999; transition: transform 0.3s; }
.whatsapp-float-btn:hover { transform: scale(1.1); }
.whatsapp-float-btn::before { content: ''; position: absolute; width: 100%; height: 100%; background: inherit; border-radius: inherit; z-index: -1; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.scroll-top-btn { position: fixed; bottom: 30px; left: 30px; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); color: var(--primary); width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--glass-border); display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--primary); color: #fff; }

/* Off Canvas Menu */
.off-canvas-menu { position: fixed; top: 0; right: -100%; width: 85%; max-width: 360px; height: 100vh; background: var(--bg-darker); border-left: 1px solid var(--glass-border); z-index: 1002; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.off-canvas-menu.open { right: 0; }
.off-canvas-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 1001; opacity: 0; visibility: hidden; transition: 0.4s; }
.off-canvas-overlay.open { opacity: 1; visibility: visible; }
.off-canvas-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--glass-border); }
.close-menu-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 8px; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; color: #fff; cursor: pointer; transition: 0.3s; }
.close-menu-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-nav ul { list-style: none; padding: 24px; }
.mobile-nav li { margin-bottom: 8px; }
.mobile-nav a { display: block; padding: 12px 16px; border-radius: 8px; color: #e2e8f0; font-size: 1.1rem; transition: 0.3s; }
.mobile-nav a:hover { background: rgba(255,255,255,0.05); color: var(--primary); }

/* Responsive */
@media (max-width: 992px) {
    .automation-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; padding: 8px; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .content-section { padding: 60px 0; }
    .hero-section { padding-top: 140px; text-align: center; }
}

/* ==========================================================================
   REDESIGN (Header, Footer, Homepage)
   ========================================================================== */

/* Header Refinements */
.main-header {
    background: rgba(2, 6, 23, 0.7); /* Darker, more elegant glass */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.main-header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(2, 6, 23, 0.9);
}
.desktop-nav a {
    position: relative;
    padding-bottom: 4px;
    color: #e2e8f0;
    font-weight: 500;
}
.desktop-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.desktop-nav a:not(.btn-primary):hover::after {
    width: 100%;
}
.desktop-nav a:hover {
    color: #fff;
}

/* Header Button Gradient Glow */
.desktop-nav .btn-primary {
    background: linear-gradient(135deg, var(--primary), #047857);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.desktop-nav .btn-primary:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

/* Fat Footer - CTA Banner */
.footer-cta {
    background: linear-gradient(135deg, #0f172a, #020617);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-cta h2 {
    font-size: 2.2rem;
    color: #f8fafc;
    margin-bottom: 15px;
}
.footer-cta p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 25px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Homepage Enhancements */
/* Stats Banner */
.stats-section {
    padding: 60px 0;
    background: #020617;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}
.stat-item p {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { margin-bottom: 20px; }
}
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Projects Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    border: 1px solid rgba(255,255,255,0.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.25rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.gallery-overlay p {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}
.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Service Box Enhancements */
.service-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
.service-box .icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s;
}
.glass:hover .icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   MEGA SEO & MARKETING HOMEPAGE CSS
   ========================================================================== */

/* Marquee (Sonsuz Kayan Bant) */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #020617;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.marquee-content.paused:hover {
    animation-play-state: paused;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 30px;
    margin: 0 15px;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.marquee-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Funnel & CTA Cards */
.funnel-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(2, 6, 23, 0.8));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.funnel-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Video & Certificate Block */
.video-block {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    z-index: 2;
}
.play-btn {
    position: relative;
    z-index: 3;
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-play 2s infinite;
    transition: transform 0.3s;
}
.play-btn:hover { transform: scale(1.1); }
@keyframes pulse-play {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cert-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cert-icon { color: #f59e0b; } /* Gold color for certs */

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    padding: 30px;
    position: relative;
}
.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    color: var(--primary);
}
.testimonial-text {
    font-size: 1.05rem;
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
}
.author-info h4 { margin: 0; font-size: 1rem; color: #f8fafc; }
.author-info p { margin: 0; font-size: 0.85rem; color: #94a3b8; }

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-content {
    padding: 24px;
}
.blog-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.blog-title {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.blog-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* FAQ Accordion */
.accordion-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.accordion-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.accordion-header:hover, .accordion-header.active {
    color: var(--primary);
}
.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(2, 6, 23, 0.3);
}
.accordion-content p {
    padding: 0 24px 24px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}
