/* ================================
   📄 assets/css/style.css
   DD.COM HuaHin - Complete Main Stylesheet
   ================================ */

:root {
    --primary: #ff5858;
    --secondary: #f857a6;
    --accent: #ff7eb3;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

/* ================================
   RESET & BASE STYLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', 'Segoe UI', 'Sukhumvit Set', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ================================
   LAYOUT COMPONENTS
   ================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER STYLES
   ================================ */

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(255, 88, 88, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 15px rgba(255, 88, 88, 0.4);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Makes logo white on dark background */
}

.logo:hover .logo-image {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-toggle i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-toggle i:last-child {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 15px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--light);
    color: var(--primary);
}

.lang-option.active {
    background: var(--primary);
    color: var(--white);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.cta-button {
    background-color: var(--white);
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
    background-color: #f8f9fa;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}


/* ================================
   BUTTON STYLES
   ================================ */

.btn {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255,255,255,0.4);
    background-color: #f8f9fa;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* ================================
   SECTION COMMON STYLES
   ================================ */

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background: var(--light);
    border-radius: 25px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 88, 88, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 88, 88, 0.2);
    border-color: var(--primary);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    display: block;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.about-card:hover .about-icon {
    filter: grayscale(0);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    80% { transform: translateY(-10px); }
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.about-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ================================
   SERVICES SECTION
   ================================ */

.services {
    padding: 100px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 88, 88, 0.2);
    border-color: var(--primary);
}

.service-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s;
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotate(5deg);
}

.service-content {
    padding: 35px 30px;
}

.service-content h3 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 600;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.price-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 88, 88, 0.3);
    transition: all 0.3s ease;
}

.price-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 88, 88, 0.4);
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-details li {
    padding: 8px 0;
    color: var(--gray);
    transition: color 0.3s ease;
}

.service-details li:hover {
    color: var(--primary);
}

.service-details li i {
    color: var(--success);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* ================================
   Why Choose Us SECTION
   ================================ */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}


/* ================================
   PROCESS SECTION
   ================================ */

.process {
    padding: 100px 0;
    background-color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
    background: var(--light);
    padding: 50px 30px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 88, 88, 0.15);
    border-color: var(--primary);
}

.step-number {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: -45px auto 30px;
    box-shadow: 0 15px 30px rgba(255, 88, 88, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 20px 40px rgba(255, 88, 88, 0.4);
}

.step h3 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 600;
}

.step p {
    color: var(--gray);
    line-height: 1.7;
}

/* ================================
   Enhanced Portfolio CSS
   DD.COM HuaHin - Portfolio Performance & UX
   ================================ */

/* Portfolio Filter Container */
.portfolio-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 50px 0 40px;
    flex-wrap: wrap;
    position: relative;
    padding: 20px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Enhanced Filter Buttons */
.filter-btn {
    background: var(--light);
    border: 2px solid var(--border);
    color: var(--gray);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    user-select: none;
    min-width: 100px;
    text-align: center;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 88, 88, 0.3);
}

.filter-btn:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* Search Container */
.search-container {
    position: relative;
    margin-left: auto;
    max-width: 300px;
    flex-shrink: 0;
}

.portfolio-search {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.portfolio-search:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 88, 88, 0.1);
    transform: translateY(-2px);
}

.portfolio-search::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.search-container i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
    transition: color 0.3s ease;
}

.portfolio-search:focus + i {
    color: var(--primary);
}

/* Sort Container */
.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    flex-shrink: 0;
}

.sort-container label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    min-width: 140px;
}

.sort-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 88, 88, 0.1);
}

/* Portfolio Grid Enhanced */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 40px;
    position: relative;
    min-height: 400px;
}

/* Portfolio Items Enhanced */
.portfolio-item {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    opacity: 1;
    transform: translateY(0) scale(1);
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 88, 88, 0.2);
    border-color: var(--primary);
    z-index: 5;
}

.portfolio-item.selected {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 88, 88, 0.3);
    border-color: var(--primary);
    z-index: 10;
}

