:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --accent-primary: #004475;
    --accent-secondary: #1d4ed8;
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --border-color: #d1d5db;
    --shadow: 0 4px 24px rgba(0,0,0,0.1);
    --glow: 0 0 20px rgba(37, 99, 235, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    font-size: 0.8em;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f5f5f5;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: #f5f5f5;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 16px;
}

.nav-links a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    border-bottom: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 0;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #e5e5e5;
    color: var(--accent-primary);
}

.nav-links a.active::after {
    width: 0;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown > a::after {
    content: '▼';
    font-size: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 20px;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: flex;
    gap: 30px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-section a {
    display: block;
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-section a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 100px 5%;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
#home {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(245, 245, 245, 0.6) 100%
    );
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

.hero-particles::after {
    animation: particleFloat 20s ease-in-out infinite reverse;
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.02) 0%, transparent 40%);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 3;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 60px 60px;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--accent-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
    color: var(--accent-primary);
}

.hero-content h1 span {
    color: var(--accent-primary);
}

.hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-primary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-primary);
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* About Section */
#about {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

/* Offer Section */
#offer {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

#offer::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
    animation: servicesFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes servicesFloat {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(40px, -40px);
    }
}

/* Offer Section - Nowa struktura */
.offer-tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.main-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.main-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-tab svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-primary);
    transition: fill 0.3s ease;
}

.main-tab:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.main-tab.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 68, 117, 0.3);
}

.main-tab.active svg {
    fill: var(--bg-primary);
}

.sub-tabs-container {
    margin-bottom: 30px;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sub-tab {
    padding: 12px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.sub-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.offer-content-container {
    min-height: 200px;
}

.tab-content {
    display: none;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.tab-content .lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.tab-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.tab-content ul {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 20px;
}

.tab-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.tab-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsywność */
@media (max-width: 768px) {
    .main-tabs {
        gap: 12px;
    }
    
    .main-tab {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .sub-tabs {
        gap: 8px;
    }
    
    .sub-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 24px;
    }
    
    .tab-content h3 {
        font-size: 24px;
    }
}

/* Promotion Section */
#promotion {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

#promotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.promotion-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    padding: 40px;
}

.promotion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.promotion-list li {
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.promotion-list li:last-child {
    border-bottom: none;
}

.promotion-list li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.promotion-price {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.price-old {
    display: block;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.price-new {
    display: block;
    color: var(--accent-primary);
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    #promotion {
        padding: 60px 0;
    }

    .promotion-content {
        padding: 25px;
    }

    .promotion-list li {
        font-size: 1rem;
        padding: 12px 0;
    }

    .price-new {
        font-size: 2rem;
    }
}

/* Portfolio Section */
#portfolio {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent-primary);
}

.portfolio-images {
    display: flex;
    gap: 4px;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-image {
    flex: 1;
    min-width: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

/* Mobile Portfolio - single image visible */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-images {
        height: 280px;
        position: relative;
    }
    
    /* Telefony - 1 zdjęcie */
    .portfolio-images .portfolio-image:nth-child(n+2) {
        display: none !important;
    }
    
    .portfolio-images::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 80px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,0.5));
        pointer-events: none;
    }
    
    .portfolio-item {
        position: relative;
    }
    
    .portfolio-item::before {
        content: 'Zobacz więcej';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--accent-primary);
        color: var(--bg-primary);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .portfolio-item:hover::before {
        opacity: 1;
    }
}

/* Tablet - 2 zdjęcia */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-images .portfolio-image:nth-child(n+3) {
        display: none !important;
    }
}

