/* 
  Yatgem Premium CSS 
  Theme: Dark & Fiery (Maritime Industrial Luxury)
*/

:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --bg-lighter: #1e1e1e;
    
    /* Fiery Accents */
    --accent-primary: #ff5722;
    --accent-secondary: #ff9800;
    --accent-glow: rgba(255, 87, 34, 0.3);
    
    /* Text */
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    
    /* Fonts */
    --font-heading: 'Cinzel', serif; /* Elegant, classic, strong */
    --font-body: 'Inter', sans-serif; /* Clean, modern, readable */
    
    /* Layout */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

/* Gradients & Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

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

.btn-secondary:hover {
    background: var(--accent-glow);
    border-color: var(--accent-secondary);
}

.btn-text {
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--accent-secondary);
    gap: 12px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,87,34,0.1);
}

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

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1;
}

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

.logo-symbol {
    max-height: 65px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 87, 34, 0.4));
    transition: var(--transition);
}

.logo-wrapper:hover .logo-symbol {
    filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.8));
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-socials {
    display: flex;
    gap: 15px;
}

.nav-socials a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

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

.btn-nav {
    border: 1px solid var(--accent-primary);
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background: var(--accent-primary);
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-dark); /* Fallback */
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), var(--bg-dark));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 1.1s;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2);
    transition: var(--transition);
    background-color: var(--bg-lighter); /* Fallback */
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1.1);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    pointer-events: none;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
    border: 1px solid rgba(255,87,34,0.3);
    padding: 30px;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-heading {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Services */
.services {
    background-color: var(--bg-card);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,87,34,0.2), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-lighter);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-top: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    background: linear-gradient(to bottom, #222, var(--bg-lighter));
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255,87,34,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* Products */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-color: rgba(255,87,34,0.3);
}

.product-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-lighter);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

.product-card:hover .product-img {
    transform: scale(1.1);
    filter: brightness(1);
}

.product-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(5,5,5,0.8);
    color: var(--accent-secondary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255,152,0,0.3);
    backdrop-filter: blur(5px);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery {
    background: var(--bg-card);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-lighter);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(60%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Lightbox Modal */
.gallery-item {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    z-index: 2000;
    padding: 50px 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: opacity 0.15s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-primary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 20px; top: 10px; }
}

/* Contact */
.contact-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-header p {
    color: var(--text-muted);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: rgba(255,87,34,0.1);
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-item p a {
    color: var(--text-muted);
    transition: var(--transition);
}

.info-item p a:hover {
    color: var(--accent-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

@media (max-width: 768px) {
    .lang-switcher {
        border-left: none;
        padding-left: 0;
        margin-right: 10px;
    }
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-lighter);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255,87,34,0.2);
    background: rgba(255,255,255,0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.form-status {
    margin-top: 10px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
    padding: 10px;
    border-radius: 4px;
}

.form-status.success {
    display: block;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    display: block;
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Footer */
footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,87,34,0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-text {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.logo-symbol-footer {
    max-height: 90px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 87, 34, 0.4));
}

.footer-logo p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--accent-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px; height: 40px;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { height: 400px; }
    .experience-badge { bottom: 20px; right: 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    .nav-right { gap: 15px; }
    .nav-socials { display: none; }
    .hamburger { display: block; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        border-bottom: 1px solid rgba(255,87,34,0.2);
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-links h3::after, .footer-social h3::after { left: 50%; transform: translateX(-50%); }
    .social-icons { justify-content: center; }
    .footer-logo p { margin: 0 auto; }
}

/* Embers/Sparks Animation */
.spark {
    position: absolute;
    bottom: -10px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    filter: blur(1px);
    box-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-primary);
}

@keyframes floatUp {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}
