/* ==========================================================================
   Grand Enerjim - Koyu & Görkemli VIP Tema (v4)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --primary-gold: #e5c158;
    --primary-gold-bright: #ffd700;
    --primary-gold-dark: #b5952f;
    --gold-gradient: linear-gradient(135deg, #f6e297 0%, #d4af37 50%, #9e7912 100%);
    --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #e5c158 50%, #c49c28 100%);
    
    --primary-red: #9e0e31; /* Burgundy / Bordo */
    --accent-red-gradient: linear-gradient(135deg, #800020 0%, #4a0013 100%);
    
    --bg-dark: #0a0705;          /* Main Obsidian / Dark Chocolate */
    --bg-dark-secondary: #140e0a;/* Slightly lighter dark for section contrast */
    --bg-card: rgba(22, 15, 11, 0.85); /* Glassmorphic card surface */
    --bg-card-hover: rgba(32, 22, 16, 0.95);
    
    --text-light: #ffffff;
    --text-cream: #f5f0eb;
    --text-gold: #e5c158;
    --text-gray: #bdae9e;
    
    --border-gold: rgba(229, 193, 88, 0.25);
    --border-gold-bright: rgba(229, 193, 88, 0.7);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
    --shadow-gold-lg: 0 0 40px rgba(212, 175, 55, 0.4);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

ul {
    list-style: none;
}

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

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

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

.section-subtitle {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

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

/* --- Buttons --- */
.btn-primary, .btn-gold {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold-gradient);
    color: #0a0705;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after, .btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.75s ease;
}

.btn-primary:hover::after, .btn-gold:hover::after {
    transform: rotate(30deg) translateY(100%);
}

.btn-primary:hover, .btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
    color: #0a0705;
}

/* --- Header / Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 7, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-gold);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(10, 7, 5, 0.98);
    border-bottom-color: var(--primary-gold);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9), var(--shadow-gold);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-cream);
    -webkit-text-fill-color: var(--text-cream);
    letter-spacing: 5px;
    font-family: var(--font-body);
    font-weight: 300;
}

header.scrolled .logo-text {
    font-size: 1.4rem;
}

header.scrolled .logo-text span {
    font-size: 0.75rem;
}

.main-nav ul {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--text-cream);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(229, 193, 88, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.6rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/grand-enerjim (2).jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 7, 5, 0.75) 0%,
        rgba(10, 7, 5, 0.85) 60%,
        rgba(10, 7, 5, 1) 100%
    );
    z-index: 1;
}

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

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 25px;
    color: var(--primary-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 28px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.2);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 45px;
    color: var(--text-cream);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* --- Page Header (For Subpages) --- */
.page-header {
    height: 42vh;
    min-height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/grand-enerjim (1).jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    margin-bottom: 60px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 7, 5, 0.8) 0%,
        rgba(10, 7, 5, 0.95) 100%
    );
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.page-header h1 {
    font-size: 3.6rem;
    color: var(--primary-gold);
    margin-bottom: 12px;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.breadcrumb {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb a {
    color: var(--primary-gold);
}

.breadcrumb a:hover {
    color: var(--text-light);
}

/* --- About Section --- */
.about {
    background-color: var(--bg-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--primary-gold);
    line-height: 1.25;
}

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

.about-text p strong {
    color: var(--text-cream);
}

.features {
    display: flex;
    gap: 35px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    transition: var(--transition);
    flex: 1;
}

.feature-item:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.feature-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-cream);
    text-align: center;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border: 1px solid var(--border-gold);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.06);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--accent-red-gradient);
    color: var(--primary-gold);
    padding: 25px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(0,0,0,0.8), var(--shadow-gold);
}

.experience-badge .years {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    color: var(--text-cream);
}

/* --- Services Section --- */
.bg-light {
    background-color: var(--bg-dark-secondary);
}

.services .section-header {
    margin-bottom: 50px;
}

.services .section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-gold);
}

.services .section-header p {
    color: var(--text-gray);
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 45px 32px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--border-gold);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--accent-red-gradient);
    z-index: -1;
    transition: var(--transition);
    opacity: 0.9;
}

.service-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3.2rem;
    color: var(--primary-gold);
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.55rem;
    margin-bottom: 15px;
    transition: var(--transition);
    color: var(--primary-gold);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
    line-height: 1.65;
}

.service-card:hover .service-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.service-card:hover h3 {
    color: var(--primary-gold-bright);
}

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

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

.gallery .section-header {
    margin-bottom: 50px;
}

.gallery .section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-gold);
}

.gallery .section-header p {
    color: var(--text-gray);
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-gold);
    background-color: var(--bg-dark-secondary);
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 7, 5, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--primary-gold);
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.gallery-item:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold-lg);
    transform: translateY(-5px);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 7, 5, 0.96);
    backdrop-filter: blur(15px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation-name: zoom;
    animation-duration: 0.3s;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
    border: 2px solid var(--primary-gold);
}

@keyframes zoom {
    from {transform:scale(0.85); opacity:0;} 
    to {transform:scale(1); opacity:1;}
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-cream);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-gold);
}

/* --- Contact Section --- */
.contact {
    background-color: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(10px);
}

.contact-wrapper.contact-single {
    grid-template-columns: 1fr;
    max-width: 750px;
    margin: 0 auto;
}

.contact-info {
    padding: 55px;
}

.contact-info h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 30px;
}

.info-list .icon {
    width: 55px;
    height: 55px;
    background: rgba(229, 193, 88, 0.12);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid var(--border-gold);
}

.info-list .details strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.info-list .details a,
.info-list .details p {
    color: var(--text-cream);
    font-size: 1.05rem;
    line-height: 1.6;
}

.info-list .details a:hover {
    color: var(--primary-gold-bright);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- Footer --- */
.footer {
    background-color: #050302;
    color: var(--text-cream);
    padding-top: 85px;
    border-top: 3px solid var(--primary-gold);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.9);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--text-gray);
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
}

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

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact p i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.footer-bottom {
    background-color: #020101;
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid rgba(229, 193, 88, 0.1);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    width: 62px;
    height: 62px;
    bottom: 35px;
    right: 35px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.12);
    color: #fff;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-container, .contact-wrapper, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        width: 130px;
        height: 130px;
        padding: 20px;
        left: 10px;
        bottom: 10px;
    }
    
    .experience-badge .years { font-size: 1.5rem; }
    .experience-badge .text { font-size: 0.7rem; }
    
    .hero h1 { font-size: 3.2rem; }
    .page-header h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background-color: var(--bg-dark-secondary);
        border-left: 1px solid var(--border-gold);
        flex-direction: column;
        padding-top: 90px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 25px rgba(0,0,0,0.9);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }
    
    .header-contact {
        display: none;
    }
    
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.05rem; }
    
    .about-text h2, .services .section-header h2, .gallery .section-header h2, .contact-info h2 {
        font-size: 2.1rem;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }

    .section-padding { padding: 65px 0; }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 25px;
        right: 25px;
        font-size: 26px;
    }
}
