
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}


body {
  font-family: Arial, sans-serif;
  background-color: #f4f8ff;
  padding-top: 1px; 
  color: #000000;
}


header {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo span {
  color: blue;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

nav a {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  color: white;
  background-color: transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, background-color 0.3s ease;
  user-select: none;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  height: 2px;
  width: 0;
  background-color: white;
  border-radius: 2px;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    width 0.4s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;
}

nav a:hover {
  color: blue;
  background-color: white;
  cursor: pointer;
}

nav a:hover::after {
  width: calc(100% - 32px);
  opacity: 1;
  background-color: blue;
}

nav a.active {
  color: blue;
  background-color: transparent;
}

nav a.active::after {
  width: calc(100% - 32px);
  opacity: 1;
  background-color: blue;
}


nav a.always-hover {
  color: blue;
  background-color: white;
  cursor: pointer;
  border-radius: 6px;
}

nav a.always-hover:hover {
  background-color: white;
  color: blue;
}

nav a.always-hover::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  height: 2px;
  width: 0;
  background-color: white;
  border-radius: 2px;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    width 0.4s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;
}

nav a.always-hover:hover::after {
  width: calc(100% - 32px);
  opacity: 1;
  background-color: blue;
}
.hero {
  position: relative;
  height: 100vh;
  background: url('images/13.webp') no-repeat center center/cover ;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 14, 56, 0.626); 
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn.primary {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
}

.btn.primary:hover {
  color: rgb(0, 0, 0);
  border: 2px solid;
  
}

.cv {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    padding-top: 10px;
    width: 144px;
}

.cv:hover {
  background-color: rgba(0, 0, 0, 0.1);
}



section#about {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 80px;
  gap: 50px;
  align-items: center;
  background-color: #f4f8ff;
  min-height: 80vh;
}

section#about .left {
  flex: 1;
  text-align: center;
}


.image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 400px;
}

.image-wrapper img {
  display: block;
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease-in;
}
.image-wrapper:hover img {
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(12, 85, 224, 0.3); 
  transform: translateY(-5px); 
}

.image-text {
  position: absolute;
  top: 100;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 8.5px 20px;
  border-radius: 0 0 8px 8px;
  max-height: 40px; 
  overflow: hidden;
  background: linear-gradient(
    to top,
    #000000 500%,       
    #007bff00 60%,      
    rgba(255, 255, 255, 0) 100%  
  );
  transition: max-height 0.5s ease;
  box-shadow: 0 8px 20px rgba(12, 85, 224, 0.3); 

  
}


.image-wrapper:hover .image-text {
  max-height: 300px; 
}


.image-wrapper:hover .image-text {
  background: linear-gradient(
    180deg,
    rgba(0, 123, 255, 0.532) 0%,
    rgba(0, 123, 255, 0.6) 40%,
    rgb(0, 123, 255) 100%
  );
}

section#about .right {
  flex: 1.2;
  color: #0c1d3c;
}

section#about .right h4 {
  color: blue;
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 30px;
}

section#about .right h1 {
  font-size: 32px;
  margin-bottom: 2px;
}

section#about .right p {
  color: #444;
  margin-bottom: 2px;
  line-height: 1.6;
}

section#about .stats {
  display: inline-block;
  gap: 2px;
  flex-wrap: wrap;
}

section#about .stat h2 {
  color: blue;
  font-size: 28px;
}

section#about .stat h3 {
  margin: 2px 0;
  font-size: 18px;
}

section#about .stat p {
  color: #666;
  font-size: 14px;
}


#services {
  background: #f4f8ff;
  padding: 40px 20px;
  text-align: center;
}

#services h2 {
  color: blue;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 2rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 30px;
}

.service {
  background: white;
  padding: 20px;
  text-align: left;
  border-radius: 5px;
  box-shadow: 0 0 5px #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.service:hover {
  background-color: #e6f0ff; 
  box-shadow: 0 8px 20px rgba(12, 85, 224, 0.3); 
  transform: translateY(-5px); 
}


.service .icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #0c1e42;
}

.service p {
  font-size: 0.9rem;
  color: #7b8a9e;
  line-height: 1.4;
}

button.view-more {
  background-color: blue;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.view-more:hover {
  background-color: rgb(0, 0, 0);
  color: white;
}

#portfolio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;

}

#portfolio h2 {
  color: blue;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 2rem;
}
#portfolio p {
    margin-bottom: 10px;
}
#portfolio .container {
  display: grid;
  grid-template-columns: repeat(4, 300px);
  grid-auto-rows: 200px;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

#portfolio .container {
  position: relative;
  overflow: visible;
}

#portfolio .container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 0px solid #ccc;
  transition: transform 0.4s ease, z-index 0.2s;
  z-index: 1;
}


#portfolio .container img:hover {
  object-fit: contain; 
  transform: scale(1.5);
  z-index: 10;          
}


#portfolio .container img:nth-child(odd) {
  grid-row: span 2;
}


#portfolio .container img:nth-child(even) {
  grid-row: span 1;
}
#portfolio .container img:nth-child(odd) {
  grid-row: span 1;
}
.contact-video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background-color: #f4f8ff;
  padding: 50px;
  justify-content: center;
  align-items: flex-start;
}

.contact-form, .video-embed {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form h2 {
  font-size: 28px;
  color: blue;
  margin-bottom: 5px;
  border-left: 4px solid blue;
  padding-left: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgb(0, 0, 0);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: blue;
  outline: none;
}

.contact-form button {
  background-color: black;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: blue;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  min-height: 340px;
}


.footer-top {
  background-color: blue;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
}

.footer-top .text {
  color: white;
}

.footer-top .text h3 {
  margin: 0;
  font-weight: 500;
}

.footer-top .text p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.8;
}

.footer-top button {
  background-color: #222222;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.footer-top button:hover {
  background-color: #ffffff;
  color: blue;
}

footer {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #000000;
  color: #ffffff;
}

.footer-logo {
  color: white;
  font-weight: 700;
  font-size: 24px;
  min-width: 120px;
}

.footer-logo small {
  color: #ffffff;
  font-weight: 200;
  display: block;
  margin-top: 6px;
}

.footer-section {
  min-width: 120px;
  margin-bottom: 20px;
}

.footer-section h4 {
  color: rgb(0, 47, 255);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-section a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 6px;
  font-size: 14px;
}

.footer-section a:hover {
  color: #0011ff;
  transition: background-color 0.3s ease;

}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  background-color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(0, 0, 0);
  font-size: 14px;
  text-decoration: none;
}

.social-icons a:hover{
    color: blue;
}




@media (max-width: 900px) {
  section#about {
    flex-direction: column;
    padding: 40px 20px;
  }
  section#about .left,
  section#about .right {
    max-width: 100%;
    flex: unset;
  }
}
