/* ==========================================================================
   Replamedya - Premium Dark Theme Stylesheet
   ========================================================================== */

/* CSS Variables - Premium Dark Palette */
:root {
    --bg: #0E0F14;
    --card: #12131A;
    --primary: #EF4241;
    --secondary: #8C69F9;
    --text: #EAEAF0;
    --muted: #A5A6AD;
    --divider: #242634;
    
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* prevent accidental horizontal scrolls on mobile */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF6B6B);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 66, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 66, 65, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(140, 105, 249, 0.15);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Header / Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 19, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0; /* taller navbar for bigger logo */
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Image logo in navbar */
.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80vw;
        max-width: 420px;
        background: rgba(18, 19, 26, 0.95);
        backdrop-filter: blur(12px);
        padding: 6rem 2rem 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        z-index: 1050;
    }
    
    .nav-menu.drawer-open {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    /* Guardrails to prevent horizontal scroll and long words pushing layout */
    body, .container {
        overflow-x: hidden;
    }
    .intro-content, .intro-text p, .section-subtitle, .project-list-excerpt {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* Hamburger to X */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section - New Layout */
.hero-section-new {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, rgba(239, 66, 65, 0.03), rgba(140, 105, 249, 0.03));
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero-section-new {
        padding: 8rem 0 4rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-img {
        max-width: 100%;
    }
}

/* Old Hero Section - Keep for compatibility */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text), var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
}

/* Intro Section (Homepage) */
.intro-section {
    background: var(--card);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text p {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(239, 66, 65, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
    }
}

/* Services Preview (Homepage) */
.services-preview {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 19, 26, 0.5) 100%);
}

.services-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-preview-card {
    background: var(--card);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--divider);
    transition: var(--transition);
}

.service-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-preview-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.service-preview-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-preview-card p {
    color: var(--muted);
    margin: 0;
}

/* Recent Projects (Homepage) */
.recent-projects {
    background: var(--card);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(239, 66, 65, 0.1), rgba(140, 105, 249, 0.1));
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.text-center {
    text-align: center;
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(239, 66, 65, 0.05), rgba(140, 105, 249, 0.05));
    border-bottom: 1px solid var(--divider);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text p {
    color: var(--muted);
    font-size: 1.125rem;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Team Section - Futuristic Design */
.team-section {
    margin-top: 4rem;
}

.team-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-intro {
    text-align: center;
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--divider);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(239, 66, 65, 0.1), rgba(140, 105, 249, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
}

.team-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-avatar::after {
    opacity: 0.5;
    inset: -8px;
}

.team-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.team-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.team-count {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(239, 66, 65, 0.1);
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.services-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.services-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.services-menu {
    list-style: none;
}

.service-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.service-menu-item:hover,
.service-menu-item.active {
    background: rgba(239, 66, 65, 0.1);
    color: var(--primary);
}

.service-menu-item i {
    opacity: 0;
    transition: var(--transition);
}

.service-menu-item:hover i,
.service-menu-item.active i {
    opacity: 1;
}

.services-content {
    min-height: 500px;
}

.service-detail {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.service-detail.active {
    display: block !important;
}

.service-cover {
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-cover img {
    width: 100%;
    height: auto;
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Packages Grid */
.packages-list h4 {
    margin-bottom: 1.5rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.package-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--divider);
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.package-name {
    color: var(--primary);
    margin-bottom: 1rem;
}

.package-desc {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.package-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

/* Modules Table */
.modules-list h4 {
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.modules-table {
    width: 100%;
    border-collapse: collapse;
}

.modules-table thead {
    background: rgba(239, 66, 65, 0.1);
}

.modules-table th,
.modules-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--divider);
}

.modules-table th {
    font-weight: 600;
    color: var(--primary);
}

.modules-table tbody tr {
    transition: var(--transition);
}

.modules-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.module-name {
    font-weight: 600;
}

.module-desc {
    color: var(--muted);
    max-width: 400px;
}

.module-tech {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.tech-stack {
    font-size: 0.875rem;
    color: var(--muted);
}

.module-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.125rem;
}

@media (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr;
    }
    
    .services-sidebar {
        position: static;
        overflow-x: auto;
    }
    
    .services-menu {
        display: flex;
        gap: 0.5rem;
    }
    
    .service-menu-item {
        white-space: nowrap;
    }
}

/* Projects Section - Grid View (Homepage) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-excerpt {
    color: var(--muted);
    margin-bottom: 1rem;
    flex: 1;
}

.project-detail-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Projects Section - List View (Projects Page) */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-list-item {
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--divider);
    overflow: hidden;
    transition: var(--transition);
}

.project-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.project-list-content {
    display: grid;
    grid-template-columns: 80px 1fr 300px;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.project-list-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    transition: var(--transition);
}

.project-list-item:hover .project-list-number {
    opacity: 1;
    transform: scale(1.1);
}

.project-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-list-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text);
    flex: 1 1 auto;
}

.project-list-excerpt {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.project-list-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.project-list-link:hover {
    gap: 0.75rem;
    color: var(--secondary);
}

.project-list-image {
    border-radius: var(--radius-lg);
    overflow: visible; /* allow ribbon to overflow outside image edge */
    aspect-ratio: 16/10;
    background: var(--bg);
    position: relative;
}

.project-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-list-item:hover .project-list-image img {
    transform: scale(1.05);
}

/* Vertical ribbon for project type */
.project-type-ribbon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%) rotate(90deg); /* 50% dışarı taşır */
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    z-index: 5; /* görüntünün üstünde görünmesi için */
    white-space: nowrap;
}

