/* ====================================================================
   DIGITAL GUESTBOOK - LANDING PAGE STYLESHEET
   v3.0 - Fresh, Modern & Vibrant Tech Vibe
====================================================================

   TABLE OF CONTENTS
   -----------------------------------------------------------------
   1.  Variables & Theme Setup
   2.  Reset & Global Typography
   3.  Layout Utilities & Components (Buttons, Section Headers)
   4.  Header & Navigation
   5.  Hero Section & The 3D Phone Mockup (KEY SECTION)
   6.  The Problem Section
   7.  Features Section (Cards)
   8.  Social Proof / Benefits Section
   9.  Pricing Section (Modern Floating Card)
   10. FAQ Section (Clean Layout)
   11. Footer
   12. Contact Form
   13. Responsive Adjustments (Media Queries)
   14. Hamburger Menu
*/

/* ====================================================================
   1. Variables & Theme Setup
==================================================================== 
*/
:root {
    /* Vibrant Tech Palette */
    --color-primary: #2563EB;      /* Vibrant Royal Blue */
    --color-primary-dark: #1D4ED8; /* Darker Blue for hover */
    --color-secondary: #10B981;    /* Fresh Mint Green (Success/Action) */
    --color-purple: #8B5CF6;       /* Modern Purple accent */
    
    /* Neutrals & Backgrounds */
    --color-text-heading: #111827; /* Almost Black */
    --color-text-body: #4B5563;    /* Cool Gray */
    --bg-body: #FFFFFF;
    --bg-light-tint: #F3F8FF;      /* Very light blue tint bg */
    --bg-accent-tint: #ECFDF5;     /* Light mint tint */

    /* Spacing & Sizing */
    --container-width: 1200px;
    --section-pad-lg: 6rem;
    --section-pad-sm: 4rem;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Shadows (Vibrant & Clean) */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(37, 99, 235, 0.15); /* Blue tinted shadow */
    --shadow-pop: 0 10px 20px -3px rgba(37, 99, 235, 0.3);   /* Stronger pop shadow */
}

/* ====================================================================
   2. Reset & Global Typography
==================================================================== 
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-body);
    line-height: 1.6;
    background-color: var(--bg-body);
    overflow-x: hidden; /* Prevent horizontal scroll from abstract shapes */
}

