/* Cypher Technologies Portfolio - Main Stylesheet */

:root {
  --primary-color: #1a96c6; /* Blue from logo */
  --secondary-color: #0a7ba8; /* Darker blue for contrast */
  --accent-color: #e6f7ff; /* Light blue accent */
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #ffffff;
  --section-bg: #f8f9fa;
  --border-color: #e1e1e1;
  --success-color: #28a745;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--background-color);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-text);
  padding: 150px 0 100px;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--light-text);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: transparent;
  color: var(--light-text);
  border-color: var(--light-text);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--light-text);
  color: var(--light-text);
}

.btn-outline:hover {
  background-color: var(--light-text);
  color: var(--primary-color);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

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

.section-title p {
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--section-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  background-color: var(--primary-color);
  color: var(--light-text);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-content p {
  color: var(--text-color);
  margin-bottom: 15px;
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background-color: var(--section-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background-color: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-img {
  height: 200px;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 25px;
}

.project-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-content p {
  color: var(--text-color);
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tag {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--background-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 20px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: var(--section-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-title {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Team Section */
.team {
  padding: 80px 0;
  background-color: var(--section-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-member {
  background-color: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.member-img {
  height: 250px;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-content {
  padding: 25px;
}

.member-content h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.member-position {
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

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

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--background-color);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--section-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  position: relative;
}

.testimonial-item:last-child {
  margin-bottom: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: 0;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background-color: var(--primary-color);
}

.client-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-details h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.client-position {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--section-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.btn-submit {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--light-text);
  bottom: 0;
  left: 0;
}

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

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

.footer-links a {
  color: var(--light-text);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  color: var(--light-text);
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

.footer-social a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--background-color);
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 25px;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
}