/* Placeholder images with gradient backgrounds */
.portfolio-image.img-1 {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

.portfolio-image.img-2 {
    background: linear-gradient(135deg, #3d2b1f 0%, #5c4033 100%);
}

.portfolio-image.img-3 {
    background: linear-gradient(135deg, #1f3d2b 0%, #2d5a40 100%);
}

.portfolio-image.img-4 {
    background: linear-gradient(135deg, #3d1f3d 0%, #5c2d5c 100%);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Section */
#contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-primary);
}

.contact-item-text span {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-item-text strong {
    color: var(--text-primary);
    font-size: 16px;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Social Buttons Styles */
.contact-social {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 600px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    border-color: #333;
}

.social-btn.tiktok:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    border-color: #cc0000;
}

.social-btn.youtube:hover {
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: #bc1888;
}

.social-btn.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 24, 136, 0.4);
}

.social-btn.email {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.social-btn.email:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.social-btn.phone {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.social-btn.phone:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-color: #25d366;
}

.social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #34eb7a 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .social-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-social {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .social-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* Form Error Styles */
.form-error {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
    line-height: 1.4;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #22c55e !important;
}

/* Global Form Error */
#formGlobalError {
    display: none;
    text-align: center;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#formGlobalError a {
    color: #fff;
    text-decoration: underline;
}

#formGlobalError a:hover {
    text-decoration: none;
}

#formGlobalError.active {
    display: block;
}

/* Submit Button Disabled State */
.submit-btn:disabled,
.submit-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2 solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.form-success svg {
    width: 64px;
    height: 64px;
    fill: var(--accent-primary);
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 40px 5%;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-primary);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.footer-socials a:hover svg {
    fill: #ffffff;
}

/* Animations */
@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.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .services-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px 5%;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-social {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 5%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Admin Panel */
#admin {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 120px 5% 60px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-logout-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.admin-tab {
    padding: 16px 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.admin-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--accent-primary);
}

.admin-tab.active::after {
    transform: scaleX(1);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Featured Selector */
.admin-actions {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.featured-selector h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.featured-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.featured-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-item:hover {
    border-color: var(--accent-primary);
}

.featured-item.selected {
    border-color: var(--accent-primary);
    background: rgba(34, 197, 94, 0.1);
}

.featured-item input {
    display: none;
}

.featured-item .check-icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-item.selected .check-icon {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.featured-item.selected .check-icon svg {
    fill: var(--bg-primary);
}

.featured-item span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Portfolio Table */
.portfolio-table {
    overflow-x: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.portfolio-table table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-table td {
    color: var(--text-primary);
    font-size: 15px;
}

.portfolio-table tbody tr {
    transition: background 0.3s ease;
}

.portfolio-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.portfolio-table tbody tr:last-child td {
    border-bottom: none;
}

.table-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.table-image-placeholder {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--border-color));
}

.table-description {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.published {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-primary);
}

.status-badge.unpublished {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.action-btn.edit {
    background: rgba(34, 197, 94, 0.1);
}

.action-btn.edit:hover {
    background: var(--accent-primary);
}

.action-btn.edit:hover svg {
    fill: var(--bg-primary);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
}

.action-btn.delete:hover {
    background: #ef4444;
}

.action-btn.delete:hover svg {
    fill: white;
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.empty-state.show {
    display: block;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    fill: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Admin Form */
.admin-form {
    background: var(--bg-secondary);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 800px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-form .form-group {
    margin-bottom: 24px;
}

.admin-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: var(--text-secondary);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form select {
    cursor: pointer;
}

/* Image Upload */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
}

.image-upload-area:hover {
    border-color: var(--accent-primary);
}

.image-upload-area.dragover {
    border-color: var(--accent-primary);
    background: rgba(34, 197, 94, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--text-secondary);
    opacity: 0.5;
}

.upload-placeholder p {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.upload-placeholder span {
    color: var(--text-secondary);
    font-size: 14px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.image-preview-item:hover .remove-btn {
    opacity: 1;
}

.image-preview-item .remove-btn svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Image Order Controls */
.image-order-controls {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-item:hover .image-order-controls {
    opacity: 1;
}

.order-number {
    font-size: 12px;
    font-weight: 600;
    color: white;
    min-width: 16px;
    text-align: center;
}

.move-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.move-btn:hover:not(:disabled) {
    opacity: 1;
}

.move-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.move-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.modal-close:hover svg {
    fill: var(--bg-primary);
}

.modal-body {
    padding: 0;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.modal-images img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.modal-info {
    padding: 32px;
}

.modal-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.modal-gallery-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-tertiary);
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

/* Responsive Admin */
@media (max-width: 768px) {
    #admin {
        padding: 100px 5% 40px;
    }

    .admin-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .admin-header h2 {
        font-size: 24px;
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .admin-tab {
        padding: 12px 20px;
        white-space: nowrap;
    }

    .admin-form .form-row {
        grid-template-columns: 1fr;
    }

    .portfolio-table th:nth-child(3),
    .portfolio-table td:nth-child(3),
    .portfolio-table th:nth-child(5),
    .portfolio-table td:nth-child(5) {
        display: none;
    }

    .modal-images {
        grid-template-columns: 1fr;
    }
}