.portfolio-item.filter-animate {
    animation: filterSlideIn 0.6s ease forwards;
}

/* Portfolio Image Enhanced */
.portfolio-image {
    height: 280px;
    background: linear-gradient(135deg, var(--light), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--gray);
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-image i {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.portfolio-item:hover .portfolio-image i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary);
    opacity: 1;
}

/* Featured Badge Enhanced */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Portfolio Content Enhanced */
.portfolio-content {
    padding: 30px;
    position: relative;
}

.portfolio-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.portfolio-item h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
    color: var(--primary);
}

.portfolio-item p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.portfolio-item:hover p {
    color: var(--dark);
}

/* Portfolio Price Enhanced */
.portfolio-price {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 88, 88, 0.1), rgba(248, 87, 166, 0.1));
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    margin: 15px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: left 0.3s ease;
    z-index: -1;
}

.portfolio-item:hover .portfolio-price::before {
    left: 0;
}

.portfolio-item:hover .portfolio-price {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

/* View More Link Enhanced */
.view-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px 0;
}

.view-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.view-more:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.view-more:hover::after {
    transform: translateX(5px);
}

/* Portfolio Count */
.portfolio-count {
    text-align: center;
    margin: 20px 0;
    color: var(--gray);
    font-size: 0.95rem;
    padding: 10px 20px;
    background: var(--light);
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

/* Loading Indicator */
.portfolio-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: none;
    backdrop-filter: blur(10px);
}

.portfolio-loading .loading {
    border: 4px solid rgba(255,88,88,.2);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    animation: fadeIn 0.5s ease;
    text-align: center;
    padding: 80px 20px;
    background: var(--light);
    border-radius: 25px;
    border: 2px dashed var(--border);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray);
    opacity: 0.3;
    margin-bottom: 25px;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Animations */
@keyframes filterSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles Enhanced */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal {
    background: white;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    z-index: 1;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(90deg);
}

.modal-content {
    padding: 50px;
}

.item-details h2 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2rem;
    text-align: center;
}