.project-type-ribbon.own {
    background: linear-gradient(135deg, var(--primary), #FF6B6B);
    color: #fff;
}

.project-type-ribbon.client {
    background: linear-gradient(135deg, var(--secondary), #A78BFA);
    color: #fff;
}

/* Alternating Layout */
.project-list-item.odd .project-list-content {
    grid-template-columns: 80px 1fr 300px;
}

.project-list-item.odd .project-list-number {
    order: 0;
}

.project-list-item.odd .project-list-info {
    order: 1;
}

.project-list-item.odd .project-list-image {
    order: 2;
}

@media (max-width: 1024px) {
    .project-list-content,
    .project-list-item.odd .project-list-content {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .project-list-image,
    .project-list-item.odd .project-list-image {
        display: none;
    }
    
    .project-list-number {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .project-list-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .project-list-number {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
    }
    
    .project-list-item {
        position: relative;
    }
}

/* Project Badges */
.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.project-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.1;
    z-index: -1;
}

.project-badge.own-project {
    background: linear-gradient(135deg, var(--primary), #FF6B6B);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 66, 65, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.project-badge.client-project {
    background: linear-gradient(135deg, var(--secondary), #A78BFA);
    color: white;
    box-shadow: 0 2px 8px rgba(140, 105, 249, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.project-badge i {
    font-size: 1rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-header-meta {
    margin-bottom: 1.5rem;
}

.project-type-badge {
    display: inline-block;
}

/* Project Detail Page */
.project-detail-section {
    padding-top: 120px;
    padding-bottom: 4rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.project-header {
    margin-bottom: 2rem;
}

.project-type-badge {
    margin-bottom: 1.5rem;
}

.project-cover {
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 3rem;
}

.project-gallery {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-caption {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

#lightboxCaption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--muted);
    margin: 0;
}

.contact-social h4 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 66, 65, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Footer */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--divider);
    padding: 3rem 0 1.5rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--muted);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted);
}

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

.footer-contact p {
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
    color: var(--muted);
    font-size: 0.875rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid var(--primary);
}

.toast i {
    font-size: 1.5rem;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: var(--primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page loader spin animation */
@keyframes spinFav {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fancy loader styles */
.page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 600px at 50% -200px, rgba(140,105,249,0.15), transparent 70%),
                radial-gradient(1000px 500px at -200px 80%, rgba(239,66,65,0.12), transparent 70%),
                #0E0F14F8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 1;
    transition: opacity 500ms ease;
}

.page-loader.fade-out {
    opacity: 0;
}

.loader-icon {
    width: 64px;
    height: 64px;
    filter: brightness(1.3) saturate(0);
    animation: loaderPulse 1200ms ease-in-out infinite;
    will-change: transform, filter;
}

/* Icon exit animation to top-left before fade */
/* removed move-out fly animation */

@keyframes loaderPulse {
    0% { transform: scale(1); filter: brightness(1.2) saturate(0); }
    50% { transform: scale(1.06); filter: brightness(1.35) saturate(0.6); }
    100% { transform: scale(1); filter: brightness(1.4) saturate(1); }
}

/* (fly-out animation removed) */

/* CKEditor - Admin blog editor theming */
.ck-editor {
    --ck-color-base-background: var(--bg);
    --ck-color-toolbar-background: var(--card);
    --ck-color-toolbar-border: var(--divider);
}

.ck.ck-editor__main > .ck-editor__editable {
    min-height: 360px; /* make editor taller */
    background: var(--bg);
    color: var(--text);
    border-color: var(--divider);
}

.ck.ck-editor__main > .ck-editor__editable:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 66, 65, 0.12);
}

.ck-content p,
.ck-content li,
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    color: var(--text);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

/* Admin Login Page */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    /* keep logo text from overflowing the card */
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.1;
    word-break: break-word;
}

.login-header p {
    color: var(--muted);
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

/* Login form inputs - ensure full width and alignment */
.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 66, 65, 0.1);
}

/* Admin Panel Layout */
.admin-panel {
    background: var(--bg);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--card);
    border-right: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto; /* allow sidebar to scroll */
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--divider);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--divider);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.25rem; /* more compact to reduce height */
    color: var(--muted);
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(239, 66, 65, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.nav-item i {
    font-size: 1.25rem;
}

.admin-main {
    background: var(--bg);
}

.admin-header {
    background: var(--card);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.admin-content {
    padding: 2rem;
}

/* Admin Components */
.admin-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--muted);
}

.admin-form {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 800px;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--divider);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--primary);
    background: rgba(239, 66, 65, 0.05);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: rgba(239, 66, 65, 0.1);
}

