/* Base styles - CSS Variables, Resets & Fundamentals */

:root {
  /* Color Palette */
  --black: #000;
  --black-2: #0b0b0b;
  --white: #fff;
  --muted: #a8a8a8;
  --ring: #2980B9;
  --brand: #2980B9;
  --brand-dark: #1f5f8b;
  --brand-light: #3498db;
  
  /* Semantic Colors */
  --primary: var(--brand);
  --primary-hover: var(--brand-dark);
  --secondary: #f4f6fb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: var(--ring);
  --accent: #2980B9;
  
  /* Typography */
  --font-family: Inter, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --speed: 260ms;
  --transition-fast: 150ms ease;
  --transition-base: var(--speed) ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 70px;
  --footer-height: auto;
  
  /* Breakpoints (for reference) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

*{box-sizing:border-box; margin:0; padding:0;}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* Sticky footer layout (footer at bottom when content is short) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* The main content grows to fill available space */
main,
.main-content {
  flex: 1 0 auto;
  min-height: 0; /* Allow shrinking */
  overflow: visible; /* Remove any overflow constraints */
}

/* Footer stays at the bottom */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

html,body{margin:0;padding:0;line-height:1;}

body{
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #f4f6fb;
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Remove padding-top for homepage with fullscreen hero */
body:not(.has-fullscreen-hero) {
  padding-top: 70px; /* Space for fixed header */
}

/* Ensure all bodies are properly centered */
body:not(.has-fullscreen-hero) {
  background: #f4f6fb;
}

main,
.main-content {
  flex:1; 
  margin:0 auto; 
  padding:0;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 0; /* Allow shrinking and prevent overflow */
  overflow: visible; /* Ensure content can flow naturally */
  height: auto; /* Let height be determined by content */
}

/* Specific styling for pages with main-content class */
.main-content {
  padding: 0; /* Remove padding that causes scrollbar issues */
}

/* Ensure no gap between main-content and footer */
.main-content + #site-footer,
.main-content ~ #site-footer {
  margin-top: 0;
}

/* Special handling for homepage with contact section */
.has-fullscreen-hero .site-footer {
  margin-top: 0;
  background: #000;
  border-top: none;
}

.frame{width:100%; padding:0 22px}

.container{
  max-width:1200px; 
  margin:0 auto; 
  padding:0 22px;
  width: 100%;
  position: relative;
}

/* ===== Hero Fullscreen Section ===== */
.hero-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile support */
  width: 100%;
  background: #000; /* image provided by <picture> */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 60px;
  overflow: hidden;
  z-index: 1;
  animation: heroZoomOut 1.5s ease-out forwards;
}

/* Gradient overlay */
.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
  pointer-events: none;
}

/* Background image via <picture> to make LCP discoverable */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-bg img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback no longer needed; <picture> handles formats */

