/* ====================================
   MODERN ARCHITECTURE WEBSITE
   Biuro Projektowe Krzysztof Grzebyk
   ==================================== */

/* CSS Variables - Kolorystyka */
:root {
    --primary-color: #4A9B8E;
    --primary-dark: #3d7f73;
    --primary-light: #6DBECA;
    --accent-color: #92CFD8;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 50%, #f0f4f8 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 0;
}

/* Modern Logo Design */
.logo-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-modern:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Old logo styles - kept for backward compatibility */
.logo-img {
    height: 150px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.logo-img:hover {
    transform: scale(1.02);
}



/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    list-style-type: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    list-style-type: none;
}

nav ul li a {
    display: block;
    padding: 12px 24px;
    color: var(--white);
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav ul li a.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.hero-text ul {
    list-style: none;
    margin: 25px 0;
}

.hero-text ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 1.05rem;
}

.hero-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background: var(--accent-color);
    border-color: var(--white);
    transform: scale(1.2);
}

/* Contact Box */
.contact-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-top: 30px;
}

.contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-box p {
    margin: 10px 0;
    color: var(--text-light);
}

.contact-box strong {
    color: var(--text-dark);
}

.contact-box a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-box a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Services Section */
.services {
    padding: 60px 0;
}

/* Projects Section - ciemniejsze tło */
.projects-section {
    padding: 30px 0 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 50%, #f0f4f8 100%);
}

/* Contact Section - jasne tło */
.contact-section {
    background: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--text-light);
}

/* Gallery Page */
.gallery-header {
    text-align: center;
    padding: 60px 0 40px;
    background: var(--white);
}

.gallery-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Gallery Filters Section */
.gallery-filters-section {
    background: var(--white);
    padding: 30px 0;
}

.gallery-grid-section {
    background: var(--white);
    padding: 0 0 60px 0;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: var(--white);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: var(--transition);
}

.lightbox-nav:hover {
    color: var(--accent-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* About Page */
.about-section {
    padding: 60px 0 30px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 50%, #f0f4f8 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 30px 0 15px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.credentials {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    margin: 30px 0;
}

.credentials ul {
    list-style: none;
}

.credentials ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.credentials ul li:last-child {
    border-bottom: none;
}

.projects-list {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.projects-list h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.projects-list ul li {
    padding: 8px 0;
}

.projects-list ul li a {
    color: var(--primary-color);
    font-weight: 500;
}

.projects-list ul li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: var(--white);
}

.map-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section ul li {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    nav {
        width: 100%;
        order: 4;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
        list-style: none;
        list-style-type: none;
    }
    
    nav ul li {
        list-style: none;
        list-style-type: none;
    }
    
    nav ul li a {
        padding: 15px 20px;
    }
    
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    header {
        background-size: cover, 150% auto;
    }
    
    .logo-container {
        padding: 10px 0;
        justify-content: center;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .lightbox-nav {
        font-size: 30px;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

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

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Loading Animation */
.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); }
}

/* ====================================
   NOWE ULEPSZENIA - 2024
   ==================================== */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    position: relative;
    text-align: center;
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 3px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-top-color: var(--accent-color);
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation-duration: 2s;
}

.preloader-text {
    margin-top: 120px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top .arrow-up {
    display: block;
    line-height: 50px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-light);
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-dark);
}

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

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

/* Gallery Preview Section */
.gallery-preview-section {
    padding: 60px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 40px;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(74, 155, 142, 0.12) 0%, rgba(146, 207, 216, 0.12) 100%);
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 3px 12px rgba(74, 155, 142, 0.15);
    border: 1px solid rgba(74, 155, 142, 0.2);
    letter-spacing: 0.3px;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Desktop - 9 obrazków (3x3) */
@media (min-width: 1024px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - 6 obrazków (2x3) */
@media (max-width: 1023px) and (min-width: 769px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-preview-grid .preview-item:nth-child(n+7) {
        display: none;
    }
}

/* Mobile - 4 obrazki (2x2) */
@media (max-width: 768px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-preview-grid .preview-item:nth-child(n+5) {
        display: none;
    }
}

.preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.preview-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

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

.preview-item:hover img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(0);
    transition: var(--transition);
}

.preview-overlay h3 {
    font-size: 1.1rem;
    margin: 0;
}

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

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
    background: var(--background);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-wrapper h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.form-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-block;
}

/* Phone Link Animation */
.phone-link {
    position: relative;
    display: inline-block;
}

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

.phone-link:hover::after {
    width: 100%;
}

/* Improved Dot Buttons */
.slider-dots button.dot {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 20px 0;
    gap: 20px;
}

.pagination-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gallery Expand/Collapse Buttons for Mobile */
.gallery-expand-btn,
.gallery-collapse-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 155, 142, 0.3);
}

.gallery-expand-btn span,
.gallery-collapse-btn span {
    font-size: 1.3rem;
    margin-right: 8px;
}

.gallery-expand-btn:hover,
.gallery-collapse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 155, 142, 0.4);
}

.gallery-expand-btn:active,
.gallery-collapse-btn:active {
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.pagination-info span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Gallery item hidden state for pagination */
.gallery-item.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 25px;
    }
    
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Vertical Layout for About Page */
.about-slider-full {
    max-width: 900px;
    margin: 0 auto 40px;
}

.about-text-full {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.about-text-full h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-text-full h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.about-text-full p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.credentials-full {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.credentials-full h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.credentials-full ul {
    list-style: none;
    padding: 0;
}

.credentials-full ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
    color: var(--text-light);
}

.credentials-full ul li:last-child {
    border-bottom: none;
}

.experience-full {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.experience-full h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.experience-full p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 2;
}

/* Two-Column Layout for About Page */
.about-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text-column {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.about-text-column h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-text-column h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.about-text-column p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
}

.credentials-inline {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.credentials-inline h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.credentials-inline ul {
    list-style: none;
    padding: 0;
}

.credentials-inline ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
}

.credentials-inline ul li:last-child {
    border-bottom: none;
}

.experience-inline {
    background: #f0f7f6;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0 0;
}

.experience-inline h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.experience-inline p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.9;
}

/* Right Column: Single Vertical Slider */
.about-sliders-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

.about-slider-compact {
    flex: 1;
    height: 100%;
}

.slider-container-compact {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
}

.slider-compact {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-compact .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slider-compact .slide.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 0 0 0 !important;
        margin-top: 20px !important;
    }
    
    .about-two-column {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 0 !important;
    }
    
    .about-text-column {
        margin-bottom: 15px;
    }
    
    .credentials-inline {
        margin: 15px 0;
        padding: 15px;
    }
    
    .experience-inline {
        margin: 15px 0 0;
        padding: 15px;
    }
    
    .about-sliders-column {
        margin-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .slider-container-compact {
        height: 250px;
        margin-bottom: 0 !important;
    }
    
    .about-slider-compact {
        margin-bottom: 0 !important;
        height: 250px;
    }
    
    .projects-section {
        padding: 10px 0 40px 0 !important;
        margin-top: 20px !important;
    }
    
    .projects-section h2 {
        margin-top: 0 !important;
        padding-top: 10px;
        margin-bottom: 20px !important;
    }
}
