/* ==================== Root Variables ==================== */
:root {
    --primary-color: #f0b100;
    --primary-dark: #0a0a0a;
    --secondary-dark: #171717;
    --tertiary-dark: #262626;
    --border-color: #404040;
    --text-light: #f5f5f5;
    --text-gray: #d4d4d4;
    --text-muted: #a1a1a1;
    --text-dark: #737373;
    --transition: all 0.3s ease;
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ==================== Buttons ==================== */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-dark);
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: bold;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #e0a000;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(240, 177, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==================== Navigation ==================== */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-light);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/Diamond_pooltable_kuvituskuva_upscayl_4x_ultrasharp.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo-large {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-text {
    text-align: center;
}

.logo-text h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin: 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

/* ==================== Container ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== Section Styles ==================== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.header-underline {
    width: 96px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.header-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ==================== Services Section ==================== */
.services {
    background-color: var(--secondary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--primary-dark);
    border: 0.8px solid var(--tertiary-dark);
    border-radius: 0.375rem;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(240, 177, 0, 0.1);
}

.service-icon {
    background-color: rgba(240, 177, 0, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== Gallery Section ==================== */
.gallery-image-invert {
    filter: invert(1);
}
.gallery {
    background-color: var(--primary-dark);
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    height: 384px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: flex-end;
    height: 100%;
    justify-content: flex-start;
}

.gallery-overlay h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

/* ==================== Contact Section ==================== */
.contact {
    background-color: var(--secondary-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-card {
    background-color: var(--tertiary-dark);
    border: 0.8px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.location-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.location-card h3 {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--text-dark);
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== Contact Form ==================== */
.contact-form {
    background-color: var(--primary-dark);
    border: 0.8px solid var(--tertiary-dark);
    border-radius: 0.375rem;
    padding: 2rem;
}

.contact-form h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-group label svg {
    width: 16px;
    height: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--secondary-dark);
    border: 0.8px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 177, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* ==================== Corporate Section ==================== */
.corporate {
    background-color: var(--secondary-dark);
    padding: 4rem 0;
}

.corporate-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.corporate-content p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.corporate-content strong {
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--primary-dark);
    border-top: 0.8px solid var(--secondary-dark);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-content {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 64px;
    object-fit: contain;
    height: 64px;
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 0.75rem;
}

.footer-logo-text p {
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-light);
}

.footer-logo-text .small {
    font-size: 0.6rem;
    color: var(--primary-color);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background-color: var(--secondary-dark);
    width: 48px;
    height: 48px;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-gray);
}

.social-link:hover {
    background-color: var(--tertiary-dark);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logo-large {
        margin-bottom: 2rem;
    }
    
    .logo-large {
        width: 70%;
        max-width: 600px;
        height: auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .contact-grid {
        gap: 1.5rem;
    }
    
    .contact-form,
    .location-card {
        padding: 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.875rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}
