/* =====================================================
   ALIVRA Digital Studio
   Main Stylesheet
   Version: 1.0
===================================================== */

/* ===========================
   GOOGLE FONTS
=========================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap");

/* ===========================
   VARIABLES
=========================== */

:root {
  --primary: #0f8a5f;
  --primary-dark: #0c6e4c;
  --secondary: #091d4a;
  --accent: #2ccf85;

  --white: #ffffff;
  --light: #f7f9fc;
  --gray: #f2f4f7;

  --text: #1f2937;
  --text-light: #6b7280;

  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --transition: 0.35s ease;

  --success-bg: #d1fae5;
  --success: #10b981;
  --success-text: #065f46;

  --error-bg: #fee2e2;
  --error: #ef4444;
  --error-text: #991b1b;
}

/* ===========================
   RESET
=========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--light);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* ===========================
   TYPOGRAPHY
=========================== */

h1,
h2,
h3,
h4 {
  color: var(--secondary);
  font-family: "Poppins", sans-serif;
}

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

.section-title.negotiable {
  margin-bottom: 45px;
}


.section-title h2 {
  margin-bottom: 15px;
  font-size: 42px;
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
}

.section-description {
  background: var(--white);
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  text-align: justify;
  padding: 15px 25px 15px 25px;
  margin-bottom: 35px;
}

.section-description-text{
  margin-top: 10px;
}

