/* ===== BASE STYLES ===== */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  line-height: 1.6;
}

.w3-container {
  padding: 64px 16px;
}

.w3-our-orange {
  color: #fff;
  background-color: #FF5E33;
}

.w3-our-blue {
  color: #fff;
  background-color: #1d2a3a;
}

/* ===== NAVIGATION ===== */
.w3-top {
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.w3-bar {
  height: 60px;
}

.w3-bar .w3-button {
  padding: 16px;
  font-weight: bold;
}

.w3-bar-block .w3-button {
  font-weight: bold;
}

/* ===== CAROUSEL & HERO SECTIONS ===== */
.bgimg-1 {
  background-position: center;
  background-size: cover;
  position: relative;
  margin-bottom: 0;
}

/* Default carousel height for larger screens */
.carousel-item {
  height: 100vh;
  min-height: 600px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.page-hero {
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 0;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 90%;
}

.about-section {
  background: white;
  border-radius: 8px;
  padding: 60px 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.about-section:hover {
  transform: translateY(-5px);
}

.section-title {
  color: #1d2a3a;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

.section-title i {
  margin-right: 15px;
  color: #FF5E33;
}

.mission-section {
  border-left: 10px solid #e74c3c;
}

.vision-section {
  border-left: 10px solid #2ecc71;
}

.values-section {
  border-left: 10px solid #f39c12;
}

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

.value-item {
  background: #f8f9fa;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item i {
  font-size: 3rem;
  color: #117aca;
  margin-bottom: 20px;
}

.value-item h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.value-item p {
  color: #5a6c7d;
  margin: 0 10px;
}

.mission-section p,
.vision-section p,
.values-section > p.w3-large {
  margin: 0 5%;
}

/* ===== TEAM PAGE STYLES ===== */
.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 90%;
}

.team-section {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.team-section-title {
  color: #1d2a3a;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.team-section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 50px;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.team-member {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.member-info {
  padding: 30px;
}

.member-name {
  color: #1d2a3a;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.member-position {
  color: #FF5E33;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.member-bio {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

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

.member-social-links a {
  color: #1d2a3a;
  transition: color 0.3s ease;
}

.member-social-links a:hover {
  color: #FF5E33;
}

/* ===== WORK GRID SYSTEM ===== */
.work-section {
  position: relative;
  overflow: hidden;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 30px;
  align-items: stretch;
}

.work-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  height: 360px;
  display: flex;
  flex-direction: column;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196F3, #4CAF50);
  z-index: 2;
}

.work-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.work-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  height: 250px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 15px 15px 0 0;
}

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

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(76, 175, 80, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 15px 15px 0 0;
}

.work-overlay i {
  color: white;
  font-size: 3rem;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 0 0 15px 15px;
  min-height: 160px;
}

.work-content h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  min-height: 2.4em;
}

.work-content p {
  color: #7f8c8d;
  line-height: 1.4;
  font-size: 0.85rem;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: auto;
}

/* Section Specific Work Cards */
#work .work-card {
  height: 420px;
}

#work .work-content {
  padding: 20px;
}

#work .work-content p {
  line-height: 1.5;
  font-size: 0.95rem;
  display: block;
  overflow: visible;
}

#work .work-content h4 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  min-height: auto;
}

#examples .work-grid,
#careers .work-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 40px auto 20px;
  justify-items: center;
  gap: 25px;
}

#examples .work-card,
#careers .work-card {
  height: 360px;
  max-width: 350px;
  width: 100%;
}

#examples .work-image {
  height: 180px;
}

#examples .work-content {
  padding: 18px;
  min-height: 140px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #343a40;
  color: white;
  padding: 50px 0 20px;
  margin-top: 0px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
  font-size: 1rem;
  color: #ffffff;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #0056b3;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #495057;
  margin-top: 30px;
}

.footer-bottom p {
  color: #adb5bd;
  font-size: 0.9rem;
}

/* ===== MODERN EXAMPLES SECTION ===== */
.filter-tabs {
  display: inline-flex;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.filter-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 25px;
  font-weight: 600;
  color: #5a6c7d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #FF5E33, #FF8E33);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 94, 51, 0.3);
}

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

.modern-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 94, 51, 0.9), rgba(29, 42, 58, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modern-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.card-content {
  padding: 25px;
}

.card-content h4 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.card-content p {
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: #f8f9fa;
  color: #5a6c7d;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e9ecef;
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST APPROACH ===== */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  #examples .work-grid,
  #careers .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .modern-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .values-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }
}

/* Tablet screens */
@media (max-width: 1024px) {
  .carousel-item {
    height: 80vh;
    min-height: 500px;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    
   .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel-caption p {
    font-size: 3.5vw !important;
  }
  
  .carousel-caption i {
    font-size: 1.8vw !important;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #examples .work-grid,
  #careers .work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modern-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-hero {
    padding: 80px 0 40px;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .about-section {
    padding: 40px 20px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .values-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-section {
    padding: 60px 0;
  }
  
  .team-members {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .member-image {
    height: 250px;
  }
  
  .w3-container {
    padding: 40px 16px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 35px;
    padding: 0 25px;
  }
  
  .footer-column {
    flex: 0 0 100%;
    text-align: center;
    padding: 0;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .carousel-item {
    height: 50vh;
    min-height: 300px;
  }
  
  .carousel-caption p {
    font-size: 4vw;
  }
  
  .carousel-caption i {
    font-size: 2vw;
  }
  
  .bgimg-1 {
    margin-bottom: 0;
  }
  
  .w3-container.w3-row.w3-center.w3-our-blue.w3-padding-32 {
    padding: 0;
    margin: 0;
    height: 4px;
  }
  
  #work {
    padding-top: 16px;
  }
  
  .w3-bar .w3-button {
    padding: 12px 8px;
    font-size: 14px;
  }
}

/* Small mobile phones */
@media (max-width: 480px) {
  .carousel-item {
    height: 45vh;
    min-height: 250px;
  }
  
  .carousel-caption p {
    font-size: 4.5vw;
  }
  
  .carousel-caption i {
    font-size: 2.2vw;
  }
  
  .about-container,
  .team-container {
    padding: 0 15px;
  }
  
  .page-hero {
    padding: 60px 0;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
  }
  
  .page-hero p {
    font-size: 1rem;
  }
  
  .team-section-title {
    font-size: 1.8rem;
  }
  
  .value-item {
    padding: 20px 15px;
  }
  
  .value-item i {
    font-size: 2.5rem;
  }
  
  .modern-grid {
    grid-template-columns: 1fr;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-content h4 {
    font-size: 1.2rem;
  }
  
  .filter-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .carousel-item {
    height: 40vh;
    min-height: 200px;
  }
  
  .team-members {
    grid-template-columns: 1fr;
  }
  
  .modern-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITIES ===== */
.no-bullets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.hp-field { 
  opacity: 0;
  position: absolute;
  height: 0;
  width: 0;
  z-index: -1;
}

.grecaptcha-badge { 
  visibility: hidden;
}

 .cookie-banner {
        position: fixed;
        bottom: 20px;
        right: 20px;
        max-width: 380px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        font-family: "Raleway", sans-serif;
}

.cookie-content {
    padding: 20px;
}

.cookie-text p {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: #0056b3;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: "Raleway", sans-serif;
}

.essential-btn {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.accept-btn {
    background-color: #0056b3;
    color: white;
}

.reject-btn {
    background-color: #6c757d;
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
    }
    
    .cookie-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}
