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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #fff;
  background: #000;
}

/* Navbar Alignment */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%; /* Reduced vertical padding to account for larger logo */
  position: absolute;
  width: 100%;
  z-index: 10;
}

.logo {
  display: flex;      
  align-items: center; 
  gap: 12px;            
  font-weight: 700;
  /* Keep the text small and professional */
  font-size: 0.85rem;   
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.logo-image {
  /* Increased size for visual impact */
  height: 80px;         
  width: auto;           
  object-fit: contain;
  /* Optional: slight glow to match your brand blue */
  filter: drop-shadow(0 0 8px rgba(66, 182, 233, 0.3)); 
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;  
}

.nav-links li {
  margin-left: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  /* Maintains the "aesthetic small" look */
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  transition: 0.3s;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #42b6e9; /* Light blue color you like */
  border-bottom: 2px solid #42b6e9;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("/images/homepage.webp") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 30, 60, 0.7); /* Deep blue tint */
}

.hero-content {
  position: relative;
  z-index: 5;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 30px;
}

.btn {
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: #42b6e9;
  color: white;
}

.btn-outline {
  border: 2px solid #fff;
  color: white;
}

/* Core Section Layout */
.styles {
  min-height: 100vh;
  /* Takes up full screen height */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertical Center */
  align-items: center;
  /* Horizontal Center */
  padding: 80px 10%;
  /* Space for your fixed navbar */
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography for Sections */
.styles h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #42b6e9;
  /* Brand Blue */
  text-transform: uppercase;
  letter-spacing: 2px;
}

.styles p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  /* Keeps text readable */
  margin: 0 auto 30px;
  color: #cccccc;
}

/* Services Section Layout */
/* Services Section Layout */
#services.styles {
    display: block; /* Overrides the flex centering that breaks the grid */
    text-align: center;
    padding: 100px 10%;
}

#services h2 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 60px;
    color: #42b6e9;
    text-transform: uppercase;
}

/* THE GRID SYSTEM - This makes them a straight line */
.service-cards {
    display: grid;
    /* Forces exactly 3 columns on desktop */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Ensures all boxes are same height */
}

/* Individual Card Styling */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: left; /* Keeps text inside cards professional */
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(66, 182, 233, 0.05);
    border-color: rgba(66, 182, 233, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Ensures titles are always aligned across the row */
.service-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 4rem; /* Match this to the height of your longest title */
}

/* Scroll Button */
.scroll-controls {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* Space between the two buttons */
  z-index: 1000;
}

.scroll-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #42b6e9;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

/* Perfect alignment for the icon */
.scroll-btn .icon {
  line-height: 0;
  display: inline-block;
  transform: translateY(-1px);
  /* Precise optical centering */
  font-size: 1.8rem;
  font-weight: bold;
}

/* Hiding logic */
.scroll-btn.hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.scroll-btn:hover {
  background-color: #ffffff;
  color: #42b6e9;
}
/* Main Contact Section Container */
.contact-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Header Text Styling */
.contact-container h2 {
    color: #42b6e9;
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* The 2-Column Grid Wrapper */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr; 
    gap: 80px;
    margin-top: 50px;
    text-align: left;
}

/* Left Column: Info Blocks */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-block .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #42b6e9;
    margin-bottom: 12px;
}

.info-block p, 
.info-block a {
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    line-height: 1.6;
}

/* Right Column: The Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Horizontal row for First Name and Email */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Unified Input & Textarea Styling */
.form-group input, 
.form-group-full textarea {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(66, 182, 233, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
}

/* Focus Glow Effect */
.form-group input:focus, 
.form-group-full textarea:focus {
    outline: none;
    background: rgba(66, 182, 233, 0.05);
    border-color: #42b6e9;
    box-shadow: 0 0 20px rgba(66, 182, 233, 0.15);
    transform: translateY(-2px);
}

/* Submit Button Styling */
.btn-submit {
    padding: 20px;
    background: linear-gradient(135deg, #42b6e9 0%, #35a5d4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(66, 182, 233, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(66, 182, 233, 0.4);
    filter: brightness(1.1);
}
/* ============================================================
    COMPREHENSIVE RESPONSIVE DESIGN
   ============================================================ */

/* --- HAMBURGER MENU ICON (Hidden by default) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s ease;
    border-radius: 3px;
}

/* 1. TABLETS & SMALL LAPTOPS (769px to 1100px) */
@media (max-width: 1100px) {
    .navbar {
        flex-direction: column; /* Stack Nav below Logo per your request */
        padding: 20px 5%;
        position: relative; /* Prevent overlap with hero */
        background: #000;
    }

    .nav-links {
        margin-top: 15px;
    }

    .nav-links li {
        margin: 0 15px;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact column */
        gap: 40px;
    }

    .contact-container {
        padding: 40px 30px;
    }
}

/* 2. MOBILE PHONES (Up to 768px) - Hamburger Menu Activation */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row; /* Return to row for Hamburger alignment */
        justify-content: space-between;
        padding: 15px 5%;
        position: fixed; /* Keep nav visible */
        background: rgba(0, 0, 0, 0.95);
    }

    .logo span {
        font-size: 0.7rem;
        max-width: 150px;
    }

    .logo-image {
        height: 50px;
    }

    .menu-toggle {
        display: flex; /* Show Hamburger */
    }

    /* Transform Nav into a Slide-out Menu */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: #050505;
        width: 80%;
        height: 100vh;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hero & Sections */
    h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-content { padding: 0 20px; }
    
    .service-cards {
        grid-template-columns: 1fr; 
    }

    .input-row {
        grid-template-columns: 1fr; 
    }

    /* Hamburger Animation to 'X' */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* 3. SMALL MOBILE & FOLDABLES (Up to 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .styles h2 { font-size: 1.6rem; letter-spacing: 2px; }
    .styles p { font-size: 0.95rem; }
    
    .btn {
        width: 100%;
        margin: 8px 0;
    }

    .logo span {
        display: none;
    }

    .contact-container h2 { font-size: 1.8rem; }
}

/* 4. TALL FOLDABLES (Cover Screens / Narrow screens like 280px - 320px) */
@media (max-width: 320px) {
    h1 { font-size: 1.4rem; }
    .logo-image { height: 40px; }
    .service-card { padding: 25px 20px; }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; 
        background-position: 70% center; 
        height: 100vh;
        min-height: 600px; 
    }

    .hero-content h1 {
        font-size: 2rem;
        padding: 0 10px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
}

/* For very narrow foldables/small phones */
@media (max-width: 480px) {
    .hero {
        background-size: cover; 
        background-position: center;
    }
}