/*
* Group18 - Custom Software & Hardware Development
* Main Stylesheet
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary-color: #1A237E; /* Deep blue */
  --secondary-color: #00BCD4; /* Bright cyan */
  --accent-color: #7E57C2; /* Soft violet */
  --light-bg: #F5F5F5; /* Light gray */
  --dark-text: #212121; /* Dark gray */
  --white: #FFFFFF;
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 2rem;
  
  /* Transitions */
  --transition-slow: 0.5s ease;
  --transition-medium: 0.3s ease;
  --transition-fast: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-medium);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--heading-font);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-medium);
}

.btn:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: var(--secondary-color);
}

.section-subtitle {
  font-family: var(--body-font);
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

section {
  padding: var(--section-padding);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-light {
  background-color: var(--light-bg);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.bg-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-medium);
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: var(--primary-color);
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-link {
  margin: 0 1rem;
  padding: 0.5rem;
  color: var(--white);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition-medium);
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a155c 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--body-font);
  font-weight: 300;
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  pointer-events: none;
}

/* About Section */
#about {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-content h2::after {
  left: 0;
  transform: none;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition-medium);
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.value-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Services Section */
.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-item {
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition-medium);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 4px solid var(--secondary-color);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--secondary-color);
  transition: var(--transition-medium);
  z-index: -1;
}

.service-item:hover::before {
  width: 100%;
  opacity: 0.05;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin: 1.5rem 0;
}

.service-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: '•';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.integration-visual {
  margin-top: 4rem;
  text-align: center;
}

.integration-visual img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 10px;
}

/* Process Section */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 4rem;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 120px;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.5rem;
  position: relative;
  transition: var(--transition-medium);
}

.process-step:hover .step-number {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.process-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.process-content {
  padding-right: 2rem;
}

.process-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.process-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transition: var(--transition-medium);
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
  background-color: var(--white);
}

.project-category {
  color: var(--secondary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.project-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,188,212,0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.info-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 1.5rem;
}

.info-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition-medium);
}

.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.map-container {
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: a;
}

.footer-logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-about p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-link a:hover {
  opacity: 1;
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact {
  font-size: 0.95rem;
}

.footer-contact div {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 1rem;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-grid,
  .process-details,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-content {
    order: 1;
  }
  
  .about-image {
    order: 2;
  }
  
  .services-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    margin: 1rem 0;
    font-size: 1.2rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .values-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .process-steps::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .process-step {
    margin-bottom: 3rem;
    width: 100%;
  }
  
  .step-number {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 576px) {
  h1, .hero-title {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
