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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

/* Tailwind Color Classes */
.bg-alpha-dark {
    background-color: #1a202c;
}

.bg-alpha-light {
    background-color: #f8fafc;
}

.bg-alpha-blue {
    background-color: #667eea;
}

.bg-alpha-accent {
    background-color: #667eea;
}

.text-alpha-dark {
    color: #1a202c;
}

.text-alpha-blue {
    color: #667eea;
}

.text-alpha-accent {
    color: #667eea;
}

.from-alpha-blue {
    --tw-gradient-from: #667eea;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-alpha-accent {
    --tw-gradient-to: #764ba2;
}

.from-alpha-accent {
    --tw-gradient-from: #764ba2;
}

.to-blue-500 {
    --tw-gradient-to: #3b82f6;
}

/* MODERN PROFESSIONAL NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 10px;
    position: relative;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6) !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 15px 20px;
    }

    .logo img {
        height: 42px !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(26, 32, 44, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.4s ease;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        padding: 30px 0;
        gap: 5px;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        width: 90%;
        margin: 0 auto;
        font-size: 14px;
    }

    .btn-primary {
        margin-top: 20px !important;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Compact main header height on mobile */
    #main-header .h-20 {
        height: 3.5rem !important;
    }

    #main-header img {
        max-height: 32px !important;
    }

    /* Κάνουμε το mobile menu overlay ώστε όταν είναι κλειστό να μην σπρώχνει τη σελίδα προς τα κάτω */
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* Footer Styles */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

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

/* Utility Classes */
/* Κρατάμε το padding-top μόνο σε σελίδες που ΔΕΝ είναι η αρχική (home-mobile) */
body:not(.home-mobile) {
    padding-top: 80px;
}

/* Tailwind Classes Support */
.h-11 {
    height: 2.75rem;
}

.h-14 {
    height: 3.5rem;
}

.h-20 {
    height: 5rem;
}

.z-40 {
    z-index: 40;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.text-alpha-blue {
    color: #667eea;
}

.from-alpha-blue {
    --tw-gradient-from: #667eea;
}

.to-alpha-accent {
    --tw-gradient-to: #764ba2;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Language Switcher */
#lang-el.active,
#lang-en.active {
    background-color: #667eea;
    color: white;
}

#lang-el:not(.active),
#lang-en:not(.active) {
    background-color: transparent;
    color: #374151;
}

#lang-el:not(.active):hover,
#lang-en:not(.active):hover {
    background-color: #f3f4f6;
}

.border-gray-300 {
    border-color: #d1d5db;
}

@media (max-width: 768px) {
    /* Mobile layout ONLY for homepage (home-mobile) */
    body.home-mobile {
        padding-top: 0 !important; /* να μην προσθέτει κενό πάνω από το hero */
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%) !important;
    }

    /* Λίγο μικρότερο κενό και στις υπόλοιπες σελίδες στο mobile */
    body:not(.home-mobile) {
        padding-top: 56px; /* περίπου όσο το ύψος του header */
    }

    /* Στο mobile η αρχική δεν χρειάζεται fixed header */
    body.home-mobile #main-header {
        position: relative !important;
    }

    /* Hero κανονικά ακριβώς κάτω από το header, χωρίς extra κενό */
    body.home-mobile section#home {
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%) !important;
        min-height: auto !important;
        display: block !important;      /* καταργούμε το flex για να φύγει το κάθετο centering */
        margin-top: 0 !important;
        padding-top: 12px !important;  /* μικρή αναπνοή κάτω από το logo */
        padding-bottom: 40px !important;
    }

    /* Service page heroes (hosting, vps, radio, tv, dedicated, packages) */
    section.pt-32.pb-12.bg-gradient-to-br {
        padding-top: 5rem !important;   /* μικρότερο από το default pt-32 (8rem) */
        padding-bottom: 2.75rem !important;
    }
    
    /* Responsive Typography */
    body.home-mobile section#home h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    body.home-mobile section#home p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix Stats Grid for Mobile */
    body.home-mobile section#home .grid {
        gap: 1rem !important;
        font-size: 0.875rem !important;
    }
    
    body.home-mobile section#home .grid > div {
        padding: 0.5rem !important;
    }
    
    body.home-mobile section#home .grid .text-3xl {
        font-size: 1.5rem !important;
    }
    
    /* Compact buttons on mobile */
    body.home-mobile section#home .flex.flex-col {
        gap: 0.75rem !important;
    }
    
    body.home-mobile section#home a {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
}