h1, h2, h3, h4 {
    color: var(--color-text-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ====================================================================
   3. Layout Utilities & Components
==================================================================== 
*/
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.section-pad { padding: var(--section-pad-lg) 0; }
.section-pad-sm { padding: var(--section-pad-sm) 0; }

/* Headers */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-title { font-size: 2.25rem; position: relative; display: inline-block; }
/* Creative underline effect */
.section-title::after {
    content: ''; display: block; width: 50%; height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    margin: 0.5rem auto 0; border-radius: 2px; opacity: 0.7;
}
.section-desc { font-size: 1.15rem; color: var(--color-text-body); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.75rem; border-radius: 50px; /* Pill shape */
    font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; display: flex; }

.btn-primary {
    background: var(--color-primary); color: white; border: 2px solid transparent;
}
.btn-primary:hover {
    background: var(--color-primary-dark); transform: translateY(-3px);
}

.btn-outline {
    background: transparent; color: var(--color-text-heading);
    border: 2px solid #E5E7EB;
}
.btn-outline:hover {
    border-color: var(--color-text-heading); background: var(--color-text-heading); color: white;
}

.btn-shadow-pop { box-shadow: var(--shadow-pop); }
.icon-link i { margin-right: 8px; font-size: 1.2rem; }

/* ====================================================================
   4. Header & Navigation
==================================================================== 
*/
.main-header {
    padding: 1.25rem 0; position: absolute; width: 100%; top: 0; z-index: 100;
    background: transparent; /* Transparent on hero */
}
.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.35rem; font-weight: 800; color: var(--color-text-heading); display: flex; align-items: center; }
.logo-mark {
    background: var(--color-primary); color: white; padding: 0.2rem 0.5rem;
    border-radius: 8px; margin-right: 0.5rem; transform: rotate(-5deg);
}

.main-nav ul { display: none; /* Mobile hidden */ }

/* ====================================================================
   5. Hero Section & The 3D Phone Mockup (KEY SECTION)
==================================================================== 
*/
.hero {
    padding: 8rem 0 5rem; position: relative; overflow: hidden;
    background-color: var(--bg-light-tint);
}

/* Abstract background blob shape */
.hero-bg-shape {
    position: absolute; top: -10%; right: -10%; width: 60%; height: 80%;
    background: linear-gradient(135deg, #E0E7FF 0%, #F3F8FF 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0; opacity: 0.6; filter: blur(60px);
}

.hero-grid { position: relative; z-index: 2; }
.hero-content { text-align: center; margin-bottom: 3rem; }

.hero-badge {
    display: inline-block; background: #DBEAFE; color: var(--color-primary);
    font-size: 0.9rem; font-weight: 700; padding: 0.4rem 1rem;
    border-radius: 30px; margin-bottom: 1.5rem;
}

.hero-subtitle { font-size: 1.25rem; max-width: 550px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* --- 3D PHONE MOCKUP STYLES START --- */
.hero-visual {
    display: flex; justify-content: center;
    perspective: 1000px; /* Essential for 3D effect */
}

.phone-mockup-3d {
    width: 280px; height: 560px; position: relative;
    /* The 3D rotation tilt */
    transform: rotateY(-12deg) rotateX(8deg);
    transform-style: preserve-3d; transition: transform 0.5s ease;
}
/* Subtle hover effect to straighten it slightly */
.phone-mockup-3d:hover { transform: rotateY(-8deg) rotateX(4deg); }

/* The Phone Frame */
.phone-frame {
    width: 100%; height: 100%;
    background: #121212; /* Black titanium look */
    border-radius: 40px; padding: 12px;
    /* Deep, realistic shadow layers */
    box-shadow: 
        0 0 0 2px #3a3a3a inset, /* Inner rim */
        25px 30px 50px -10px rgba(0,0,0,0.4), /* Deep shadow */
        -5px -5px 15px rgba(255,255,255,0.1) inset; /* Top left light reflection */
    position: relative; z-index: 2;
}

/* The Dynamic Island / Notch */
.phone-notch {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 26px; background: #000; border-radius: 20px; z-index: 10;
}

/* Side Buttons (created outside the frame but attached via 3D positioning) */
.phone-button { position: absolute; background: #2a2a2a; border-radius: 4px; }
.phone-button-left {
    width: 4px; height: 50px; left: -4px; top: 100px;
    transform: translateZ(-2px); /* Push back slightly */
}
.phone-button-right-1 {
    width: 4px; height: 80px; right: -4px; top: 100px; transform: translateZ(-2px);
}
.phone-button-right-2 {
    width: 4px; height: 50px; right: -4px; top: 200px; transform: translateZ(-2px);
}

/* The Screen Itself */
.phone-screen {
    background: #FFFFFF; width: 100%; height: 100%; border-radius: 30px;
    overflow: hidden; position: relative; display: flex; flex-direction: column;
}

/* Internal Screen Content Styling */
.screen-status-bar {
    display: flex; justify-content: space-between; padding: 12px 25px 0;
    font-size: 0.8rem; font-weight: 600; color: #000;
}
.screen-hero-image {
    height: 180px; background-size: cover; background-position: center;
    position: relative; margin: 15px; border-radius: 20px; overflow: hidden;
}
.screen-hero-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: white;
}
.screen-hero-overlay h3 { color: white; font-size: 1.1rem; margin: 0; }

.screen-grid {
    padding: 0 15px 15px; display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; flex-grow: 1; align-content: start;
}
.screen-icon-btn {
    background: #F3F4F6; padding: 1rem; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.9rem; font-weight: 600; color: var(--color-text-heading);
    transition: 0.2s;
}
.screen-icon-btn i { font-size: 1.4rem; color: var(--color-primary); }
/* Highlight one button as active */
.screen-icon-btn.active { background: var(--color-primary); color: white; }
.screen-icon-btn.active i { color: white; }
/* --- 3D PHONE MOCKUP STYLES END --- */

/* ====================================================================
   6. The Problem Section
==================================================================== 
*/
.problem {
    background: white; padding: var(--section-pad-sm) 0;
    border-bottom: 1px solid #E5E7EB;
}
.icon-center-layout { text-align: center; max-width: 750px; }

.problem-icon-circle {
    width: 60px; height: 60px; background: #FEE2E2; color: #EF4444;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 1.5rem;
}
/* Simple pulse effect */
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ====================================================================
   7. Features Section
==================================================================== 
*/
.features { background: var(--bg-body); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.feature-card {
    padding: 2.5rem; border-radius: var(--radius-lg); background: white;
    border: 1px solid #F1F3F5; transition: all 0.3s ease; text-align: center;
}
.pop-hover h3{ margin-bottom: 10px;}

.pop-hover:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-card); border-color: transparent;
}

.f-icon {
    width: 70px; height: 70px; border-radius: 18px; display: flex;
    align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.5rem;
}
/* Different colors for each icon */
.icon-blue { background: #DBEAFE; color: var(--color-primary); }
.icon-green { background: #D1FAE5; color: var(--color-secondary); }
.icon-purple { background: #EDE9FE; color: var(--color-purple); }

/* ====================================================================
   8. Social Proof / Benefits Section
==================================================================== 
*/
.benefits { background: var(--bg-accent-tint); }

.benefits-box {
    background: white; border-radius: var(--radius-lg); padding: 3rem;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2rem;
}
.benefit-item { text-align: center; flex: 1; }
.benefit-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-value {
    display: block; font-size: 3rem; font-weight: 800; line-height: 1;
    margin-bottom: 0.5rem; color: var(--color-text-heading);
}
.down-arrow { color: var(--color-primary); }
.star-rating { color: #FBBF24; /* Gold/Yellow */ }
.eco-icon { color: var(--color-secondary); }

.benefit-divider {
    height: 1px; width: 100%; background: #E5E7EB;
    display: block; /* Hidden on desktop later */
}

/* ====================================================================
   9. Pricing Section
==================================================================== 
*/
.pricing { background: var(--bg-light-tint); }

.pricing-card-modern {
    background: white; max-width: 480px; margin: 0 auto;
    border-radius: var(--radius-lg); position: relative; overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}
/* Makes the card look like it's floating high */
.floating-card { box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.25); }

.pricing-ribbon {
    position: absolute; top: 20px; right: -35px; transform: rotate(45deg);
    background: var(--color-secondary); color: white; font-size: 0.8rem;
    font-weight: 700; padding: 8px 40px; text-transform: uppercase;
}

.pricing-content { padding: 3.5rem 2.5rem; text-align: center; }
.pkg-name { font-size: 1.5rem; margin-bottom: 1.5rem; }

.pkg-price {
    font-size: 3.5rem; font-weight: 900; color: var(--color-text-heading);
    line-height: 1; display: flex; align-items: flex-start; justify-content: center;
}
.currency { font-size: 1.5rem; margin-top: 8px; margin-right: 4px; }
.period { font-size: 1rem; font-weight: 600; color: var(--color-text-body); align-self: flex-end; margin-bottom: 8px; margin-left: 8px; }
.pkg-subtitle { color: var(--color-primary); font-weight: 600; margin-bottom: 2rem; }

.pkg-features { text-align: left; margin-bottom: 2.5rem; display: inline-block; }
.pkg-features li { margin-bottom: 1rem; display: flex; align-items: center; }
.pkg-features i { color: var(--color-secondary); margin-right: 12px; font-size: 1.1rem; }

/* ====================================================================
   10. FAQ Section
==================================================================== 
*/
.faq { background: white; }

.table-layout {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.faq-header { text-align: center; }
.faq-header h2 { font-size: 2.5rem; }

.faq-list-clean details {
    padding: 1.5rem 0; border-bottom: 1px solid #E5E7EB;
}
.faq-list-clean summary {
    font-weight: 700; font-size: 1.15rem; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
/* Custom arrow animation */
.faq-list-clean summary::after {
    content: '\f078'; /* Font Awesome chevron down */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 0.9rem; color: var(--color-primary); transition: transform 0.3s ease;
}
.faq-list-clean details[open] summary::after { transform: rotate(180deg); }

.faq-list-clean p { margin-top: 1rem; margin-bottom: 0; color: var(--color-text-body); }

/* ====================================================================
   11. Footer
==================================================================== 
*/
.main-footer { background: #0B1120; /* Very dark blue/black */ color: #9CA3AF; padding: 5rem 0 2rem; }
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 3rem; text-align: center;
}
.footer-about h4 { color: white; font-size: 1.5rem; margin-bottom: 1rem; }
.dot-blue { color: var(--color-primary); }

.footer-contact-info h5 { color: white; margin-bottom: 1.2rem; }
.footer-contact-info p { margin-bottom: 0.8rem; }
.footer-contact-info i { color: var(--color-primary); margin-right: 10px; }

.footer-social-links { display: flex; gap: 1rem; justify-content: center; }
.footer-social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; color: white; transition: 0.3s;
}
.footer-social-links a:hover { background: var(--color-primary); transform: translateY(-3px); }

.footer-copy {
    margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 0.9rem;
}
/* ====================================================================
   12. Contact Form Card 
==================================================================== 
*/
.contact-section {
    background: linear-gradient(to bottom, var(--bg-light-tint) 0%, white 100%);
    position: relative;
}

.contact-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Background blob styling behind the card for depth */
.contact-card-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--color-primary);
    border-radius: 30px;
    opacity: 0.05;
    z-index: -1;
    transform: rotate(-2deg);
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(37, 99, 235, 0.15); /* Subtle blue border */
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h3 {
    font-size: 1.8rem;
    color: var(--color-text-heading);
    margin-bottom: 0.5rem;
}

.contact-header h3 i {
    color: var(--color-primary);
    margin-right: 8px;
}

.contact-header p {
    color: var(--color-text-body);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Fields Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-heading);
    font-size: 0.95rem;
}

.required { color: #EF4444; }
.optional { color: #9CA3AF; font-weight: 400; font-size: 0.85rem; margin-left: 5px; }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.contact-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* Extra left padding for icon */
    background-color: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-heading);
    transition: all 0.3s ease;
}

/* Focus State - The "Tech" Glow */
.contact-form input:focus {
    outline: none;
    background-color: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Blue ring */
}

.contact-form input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

/* Note under button */
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 1rem;
    margin-bottom: 0;
}

.form-note i { color: var(--color-secondary); margin-right: 5px; }

/* Responsive adjustments for the form */
@media (max-width: 768px) {
    .contact-card {
        padding: 2rem 1.5rem;
    }
}
/* ====================================================================
   13. Responsive Adjustments
==================================================================== 
*/

/* Tablet (768px+) */
@media (min-width: 768px) {
    .main-nav ul { display: flex; gap: 1.5rem; align-items: center; }
    .main-nav a { font-weight: 600; font-size: 0.95rem; }
    .main-nav a:hover { color: var(--color-primary); }

    .hero { padding: 10rem 0 6rem; text-align: left; }
    .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4rem; }
    .hero-content { margin-bottom: 0; }
    .hero-subtitle { margin-left: 0; }
    .hero-buttons { flex-direction: row; }

    .features-grid { grid-template-columns: repeat(3, 1fr); }

    .benefits-box { flex-direction: row; padding: 4rem; }
    .benefit-divider { height: auto; width: 1px; margin: 0 2rem; }

    .table-layout { grid-template-columns: 1fr 2fr; align-items: start; }
    .faq-header { text-align: left; position: sticky; top: 100px; }
    .faq-list-clean details:first-child { padding-top: 0; }
    
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; text-align: left; }
    .footer-social-links { justify-content: flex-start; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .hero-bg-shape { right: -5%; width: 50%; }
    /* Make phone slightly bigger on large screens */
    .phone-mockup-3d { width: 300px; height: 600px; }
    
    /* Adjust side buttons positions for new height */
    .phone-button-left { top: 110px; }
    .phone-button-right-1 { top: 110px; }
    .phone-button-right-2 { top: 220px; }
    
    .screen-hero-image { height: 200px; }
}

/* ====================================================================
  14.  MOBILE MENU & HAMBURGER STYLES
==================================================================== 
*/

/* 1. Hamburger Button Styles */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001; /* Πάνω από το μενού */
    padding: 0;
    margin-left: auto;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-heading);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* 2. Mobile Navigation Overlay (Default Hidden State) */
@media (max-width: 768px) {
    .main-nav ul.nav-links {
        display: flex; /* Override previous display:none if exists */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: white; /* Clean white background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%); /* Κρυμμένο δεξιά */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        padding-bottom: 2rem;
    }

    /* Style links inside mobile menu */
    .main-nav ul.nav-links li a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-text-heading);
    }
    
    /* Contact button specific style in mobile */
    .main-nav ul.nav-links li .btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        margin-top: 1rem;
        color: white;
    }

    /* 3. Active State (Menu Open) */
    body.menu-open {
        overflow: hidden; /* Απαγορεύει το scroll πίσω από το μενού */
    }

    .main-nav ul.nav-links.active {
        transform: translateX(0); /* Εμφάνιση */
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    /* Hamburger Animation to 'X' */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-primary); /* Γίνεται μπλε όταν ανοίξει */
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-primary);
    }
}

/* Desktop Fix (Reset styles for larger screens) */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none; /* Κρύψε το κουμπί σε PC */
    }
    
    /* Επαναφορά του nav σε οριζόντια διάταξη */
    .main-nav ul.nav-links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        transform: none;
        flex-direction: row;
        padding-bottom: 0;
    }
}