/* ===============================================
   GLOBENET.DEV - Modern Professional Styling
   Inspired by: Blue/Aqua gradient
   =============================================== */

:root {
  --primary: #0052D4;
  --secondary: #4364F7;
  --accent: #6FB1FC;
  --light: #f9f9f9;
  --dark: #0d1117;
  --text: #1a1a1a;
  --text-light: #f0f0f0;
  --glass: rgba(255, 255, 255, 0.05);
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 20px;
  --transition: all 0.4s ease;
  --card-bg: white;
  --card-text: #333;
}


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

html {
  scroll-behavior: smooth;
  background-color: var(--light);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.7;
--card-bg: #1e1e1e;
  --card-text: #eee;
  margin: 0;
  overflow-x: hidden; /* prevent horizontal scroll */
}



/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--accent), white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.8;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover {
  opacity: 0.75;
}

/* Hero Section */
.hero {
  padding: 12rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* About Section */
.about {
  padding: 5rem 2rem;
  background-color: white;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about p {
  max-width: 800px;
  margin: auto;
  color: #444;
}

/* Services Section */


.services {
  background: linear-gradient(120deg, #f4f7ff, #eef2ff);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.dark .services {
  background: linear-gradient(160deg, #0f172a, #1e293b);
}

.services h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 3rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.service {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #111;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

body.dark .service {
  background: rgba(31, 41, 55, 0.9);
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.05);
}

.service::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  transform: rotate(45deg);
}

.service:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 25px var(--primary);
  background: rgba(255, 255, 255, 0.95);
}

body.dark .service:hover {
  background: rgba(30, 41, 59, 0.95);
}

.service h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.service p {
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 400px) {
  .services {
    padding: 3rem 1rem;
  }

  .services h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service {
    padding: 1.5rem;
  }
}




.projects {
  background: linear-gradient(135deg, #f0f4ff, #e8f1ff);
  padding: 5rem 2rem;
  text-align: center;
}

body.dark .projects {
  background: #111827;
}

.projects h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 300px;
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: var(--radius);
  scroll-snap-align: center;
  box-shadow: 0 10px 25px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--primary), 0 0 40px var(--accent);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-card h4 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--primary);
}

.project-card p {
  font-size: 0.95rem;
  color: inherit;
}

body.dark .project-card {
  background: #1f2937;
  color: #f3f4f6;
}







/* CTA */
.cta {
  background: radial-gradient(circle at center, var(--accent), var(--primary));
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
  animation: spin 6s linear infinite;
  opacity: 0.15;
  z-index: 0;
  border-radius: 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.cta h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  animation: pulse 2.5s infinite;
}

.cta a {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1.2rem 2.5rem;
  background: #fff;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 0 25px rgba(255,255,255,0.3), 0 0 60px rgba(255,255,255,0.2);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.cta a:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent);
}



/* === Stats Section Styling === */
.stats {
  background: linear-gradient(135deg, #f9fbff, #e5ecf6);
  padding: 4rem 2rem;
  text-align: center;
}

body.dark .stats {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* === Individual Stat Card === */
.stat {
  background: var(--card-bg, #ffffff);
  color: var(--card-text, #111);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .stat {
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* === Stat Text === */
.stat h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary, #3b82f6); /* fallback to blue */
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.stat p {
  font-size: 1rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary, #3b82f6);
  text-align: center;
}





.techstack {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--light);
}

.techstack h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.tech-description {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: auto;
}

.tech-card {
  background: var(--card-bg);
  color: var(--card-text);
  padding: 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1), 0 0 12px var(--primary);
}


/* Dark Mode Compatibility */
body.dark .techstack {
  background: #111827;
}

:root {
  --card-bg: white;
  --card-text: #222;
}

body.dark {
  --card-bg: #1f2937;
  --card-text: #f3f4f6;
}

/* Responsive Tuning */
@media (max-width: 500px) {
  .tech-card {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .techstack h2 {
    font-size: 2rem;
  }
}



/* Contact */
.contact {
  background-color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.contact h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact p {
  color: #333;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .about, .services, .projects, .contact {
    padding: 3rem 1rem;
  }
  .carousel {
    padding: 1rem;
  }
}
