/* =============================================
   MFevziDemir Solutions – Premium Design System
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --accent-primary: #30A6CD;
    --accent-navy: #0E3E4C;
    --accent-gradient: linear-gradient(135deg, #30A6CD 0%, #0E3E4C 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(48, 166, 205, 0.12) 0%, rgba(14, 62, 76, 0.08) 100%);
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #7a7a8a;
    --text-white: #ffffff;
    --bg-body: #f8fafc;
    --bg-section-alt: rgba(24, 25, 31, 0.025);
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-border: rgba(255, 255, 255, 0.35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 32px rgba(48, 166, 205, 0.18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-primary: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    text-decoration: none;
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

::selection {
    background: rgba(48, 166, 205, 0.2);
    color: var(--accent-navy);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-navy);
    text-decoration: none !important;
}

.btn-link:hover {
    text-decoration: none !important;
}

/* ---------- Loading Screen ---------- */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--accent-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Navbar ---------- */
.navbar-mf {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    transition: var(--transition-smooth);
    z-index: 1050;
}

.navbar-mf.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
}

.navbar-mf .navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

.navbar-mf.scrolled .navbar-brand img {
    height: 42px;
}

.navbar-mf .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm);
    position: relative;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}



.navbar-mf .nav-link:hover {
    color: var(--accent-primary) !important;
}

/* ---------- Buttons ---------- */
.btn-primary-mf {
    background: var(--accent-gradient);
    color: var(--text-white) !important;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(48, 166, 205, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-mf::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary-mf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 166, 205, 0.4);
    color: var(--text-white) !important;
}

.btn-primary-mf:hover::before {
    opacity: 1;
}

.btn-primary-mf:active {
    transform: translateY(0);
}

.btn-outline-mf {
    background: transparent;
    color: var(--accent-primary) !important;
    border: 2px solid var(--accent-primary);
    padding: 10px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-outline-mf:hover {
    background: var(--accent-primary);
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ---------- Hero Section ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    background: linear-gradient(160deg, #f0f9ff 0%, #e8f4f8 40%, #f8fafc 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(48, 166, 205, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 62, 76, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(48, 166, 205, 0.15);
}

/* ---------- Section Titles ---------- */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    position: relative;
}

.section-title.text-center h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
    margin: 16px auto 0;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Services Section ---------- */
.services-section {
    padding: 100px 0;
    position: relative;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--accent-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--accent-primary);
    transition: var(--transition-bounce);
}

.glass-card:hover .service-icon {
    background: var(--accent-gradient);
    color: var(--text-white);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: var(--shadow-glow);
}

.services-section h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

/* ---------- About Section ---------- */
#about {
    background: var(--bg-body);
}

/* ---------- Stats Grid ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ---------- Skills Grid ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-card i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(48, 166, 205, 0.2);
}

/* ---------- Pricing Section ---------- */
.pricing-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.pricing-card h4 {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-navy);
    margin-bottom: 28px;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card.popular {
    border: 2px solid var(--accent-primary);
    transform: scale(1.04);
    z-index: 2;
}

.pricing-card.popular::after {
    content: 'Popüler';
    position: absolute;
    top: -1px;
    right: 24px;
    background: var(--accent-gradient);
    color: var(--text-white);
    padding: 6px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card.popular:hover {
    transform: scale(1.04) translateY(-6px);
}

/* ---------- Portfolio Section ---------- */
#portfolio {
    padding: 100px 0;
}

#portfolio .glass-card {
    cursor: pointer;
    overflow: hidden;
}

#portfolio .glass-card img {
    transition: var(--transition-smooth);
}

#portfolio .glass-card:hover img {
    transform: scale(1.06);
    opacity: 1 !important;
}

#portfolio .glass-card .p-4 {
    transition: var(--transition-smooth);
}

#portfolio .glass-card:hover .p-4 {
    background: linear-gradient(transparent, rgba(255, 255, 255, 1)) !important;
}

/* ---------- Contact Section ---------- */
#contact {
    padding: 100px 0;
}

#contact h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

#contact h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-card {
    background: var(--bg-section-alt);
}

.form-control-mf {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    outline: none;
    font-family: var(--font-primary);
    margin-bottom: 16px;
    width: 100%;
    display: block;
}

.form-control-mf:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(48, 166, 205, 0.1);
    background: #fff;
}

.form-control-mf::placeholder {
    color: var(--text-muted);
}

textarea.form-control-mf {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Dashboard Section ---------- */
.dashboard-section {
    background: linear-gradient(180deg, rgba(48, 166, 205, 0.05) 0%, transparent 100%);
    padding: 120px 0;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.progress-bar-animated {
    animation: progress-bar-stripes 2s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

/* ---------- Footer ---------- */
footer {
    background: var(--accent-navy);
    border-top: none !important;
    margin-top: auto;
}

footer p {
    color: rgba(255, 255, 255, 0.5) !important;
}

.social-links a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    margin: 0 6px;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--text-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(48, 166, 205, 0.3);
}

/* ---------- Scroll to Top ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(48, 166, 205, 0.3);
    font-size: 0.9rem;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(48, 166, 205, 0.45);
    color: #fff;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.5);
    }
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    animation: none;
}

/* ---------- Modal Styles ---------- */
.modal-content.glass-card {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg);
}

/* ---------- Animations ---------- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Particle Background (Hero) ---------- */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(48, 166, 205, 0.15);
    border-radius: 50%;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ---------- Text Gradient Utility ---------- */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Badge Styles ---------- */
.badge-dark {
    background: rgba(14, 62, 76, 0.9) !important;
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .navbar-mf .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 16px;
        box-shadow: var(--shadow-lg);
    }

    .navbar-mf .nav-link::after {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .glass-card {
        padding: 24px !important;
    }

    #contact h2 {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 76px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 575.98px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .skill-card {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .pricing-card .price {
        font-size: 2.4rem;
    }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: rgba(48, 166, 205, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ---------- Focus Styles (a11y) ---------- */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {

    .navbar-mf,
    .scroll-to-top,
    .whatsapp-float,
    .modal {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .glass-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}