@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #020202;
    --surface-color: #0b0b0b;
    --surface-hover: #161616;
    --primary-color: #ffffff;
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --accent-color: #ffffff;
    --neon-glow: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 64px auto;
    font-size: 1.15rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Background Effects */
.bg-gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: drift 15s infinite alternate ease-in-out;
}

.circle-1 { top: -10%; left: -10%; width: 40vw; height: 40vw; background: rgba(255,255,255,0.03); }
.circle-2 { bottom: 10%; right: -5%; width: 50vw; height: 50vw; background: rgba(200,200,200,0.02); animation-delay: -5s; }

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(2, 2, 2, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

nav.scrolled {
    padding: 16px 0;
    background: rgba(2, 2, 2, 0.9);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.glow-btn {
    font-size: 1.1rem;
    padding: 18px 40px !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle closest-side, rgba(0, 255, 204, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.glow-btn:hover::before {
    opacity: 1;
}

.glow-btn > span {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Sections Setup */
section {
    padding: 140px 0;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 48px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Globe Animation */
.globe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    transform-style: preserve-3d;
    animation: rotateGlobe 20s linear infinite;
}

.globe::before, .globe::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.globe::before { transform: rotateY(60deg); }
.globe::after { transform: rotateY(120deg); }

.globe-horizontal {
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(-50%) rotateX(90deg);
}

@keyframes rotateGlobe {
    0% { transform: rotateY(0deg) rotateX(15deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

/* Premium Timer */
.timer-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.timer-dots {
    display: flex;
    gap: 4px;
}

.timer-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1s infinite alternate;
}
.timer-dot:nth-child(2) { animation-delay: 0.3s; }
.timer-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px rgba(255,255,255,0.8); }
}

.timer {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 2px;
}

/* Base Card Style */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transform: skewX(-20deg);
    transition: var(--transition);
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: var(--surface-hover);
}

.card:hover::before {
    left: 200%;
    transition: 0.7s;
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px; }

/* Enhanced Feature Icon */
.icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.card:hover .icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.2);
    animation: floatIcon 1.5s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: scale(1.15) rotate(5deg) translateY(0); filter: brightness(1); }
    100% { transform: scale(1.15) rotate(5deg) translateY(-8px); filter: brightness(1.3) drop-shadow(0 10px 10px rgba(255,255,255,0.3)); }
}

/* List Style */
.feature-list {
    list-style: none;
    margin-top: 24px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.feature-list li::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
}

/* Browser Window / Ostatnia realizacja */
.portfolio-focus-overlay {
    position: absolute;
    top: 50%; left: 50%; width: 150%; height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1;
}

.portfolio-focus-overlay.active {
    opacity: 1;
}

.browser-window-wrapper {
    display: none;
    max-height: 0;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 48px auto 0 auto;
    max-width: 850px;
    text-align: left;
}

.browser-window-wrapper.show {
    display: block;
}

.browser-window-wrapper.animate-in {
    opacity: 1;
    max-height: 1200px;
    transform: scale(1) translateY(0);
}

.browser-window {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: var(--transition);
}

.browser-window:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 40px rgba(255,255,255,0.05);
}

.browser-header {
    background: rgba(255,255,255,0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}
.browser-dot.r { background: #ff5f56; }
.browser-dot.y { background: #ffbd2e; }
.browser-dot.g { background: #27c93f; }

.browser-address {
    flex: 1;
    text-align: center;
    margin-left: 24px;
    margin-right: 48px;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #888;
    font-family: monospace;
}

.browser-content {
    width: 100%;
    height: 500px;
    position: relative;
}

.browser-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Order Form */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 64px !important;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 20px 24px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.02);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* Separators */
.animated-separator {
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

.animated-separator::after {
    content: '';
    position: absolute;
    top: -50%; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    animation: separatorDrop 2s infinite ease-in-out;
}

@keyframes separatorDrop {
    0% { top: -50%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Review Styles */
.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.quote {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* FAQ Styles */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    background: var(--surface-color);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,255,255,0.2); }
.faq-question {
    padding: 24px 32px;
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.faq-answer.active { max-height: 1000px; transition: max-height 0.4s ease-in-out; }
.faq-answer-inner { padding: 0 32px 32px 32px; color: var(--text-secondary); }

/* Animation Classes */
.fade-up { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-left { opacity: 0; transform: translateX(-40px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-right { opacity: 0; transform: translateX(40px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.zoom-in { opacity: 0; transform: scale(0.95); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }

.fade-up.show, .fade-left.show, .fade-right.show, .zoom-in.show {
    opacity: 1; transform: translate(0) scale(1);
}

/* Staggered Delay */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Footer */
footer {
    background: rgba(5,5,5,1);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-color);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr; gap: 32px; margin-bottom: 80px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-color); padding-left: 8px; }
.footer-bottom {
    padding-top: 32px; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.mobile-only-btn { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform-origin: left center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg); width: 28px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); width: 28px; }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    
    .nav-links { 
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active { right: 0; }
    .nav-links a::after { display: none; }
    .nav-links a { font-size: 1.25rem; }
    
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: inline-flex; margin-top: 32px; padding: 12px 28px !important; font-size: 0.9rem; }
    
    .globe-container { width: 500px; height: 500px; }
    
    section { padding: 100px 0; }
    h1 { font-size: 2.8rem; }
    .card { padding: 32px 24px; }
    .form-container { padding: 32px 24px !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .browser-content { height: 350px; }
    
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