@keyframes heroZoomOut {
  0% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-content {
  max-width: 600px;
  text-align: left;
  color: var(--white);
  z-index: 2;
}

@keyframes heroContentSlideIn {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.4;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 1);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.6);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(212, 175, 55, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-fullscreen {
    position: relative;
    justify-content: center;
    text-align: center;
    padding: 0 30px;
    background-attachment: scroll;
  }
  
  .about-section {
    margin-top: 0;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-fullscreen {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* ===== Hero Animation Only ===== */
.hero-content {
  animation: heroContentSlideIn 1.5s ease-out 0.5s both;
}

/* ===== About Section (White) ===== */
.about-section {
  background: #ffffff;
  padding: 100px 0;
  color: #333;
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  opacity: 1;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #2c2c2c;
  margin-bottom: 50px;
  text-align: center;
}

.about-text {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555;
}

.about-text strong {
  color: var(--brand);
  font-weight: 700;
}

/* ===== Services Section - Glass Cards ===== */
.services-section {
  /* Use image-set for modern browsers with WebP, fallback to PNG */
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    image-set(
      url('../images/Hero2_enhanced.webp') type('image/webp') 1x,
      url('../images/Hero2.png') type('image/png') 1x
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  color: #ffffff;
  position: relative;
  z-index: 11;
  opacity: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.services-header p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 760px;
  margin: 0 auto;
}

/* Glass Cards Grid */
.services-grid-glass {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glass Card */
.service-glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  backdrop-filter: saturate(130%) blur(8px);
  -webkit-backdrop-filter: saturate(130%) blur(8px);
  min-height: 270px;
  width: 100%;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
  .service-glass-card {
    background: rgba(30, 30, 30, 0.85);
  }
}

.service-glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(92, 200, 255, 0.35);
}

/* Theme-based icon colors */
.service-glass-card[data-theme="blue"] .service-icon {
  background: linear-gradient(135deg, rgba(92, 200, 255, 0.25), rgba(92, 200, 255, 0.07));
  border-color: rgba(92, 200, 255, 0.4);
}

.service-glass-card[data-theme="green"] .service-icon {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.25), rgba(110, 231, 183, 0.07));
  border-color: rgba(110, 231, 183, 0.4);
}

.service-glass-card[data-theme="orange"] .service-icon {
  background: linear-gradient(135deg, rgba(247, 185, 85, 0.25), rgba(247, 185, 85, 0.07));
  border-color: rgba(247, 185, 85, 0.4);
}

.service-glass-card[data-theme="purple"] .service-icon {
  background: linear-gradient(135deg, rgba(170, 141, 252, 0.25), rgba(170, 141, 252, 0.07));
  border-color: rgba(170, 141, 252, 0.4);
}

.service-glass-card[data-theme="red"] .service-icon {
  background: linear-gradient(135deg, rgba(255, 122, 122, 0.25), rgba(255, 122, 122, 0.07));
  border-color: rgba(255, 122, 122, 0.4);
}

/* Icon wrapper */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-icon i {
  font-size: 26px;
  color: #ffffff;
}

.service-glass-card h3 {
  font-size: 1.12rem;
  margin: 0 0 6px;
  color: #ffffff;
  font-weight: 600;
}

.service-glass-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  min-height: 60px;
}

/* Button */
.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cfe9ff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 200, 255, 0.6);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .services-section {
    padding: 60px 0;
    background-attachment: scroll;
  }
  
  .services-header {
    margin-bottom: 40px;
  }
  
  .services-grid-glass {
    gap: 18px;
    padding: 0 16px;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-glass-card {
    padding: 24px 18px;
    min-height: 250px;
  }
  
  .about-section {
    padding: 50px 0;
    margin-top: 0 !important;
  }
  
  .about-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services-grid-glass {
    grid-template-columns: 1fr;
  }
}

/* ===== Articles Preview Section ===== */
.articles-preview-section {
  background: #ffffff;
  padding: 100px 0;
  color: #333;
  position: relative;
  z-index: 12;
  opacity: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #2c2c2c;
  margin-bottom: 20px;
}

.section-header p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.articles-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.article-preview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.article-category {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category span {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.cat-blue {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.cat-green {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.cat-purple {
  background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.cat-orange {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.article-preview-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-preview-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.read-more-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  align-self: flex-end;
  margin-top: auto;
}

.read-more-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ===== Applications Preview Section ===== */
.apps-preview-section {
  background: #f8f9fa;
  padding: 100px 0;
  color: #333;
  position: relative;
  z-index: 13;
  opacity: 1;
}

.apps-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.app-preview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.app-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 229, 255, 0.2);
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 25px;
}

.app-preview-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 15px;
}

.app-preview-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
}

.app-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.app-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ===== Contact Hero Section ===== */
.contact-hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/Hero3.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 30px 0 20px 0;
  color: #ffffff;
  text-align: center;
  margin: 0 0 0 0;
  border: none;
  position: relative;
  z-index: 14;
  opacity: 1;
  display: block;
  line-height: 1;
}

.contact-content h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.contact-info-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 15px 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-info-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-info-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}



.section-cta {
  text-align: center;
  margin-top: 40px;
}

.social-links-section {
  margin: 30px 0 0 0;
  padding: 20px 0 40px 0;
  text-align: center;
  position: relative;
  z-index: 15;
}

.social-links-section p {
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.social-links-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.social-link-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-link-item.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link-item.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link-item.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
}

/* Responsive για preview sections */
@media (max-width: 768px) {
  .articles-preview-section,
  .apps-preview-section {
    padding: 60px 0;
  }
  
  .contact-hero-section {
    padding: 20px 0 15px 0;
  }
  
  .contact-hero-section {
    background-attachment: scroll;
  }
  
  .articles-preview-grid,
  .apps-preview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .social-links-grid {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .social-link-item {
    width: 200px;
    justify-content: center;
  }
  

}
