/*
Theme Name: DawidLos Modern
Theme URI: https://dawidlos.pl
Author: Dawid Łoś
Author URI: https://dawidlos.pl
Description: A premium, modern dark-mode theme with glassmorphism, animations, and particle effects. Custom built for dawidlos.pl.
Version: 1.0.8
Text Domain: dawidlos
*/

/* ==========================================================================
   Import Main Styles (Pasted below for simplicity in one file)
   ========================================================================== */

:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --accent-color: #58a6ff;
    --secondary-color: #1f6feb;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(240, 246, 252, 0.1);
    --card-bg: #161b22;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(31, 111, 235, 0.08) 0%, transparent 25%);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #a5d6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.8rem;
    }
}

h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: #8b949e;
    font-size: 1.05rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-gradient {
    background: linear-gradient(120deg, var(--accent-color), #bc8cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(90deg, var(--secondary-color), #238636);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(31, 111, 235, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(31, 111, 235, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 50px;
    padding: 16px 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-color);
    transform: translateY(-3px);
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    color: #e6edf3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* WP Nav Menu specific fixes */
.menu-item-type-custom.btn-glow a {
    /* Targetting specific classes if added in WP menu */
}

/* Button style class for WP menu items if class 'btn-outline' is added */
.nav-links li.btn-outline a {
    margin-left: 10px;
    padding: 10px 24px;
    border: 1px solid rgba(88, 166, 255, 0.4);
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.1);
}

.nav-links li.btn-outline a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.4);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 120px;
    text-align: center;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.25) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: pulse 6s infinite ease-in-out;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    font-weight: 700;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.8), rgba(22, 27, 34, 0.4));
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(88, 166, 255, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    color: white;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    background: #0d1117;
    border: 1px solid #30363d;
    overflow: hidden;
    border-radius: 20px;
}

.project-img {
    height: 240px;
    background: linear-gradient(45deg, #1f2428, #24292e);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

/* Blog */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.3s;
    justify-content: space-between;
}

.blog-post:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.blog-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #8b949e;
    letter-spacing: 1px;
}

/* Section Titles */
.section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Contact Form Redesign - FLEXBOX FIX */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
    display: block;
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid rgba(88, 166, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(88, 166, 255, 0.05), transparent 70%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Rows and Columns within the form */
.forminator-row {
    margin-bottom: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.forminator-col {
    flex: 1;
    min-width: 280px;
    /* Ensure stacking on mobile */
}

.forminator-col-12 {
    flex: 0 0 100%;
}

.forminator-col-6 {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form button,
.wpcf7-submit {
    margin-top: 10px;
    height: 56px;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #1f6feb, #4c2889);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover,
.wpcf7-submit:hover {
    background: linear-gradient(90deg, #3b8cf8, #6e3cc4);
    box-shadow: 0 10px 30px rgba(31, 111, 235, 0.4);
    transform: translateY(-2px);
}

.form-label,
.wpcf7-form-control-wrap {
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea,
.form-select,
.wpcf7-form-control,
.forminator-input,
.forminator-textarea {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    padding: 18px 20px;
    font-size: 1rem;
    border-radius: 14px;
    color: white;
    width: 100%;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.wpcf7-form-control:focus,
.forminator-input:focus,
.forminator-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.15);
    background: #0d1117;
    transform: translateY(-2px);
    outline: none;
}

/* Single Post & Page Styling */
.section-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-meta {
    color: #8b949e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-thumbnail {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #c9d1d9;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.entry-content a:hover {
    border-bottom-color: var(--accent-color);
}

/* Footer */
footer {
    border-top: 1px solid #30363d;
    padding: 4rem 0;
    margin-top: 6rem;
    background: #090c10;
    text-align: center;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) scale(1.15);
        opacity: 0.3;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0d1117;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .blog-list,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form Mobile adjustments */
    .contact-form {
        padding: 1.5rem;
        /* Reduced padding */
        border-radius: 16px;
    }

    .section h2 {
        font-size: 2rem;
        /* Smaller section titles */
        margin-bottom: 2rem;
    }

    .forminator-col,
    .forminator-col-6,
    .contact-form button {
        flex: 0 0 100%;
        /* Force full width */
        min-width: 0;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 14px;
        /* Slightly smaller inputs */
        font-size: 0.95rem;
    }
}