/* DESIGN SYSTEM / VARIABLES */
:root {
    --primary: #f0db4f; /* Electric Yellow */
    --primary-glow: rgba(240, 219, 79, 0.4);
    --primary-dark: #ccb62e;
    
    --bg: #0f0f12; /* Dark Grafit */
    --bg-surface: #1a1a1f; 
    --bg-surface-light: #25252b;
    
    --text: #e0e0e0;
    --text-dim: #999999;
    --text-white: #ffffff;
    
    --glass: rgba(26, 26, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --speed-pulse: 2s;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.bg-darker {
    background-color: #0a0a0c;
}

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

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    gap: 0.5rem;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(240, 219, 79, 0.1);
}

.btn-phone {
    background-color: var(--bg-surface);
    color: var(--primary);
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

.btn-full {
    width: 100%;
}

/* GLASS EFFECT / CARDS */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
}

.glass-hover:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* TYPOGRAPHY */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

.highlight {
    color: var(--primary);
    position: relative;
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--primary);
}

.logo-icon {
    width: 12px;
    height: 12px;
    background: var(--primary);
    margin-left: 8px;
    border-radius: 2px;
    animation: pulse 1.5s infinite linear;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(240, 219, 79, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(240, 219, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 219, 79, 0); }
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../img/hero.png') center/cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0f0f12 30%, rgba(15, 15, 18, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ABOUT SECTION */
.grid {
    display: grid;
    gap: 4rem;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.features-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.accent-icon {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.image-wrapper {
    position: relative;
    padding: 0;
}

.img-responsive {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.visual-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-right: 2px solid var(--primary);
    border-top: 2px solid var(--primary);
    pointer-events: none;
}

/* SERVICES */
.service-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(240, 219, 79, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* REALIZACJE / GALLERY */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 12px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* WHY US */
.why-item {
    text-align: center;
    padding: 2rem;
}

.why-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.why-icon {
    width: 60px;
    height: 60px;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* REVIEWS */
.review-card {
    padding: 2.5rem;
}

.stars {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.review-card p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.review-author {
    font-weight: 700;
    color: var(--primary);
}

/* CONTACT */
.contact-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-link i {
    color: var(--primary);
    width: 30px;
    height: 30px;
}

.contact-link span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.contact-link strong {
    font-size: 1.1rem;
}

.map-container {
    height: 350px;
    display: flex;
    overflow: hidden;
    padding: 0; /* Override glass padding */
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dim);
}

.map-placeholder i {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

/* FORM */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

/* FOOTER */
.footer {
    background: #050507;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-dim);
    max-width: 300px;
}

.footer-links h4, .footer-legal h4 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-legal a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
}

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

/* ANIMATIONS / UTILITIES */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    
    .nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        background: var(--bg-surface);
        padding: 6rem 2rem;
        transition: 0.4s ease-in-out;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav.open {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    
    .nav-cta {
        display: none;
    }
    
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .features-list { grid-template-columns: 1fr; }
}