/* ===========================
   BUTTONS
=========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-4px);
  background: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

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

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

.btn-light:hover {
  transform: translateY(-4px);
}

/* ===========================
   HERO
=========================== */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #ddf9ec, transparent 45%),
    radial-gradient(circle at bottom right, #e9f0ff, transparent 40%),
    var(--light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 30px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--primary);
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 25px;
  font-size: 65px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  margin-bottom: 40px;
  color: var(--text-light);
  font-size: 20px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ===========================
   BROWSER MOCKUP
=========================== */

.browser-window {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.browser-top {
  padding: 15px;
  background: #ececec;
}

.browser-top span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
}

.browser-top span:nth-child(1) {
  background: #ff605c;
}

.browser-top span:nth-child(2) {
  background: #ffbd44;
}

.browser-top span:nth-child(3) {
  background: #00ca4e;
}

.browser-body {
  position: relative;
  height: 470px;
  background: linear-gradient(135deg, #0f8a5f, #091d4a);
}

.floating-card {
  position: absolute;
  padding: 22px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.floating-card i {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 30px;
}

.card-one {
  top: 60px;
  left: 40px;
}

.card-two {
  top: 170px;
  right: 40px;
}

.card-three {
  bottom: 60px;
  left: 90px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ===========================
   SERVICES
=========================== */

.services {
  padding: 110px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

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

.service-card i {
  margin-bottom: 25px;
  color: var(--primary);
  font-size: 42px;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   WHY US
=========================== */

.why-us {
  padding: 100px 0;
  background: var(--white);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature {
  padding: 35px;
  background: var(--light);
  border-radius: 18px;
  text-align: center;
}

.feature i {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 40px;
}

.feature h4 {
  font-size: 20px;
}

/* ===========================
   PROCESS
=========================== */

.process {
  padding: 110px 0;
}

.timeline {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.step {
  flex: 1;
  padding: 35px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
}

/* =====================================================
   PRICING PREVIEW
===================================================== */

.pricing-preview {
  padding: 110px 0;
  background: var(--gray);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.price-card {
  padding: 45px 35px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: var(--transition);
}

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

.price-card h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.price-card h1 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 48px;
}

.price-card p {
  color: var(--text-light);
}

.price-card ul {
  margin-bottom: 15px;
}


.featured {
  transform: scale(1.05);
  background: linear-gradient(135deg, #0f8a5f, #148d68);
  color: var(--white);
}

.featured h1,
.featured h3,
.featured p {
  color: var(--white);
}

.pricing-button {
  margin-top: 60px;
  text-align: center;
}

/* =====================================================
   CTA
===================================================== */

.cta {
  padding: 120px 20px;
  background: linear-gradient(135deg, #0f8a5f, #091d4a);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 52px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 20px;
  opacity: 0.9;
}

/* =====================================================
   NAVBAR
===================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  transition: var(--transition);
}

header.scrolled {
  background: var(--white);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo {
  color: var(--secondary);
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

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

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.quote-btn {
  padding: 13px 24px;
  background: var(--primary);
  border-radius: 999px;
  color: var(--white) !important;
}

.quote-btn:hover {
  background: var(--primary-dark);
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  padding: 80px 0 30px;
  background: #08152f;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-grid h3 {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-grid p {
  line-height: 1.8;
}

.footer-grid ul li {
  margin-bottom: 14px;
}

.footer-grid a {
  color: #d1d5db;
  transition: 0.3s ease;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

/* =====================================================
   SECTION SPACING
===================================================== */

section {
  position: relative;
}

section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  pointer-events: none;
}

/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

::-webkit-scrollbar-track {
  background: #ececec;
}

/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.menu-toggle {
  display: none;
  color: var(--secondary);
  font-size: 28px;
  cursor: pointer;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-height: 761px) {
  .hero-container {
    padding-top: 10%;
  }
}

@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .browser-window {
    margin-top: 40px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-wrap: wrap;
  }

  .step {
    flex: 45%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .services-grid,
  .features,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    text-align: center;
  }

  .timeline {
    flex-direction: column;
  }

  .cta h2 {
    font-size: 38px;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 85px;
    left: 0;

    display: none;
    flex-direction: column;

    width: 100%;
    padding: 15px;

    background: var(--white);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
  }

  .nav-links li {
    text-align: center;
    margin: 20px 0;
  }

  .nav-links a {
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
  }

  .nav-links li:last-child {
    margin-top: 10px;
  }

  .quote-btn {
    width: fit-content;
  }

  /* .nav-links.show {
    display: flex;
  } */
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */

.service-card,
.feature,
.price-card,
.step {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.show-item {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   SERVICES PAGE
========================================= */

.services-page {
  padding: 100px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.service-box {
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

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

.service-box i {
  margin-bottom: 25px;
  color: var(--primary);
  font-size: 45px;
}

.service-box h3 {
  margin-bottom: 10px;
}

.service-box h4 {
  margin-bottom: 20px;
  color: var(--primary);
}

.service-box ul {
  margin: 25px 0;
}

.service-box ul li {
  margin-bottom: 12px;
  padding-left: 10px;
}

.service-box.featured {
  background: linear-gradient(135deg, #0f8a5f, #148d68);
  color: var(--white);
}

.service-box.featured h3,
.service-box.featured h4,
.service-box.featured p,
.service-box.featured li,
.service-box.featured i {
  color: var(--white);
}

/* =========================================
   PRICING PAGE
========================================= */

.pricing-section,
.addons,
.maintenance,
.faq {
  padding: 100px 0;
}

.addon-table {
  overflow-x: auto;
}

.addon-table table {
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border-radius: 15px;
  border-collapse: collapse;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.addon-table th {
  padding: 20px;
  background: var(--primary);
  color: var(--white);
}

.addon-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.addon-table tr:hover {
  background: var(--light);
}

.faq-container {
  max-width: 900px;
  margin: auto;
}

.faq-item {
  margin-bottom: 20px;
  padding: 30px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* =========================================
   ALERTS
========================================= */

.alert {
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  font-weight: 600;
}

.success {
  background: var(--success-bg);
  border-left: 5px solid var(--success);
  color: var(--success-text);
}

.error {
  background: var(--error-bg);
  border-left: 5px solid var(--error);
  color: var(--error-text);
}

/* =========================================
   PORTFOLIO
========================================= */

.portfolio-section {
  padding: 100px 0;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 60px;
}

.portfolio-filter button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  background: var(--gray);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter button:hover,
.portfolio-filter button.active {
  background: var(--primary);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-content {
  padding: 30px;
}

.project-content span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.project-content h3 {
  margin: 10px 0;
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tech span {
  padding: 8px 14px;
  border-radius: 20px;
  background: #eef6f4;
  font-size: 13px;
}

.technologies {
  padding: 80px 0;
  background: #f9fafb;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.tech-grid div {
  padding: 25px;
  background: var(--white);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* =========================================
   ABOUT PAGE
========================================= */

.page-hero {
  padding: 170px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, #0f8a5f, #091d4a);
  color: #fff;
}

.page-hero h1 {
  font-size: 58px;
  color: #fff;
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 20px;
  opacity: 0.9;
}

.about-section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 8px 18px;
  background: #e8faf2;
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-section h2 {
  margin-bottom: 25px;
  font-size: 42px;
}

.about-section p {
  color: var(--text-light);
  line-height: 1.9;
}

.about-card {
  padding: 50px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-card i {
  color: var(--primary);
  font-size: 60px;
  margin-bottom: 25px;
}

.about-card h3 {
  margin-bottom: 15px;
}

.about-card p {
  color: var(--text-light);
}

.mission {
  padding: 100px 0;
  background: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card {
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  background: var(--light);
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.info-card i {
  font-size: 45px;
  color: var(--primary);
  margin-bottom: 20px;
}

.info-card h3 {
  margin-bottom: 20px;
}

.info-card p {
  line-height: 1.8;
  color: var(--text-light);
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 42px;
  }
}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.contact-card i {
    color: var(--primary);
    font-size: 28px;
    margin-top: 4px;
}

.contact-card h4 {
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--text-light);
}

.contact-form {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: .3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

#formMessage {
    margin-top: 20px;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.messenger-float{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #0084FF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    z-index: 9999;
    transition: .3s;
}

.messenger-float:hover{
    transform: scale(1.08);
    color: #fff;
}
