@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;700;900&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-orange: #ff6b00;
    --accent-blue: #00f2ff;
    --accent-glow-orange: rgba(255, 107, 0, 0.3);
    --accent-glow-blue: rgba(0, 242, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Texture & Grain */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-blue));
    width: 0%;
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10002;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    display: none;
}
@media (hover: hover) {
    .custom-cursor { display: block; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -1px;
}

.glow-text-orange {
    color: var(--accent-orange);
    text-shadow: 0 0 20px var(--accent-glow-orange);
}

.glow-text-blue {
    color: var(--accent-blue);
    text-shadow: 0 0 20px var(--accent-glow-blue);
}

/* Shared Components */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--accent-orange);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-orange);
    position: relative;
    overflow: hidden;
}

.btn-blue {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn:hover {
    background: transparent;
    color: var(--accent-orange);
    box-shadow: 0 0 30px var(--accent-glow-orange);
}

.btn-blue:hover {
    color: var(--accent-blue);
    box-shadow: 0 0 30px var(--accent-glow-blue);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-image-container {
    flex: 1.2;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 55%;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 50px var(--accent-glow-blue);
    transition: transform 0.3s ease;
}

/* Sections */
section {
    padding: 10rem 0;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 3.5rem;
}

/* Glass Cards / Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.card p {
    color: #888;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 4rem;
        height: auto;
        min-height: auto;
    }
    
    .hero-layout {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image-container {
        width: 100%;
        height: auto;
    }
    
    .hero-image-container img {
        max-height: 45vh;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
    
    body::before, body::after, .progress-bar, .custom-cursor {
        display: none !important;
    }
    
    nav {
        position: relative !important;
        background: white !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .logo, .glow-text-orange, .glow-text-blue {
        color: black !important;
        text-shadow: none !important;
    }
    
    .card, .spec-item, .highlight-box, .price-section {
        background: white !important;
        border: 1px solid #ddd !important;
        color: black !important;
        break-inside: avoid;
    }
    
    .btn {
        display: none !important;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    .hero {
        height: auto !important;
    }
    
    .hero-image-container {
        position: relative !important;
        right: 0 !important;
        width: 100% !important;
        height: 300px !important;
        transform: none !important;
    }
}

/* Masonry Gallery Layout */
.portfolio-grid {
    column-count: 3;
    column-gap: 15px;
    width: 100%;
}

@media (max-width: 992px) {
    .portfolio-grid {
        column-count: 2;
    }
}
@media (max-width: 576px) {
    .portfolio-grid {
        column-count: 1;
    }
}

.portfolio-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 15px;
    break-inside: avoid;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px var(--accent-glow-blue);
}

.portfolio-foto-wrapper {
    width: 100%;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

/* Hover Info Box */
.portfolio-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(5, 5, 5, 0.95) 75%);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-hover h4 {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.portfolio-hover p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin: 0;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.98);
    z-index: 11000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* Lightbox UI elements */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f3f4f6;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    z-index: 11010;
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f3f4f6;
    font-size: 36px;
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11010;
    border: 1px solid var(--glass-border);
}

.lightbox-arrow:hover {
    color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow-blue);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