.radio-label span {
    transition: var(--transition);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Admin Tables */
.admin-table {
    background: var(--card);
    width: 100%;
    table-layout: fixed;
}

.admin-table th {
    background: rgba(239, 66, 65, 0.05);
    font-weight: 600;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
}

.admin-table td {
    color: var(--muted);
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.admin-table code {
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.admin-table .actions {
    display: flex;
    gap: 0.35rem;
}

.text-center {
    text-align: center;
}

.btn-danger {
    background: rgba(239, 66, 65, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-danger:hover {
    background: var(--primary);
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary);
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(239, 66, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
}

.stat-info p {
    margin: 0;
    color: var(--muted);
}

.dashboard-section {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    margin-bottom: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-error {
    background: rgba(239, 66, 65, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}

/* Contact Messages */
.message-detail-row {
    display: none;
}

.unread {
    font-weight: 600;
}

.message-preview {
    max-width: 300px;
}

.message-detail {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

/* Media Gallery Manager */
.media-gallery-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    min-height: 150px;
}

.no-media-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

.media-item-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--divider);
    transition: var(--transition);
}

.media-item-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.media-item-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.media-caption {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
    background: var(--bg);
}

.media-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 66, 65, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.media-item-card:hover .media-delete-btn {
    opacity: 1;
}

.media-delete-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 80vh; /* keep modal within viewport */
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--divider);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 66, 65, 0.1);
    color: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-form {
    padding: 2rem;
    overflow: auto; /* allow scrolling inside modal */
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.media-preview {
    margin-top: 1rem;
}

.media-preview img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: relative;
        height: auto;
    }
}

/* ==========================================================================
   Quote Form Styles
   ========================================================================== */

.quote-section {
    padding: 4rem 0;
    background: var(--bg);
    min-height: 100vh;
}

.quote-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quote-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.quote-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.quote-form {
    position: relative;
}

.quote-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.quote-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.step-header h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg);
    border: 2px solid var(--divider);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 66, 65, 0.1);
}

.time-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.time-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--divider);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.time-option:hover {
    border-color: var(--primary);
    background: rgba(239, 66, 65, 0.05);
}

.time-option input[type="radio"] {
    margin-right: 0.75rem;
    width: auto;
}

.time-option input[type="radio"]:checked + .time-label {
    color: var(--primary);
    font-weight: 600;
}

.time-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(239, 66, 65, 0.1);
}

/* 2x2 düzen */
.time-options.two-by-two {
    grid-template-columns: repeat(2, 1fr);
}

.quote-info {
    background: rgba(239, 66, 65, 0.1);
    border: 1px solid rgba(239, 66, 65, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.quote-info p {
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.quote-info p i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    max-width: 720px;
    width: min(96%, 720px);
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 3rem;
    color: #10B981;
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-footer {
    margin-top: 1.25rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: toastSlideIn 0.3s ease-out;
}

.toast-error {
    background: #EF4444;
}

.toast-success {
    background: #10B981;
}

.toast-info {
    background: var(--primary);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Quote Form */
@media (max-width: 768px) {
    .quote-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .time-options {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
    }
}

/* Admin Quotes Filters */
.filter-section {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--divider);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.filter-group label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: .35rem;
}
.filter-group input,
.filter-group select {
    background: var(--bg);
    border: 1px solid var(--divider);
    color: var(--text);
    padding: .6rem .8rem;
    border-radius: var(--radius-md);
}

/* Admin Quotes table row separation */
.admin-table tbody tr {
    border-bottom: 1px solid var(--divider);
}
.admin-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.01);
}
.admin-table tbody tr:hover {
    background: rgba(239,66,65,0.04);
}