.detail-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.detail-grid h4 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-grid p {
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 88, 88, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .portfolio-filter {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .search-container {
        max-width: 100%;
        margin-left: 0;
        order: 1;
    }
    
    .sort-container {
        margin-left: 0;
        justify-content: center;
        order: 2;
    }
    
    .filter-btn {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portfolio-filter {
        margin: 30px 0;
        padding: 20px 15px;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .portfolio-image {
        height: 220px;
        font-size: 3.5rem;
    }
    
    .portfolio-content {
        padding: 25px 20px;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
    
    .item-details h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .sort-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .sort-select {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .portfolio-filter {
        gap: 15px;
        padding: 15px 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        min-width: 70px;
        max-width: 100px;
    }
    
    .portfolio-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .portfolio-content {
        padding: 20px 15px;
    }
    
    .portfolio-item h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .item-details h2 {
        font-size: 1.3rem;
    }
    
    .detail-grid {
        gap: 20px;
    }
    
    .btn {
        width: 100%;
        padding: 15px 25px;
    }
}

/* Performance Optimizations */
@media (max-width: 480px) {
    .portfolio-item,
    .filter-btn {
        transition-duration: 0.2s;
    }
    
    .portfolio-item:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .filter-btn,
    .portfolio-item,
    .search-container input,
    .sort-select {
        border-width: 3px;
        border-color: #000;
    }
    
    .filter-btn.active {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .portfolio-item,
    .filter-btn,
    .portfolio-image img,
    .view-more {
        transition: none;
    }
    
    .featured-badge {
        animation: none;
    }
    
    .filter-animate {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .portfolio-filter,
    .modal-overlay,
    .portfolio-loading {
        display: none !important;
    }
    
    .portfolio-grid {
        display: block;
    }
    
    .portfolio-item {
        break-inside: avoid;
        margin-bottom: 20pt;
        box-shadow: none;
        border: 1pt solid #ccc;
    }
    
    .portfolio-image {
        height: 150pt;
    }
    
    .view-more {
        display: none;
    }
}

/* ================================
   TESTIMONIALS SECTION
   ================================ */

.testimonials {
    padding: 100px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--light);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 88, 88, 0.15);
    border-color: var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-right: 20px;
    box-shadow: 0 8px 25px rgba(255, 88, 88, 0.3);
}

.testimonial-info h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.rating {
    color: #fbbf24;
    font-size: 1.1rem;
}

.rating i {
    margin-right: 2px;
}

.testimonial-content p {
    color: var(--gray);
    font-style: italic;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.3;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle fill="rgba(255,255,255,0.1)" cx="100" cy="100" r="30"/><circle fill="rgba(255,255,255,0.08)" cx="900" cy="200" r="50"/></svg>');
    animation: float 25s ease-in-out infinite;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-info p {
    margin-bottom: 35px;
    opacity: 0.95;
    font-size: 1.15rem;
    line-height: 1.7;
}

.contact-details {
    margin-top: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    font-size: 1.4rem;
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-item div h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item div p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background-color: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px 30px 0 0;
}

.contact-form h3 {
    color: var(--dark);
    margin-bottom: 35px;
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
}

/* ================================
   FORM STYLES
   ================================ */

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 88, 88, 0.1);
    background: var(--white);
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 88, 88, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ================================
   FOOTER (Refined)
   ================================ */

footer {
  /* พื้นหลังไล่เฉดเข้ม + เบลอเบา ๆ */
  background:
    radial-gradient(900px 450px at 110% -10%, rgba(248,87,166,0.12), transparent 60%),
    radial-gradient(800px 400px at -10% 120%, rgba(255,126,179,0.10), transparent 60%),
    linear-gradient(135deg, var(--dark), #2c3e50);
  color: var(--white);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: 3.6fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 42px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer-logo-image {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1); /* ให้โลโก้เป็นโทนสว่างบนพื้นเข้ม */
  transition: transform .25s ease;
}
.footer-logo:hover .footer-logo-image { transform: scale(1.06); }

.footer-about p {
  opacity: .85;
  margin-bottom: 22px;
  line-height: 1.75;
}

/* ── Social Links (แบรนด์จริง + ไล่เฉด) ─────────────────── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* Email (ใช้สีองค์กรของคุณ) */
.social-links a[aria-label="Email"] {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
/* Facebook */
.social-links a[aria-label="Facebook"] {
  background: linear-gradient(135deg, #1877f2, #3b5998);
}
/* Map (Google Maps โทนแดง) */
.social-links a[aria-label="Map"] {
  background: linear-gradient(135deg, #e53935, #b71c1c);
}
/* Line */
.social-links a[aria-label="Line"] {
  background: linear-gradient(135deg, #00c300, #009900);
}
/* WhatsApp */
.social-links a[aria-label="Whatsapp"] {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* ── Column Title ─────────────────────────────────────────── */
.footer-title {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ── Links List ───────────────────────────────────────────── */
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin: 10px 0; }
.footer-links ul li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 7px 0;
  transition: color .2s ease, transform .2s ease;
  border-radius: 10px;
}
.footer-links ul li a i {
  width: 20px; text-align: center;
  color: var(--primary);
}
.footer-links ul li a:hover {
  color: var(--primary);
  transform: translateX(6px);
}

/* ── Copyright ────────────────────────────────────────────── */
.copyright {
  text-align: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255, 255, 255, .15);
  opacity: .85;
  line-height: 1.6;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
  .footer-container { gap: 32px; }
}

@media (max-width: 768px) {
  footer { padding: 56px 0 24px; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-title { text-align: center; }
  .footer-title::after { left: 50%; transform: translateX(-50%); }
  .footer-links ul li a { justify-content: center; }
  .social-links { justify-content: center; }
}

/* เคารพผู้ใช้ที่ลด motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   BACK TO TOP BUTTON
   ================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(255, 88, 88, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 88, 88, 0.4);
}

/* ================================
   MAP SECTION
   ================================ */

.map-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.map-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.map-container iframe {
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0);
}

/* ================================
   BEFORE/AFTER GALLERY
   ================================ */

.before-after-gallery {
    margin-top: 20px;
}

.before-after-gallery > div {
    display: flex;
    gap: 12px;
}

.before-after-gallery > div > div {
    flex: 1;
}

.before-after-gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 2px solid var(--border);
}

.before-after-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.before-after-gallery .label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   FACEBOOK INTEGRATION
   ================================ */

.facebook-post {
    border-left: 4px solid var(--primary);
    position: relative;
}

.facebook-post::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #1877f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-post::after {
    content: '\f09a';
    font-family: 'Font Awesome 5 Brands';
    position: absolute;
    top: 22px;
    right: 22px;
    color: white;
    font-size: 0.8rem;
}

.facebook-post .portfolio-image {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
}

.facebook-post .portfolio-image i {
    font-size: 3.5rem;
}

.flow-flow-feed {
    display: none;
    margin-bottom: 40px;
}

.flow-flow-active .static-portfolio {
    display: none;
}

.flow-flow-active .flow-flow-feed {
    display: block;
}

/* ================================
   NOTIFICATION STYLES
   ================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
    transition: all 0.3s ease;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ================================
   FORM ERROR STYLES
   ================================ */

.form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================================
   ADMIN STYLES (Basic)
   ================================ */

.admin-panel {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid var(--border);
}

.admin-form {
    display: grid;
    gap: 25px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 88, 88, 0.1);
}

.admin-form button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.admin-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 88, 88, 0.3);
}

/* ================================
   SCROLLBAR STYLES
   ================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* ================================
   SELECTION STYLES
   ================================ */

::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* ================================
   FOCUS STYLES
   ================================ */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes modalSlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0.8); opacity: 0; }
    to { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    header,
    footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ================================
   HIGH CONTRAST MODE
   ================================ */

@media (prefers-contrast: high) {
    :root {
        --primary: #000;
        --secondary: #000;
        --accent: #000;
        --gray: #000;
        --border: #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ================================
   REDUCED MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================
   HIDDEN ELEMENTS
   ================================ */

.hidden { 
    display: none; 
}

.visible { 
    display: block; 
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   MODAL STYLES
   ================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-content {
    padding: 40px;
}

/* ================================
   DROPDOWN STYLES
   ================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--white);
    border: 2px solid var(--border);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    animation: slideInDown 0.3s ease;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

/* ================================
   TABS STYLES
   ================================ */

.tabs {
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--gray);
}

.tab-button.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ================================
   ACCORDION STYLES
   ================================ */

.accordion {
    margin-bottom: 20px;
}

.accordion-item {
    border: 2px solid var(--border);
    border-radius: 15px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background: var(--light);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--primary);
    color: var(--white);
}

.accordion-header.active {
    background: var(--primary);
    color: var(--white);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-content.active {
    padding: 20px;
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* ================================
   BREADCRUMB STYLES
   ================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--light);
    border-radius: 10px;
}

.breadcrumb-item {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--gray);
}

/* ================================
   BADGE STYLES
   ================================ */

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-error {
    background: var(--error);
    color: var(--white);
}

.badge-info {
    background: var(--info);
    color: var(--white);
}

/* ================================
   PROGRESS BAR STYLES
   ================================ */

.progress {
    background: var(--light);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ================================
   TOOLTIP STYLES
   ================================ */

.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* ================================
   SKELETON LOADING
   ================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-paragraph {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-paragraph:last-child {
    width: 80%;
}

/* ================================
   CARD HOVER EFFECTS
   ================================ */

.card-hover-1:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-hover-2:hover {
    transform: rotateY(5deg) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-hover-3:hover {
    animation: pulse 0.6s ease-in-out;
}

/* ================================
   END OF STYLES
   ================================ */