/* ================================================
   HELIOS GROUP - PRODUCTION STYLESHEET
   Optimized for Performance & User Experience
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');

/* ====== CSS VARIABLES FOR CONSISTENCY ====== */
:root {
    --primary-gold: #d4af37;
    --light-gold: #ffd700;
    --dark-gold: #b8860b;
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a2e;
    --bg-light: #16213e;
    --text-light: #e0e0e0;
    --text-medium: #b0b0b0;
    --text-dark: #808080;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ====== RESET & BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    min-height: 100vh;
    padding-top: 120px;
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== GREEK DECORATIVE ELEMENTS ====== */
.greek-border {
    background: linear-gradient(90deg, 
        var(--primary-gold) 0px, var(--primary-gold) 15px, 
        transparent 15px, transparent 30px,
        var(--primary-gold) 30px, var(--primary-gold) 45px,
        transparent 45px, transparent 60px
    );
    background-size: 60px 4px;
    height: 4px;
    width: 100%;
    opacity: 0.8;
}

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 4rem 0;
    position: relative;
}

.section-divider::before {
    content: '◆';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    font-size: 1.2rem;
    background: var(--bg-medium);
    padding: 0 1rem;
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 70%),
        linear-gradient(to bottom, var(--bg-dark), #1a1a1a);
    overflow: hidden;
    padding: 0 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bg.webp') center/cover no-repeat;
    opacity: 0.07;
    animation: greekPattern 60s linear infinite;
    z-index: 0;
    filter: grayscale(100%) contrast(120%);
    will-change: transform;
}

@keyframes greekPattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.hero-content {
    max-width: 1200px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--primary-gold) 50%, var(--dark-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: titleGlow 6s ease-in-out infinite alternate;
    will-change: filter;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-medium);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ====== CTA BUTTONS ====== */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
    color: var(--bg-medium);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* ====== ABOUT SECTION ====== */
.about {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    will-change: transform;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.stat-label {
    color: var(--text-medium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== SERVICES SECTION ====== */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(180deg);
}

.service-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.service-link:hover {
    border-bottom-color: var(--primary-gold);
}

/* ====== WHY CHOOSE SECTION ====== */
.why-choose {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--bg-medium);
}

.feature-title {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ====== PORTFOLIO SECTION ====== */
.portfolio {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: transform;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    filter: brightness(0.9) contrast(1.05);
    display: block;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
    border-color: var(--primary-gold);
    filter: brightness(1.05) contrast(1.1);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.portfolio-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--text-medium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-item {
    padding: 3rem 2rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin: 2rem 0;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.testimonial-position {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ====== FINAL CTA SECTION ====== */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--primary-gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    transition: all 0.4s ease;
}

.cta-secondary:hover {
    background: var(--primary-gold);
    color: var(--bg-medium);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ====== SCROLL TO TOP BUTTON ====== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    border: none;
    border-radius: 50%;
    color: var(--bg-medium);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ====== ANIMATION SYSTEM ====== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    body { 
        padding-top: 80px; 
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Reduce animation complexity on mobile */
    .hero::before {
        animation: none;
    }
    
    .hero-title {
        animation: none;
        filter: none;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-divider {
        margin: 3rem 0;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    .navbar,
    .scroll-top,
    .cta-button,
    .cta-buttons,
    .mobile-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        padding-top: 0;
    }
}