/*
*/

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Ensure parallax doesn't bleed out */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Slightly taller for parallax movement */
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/img/hero/3.jpg');;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0); /* Force GPU layer */
    backface-visibility: hidden; /* Prevent flicker */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, calc(0.625rem + 4.5vw), 4rem);
    margin-bottom: 20px;
    line-height: 1.5em;
}

.hero p {
    font-size: clamp(1.15rem, calc(1.1rem + 0.2vw), 1.25rem);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-typing {
  background-color: var(--accent-color);
  border-radius: 5px;
  padding-bottom: 5px;
}

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  width: 4px;
  height: 1.3em;
  background-color: var(--accent-color);
  margin-left: 6px;
  margin-top: -6px;
  vertical-align: middle;
  animation: typing-blink 0.75s step-end infinite;
}

@keyframes typing-blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent-color); }
}

@media (max-width: 400px) {
    .typing-cursor {
        height: 1.5em;
        margin-top: 0px;
    }
}

section.services p {
    color: var(--text-secondary);
}

/* Services Grid */

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

.service-card {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.service-card p {
    margin-bottom: 20px;
}

.service-card .cta {
    margin-top: auto;
    width: 100%;
}

section.services .cta.view-all {
    margin-top: 60px;
}

/* Why Choose Us Table */

section.why-choose h2 {
    margin-bottom: 40px;
}

.why-choose-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.why-choose-table tr {
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.why-choose-table tr:last-child {
    border-bottom: none;
}

.why-choose-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.why-choose-table td {
    padding: 24px 30px;
    vertical-align: middle;
}

.benefit-title {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.15rem;
    width: 25%;
    letter-spacing: 0.5px;
}

.benefit-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .why-choose-table, 
    .why-choose-table tr, 
    .why-choose-table td {
        display: block;
        width: 100% !important;
    }
    
    .why-choose-table tr {
        border-bottom: 1px solid var(--glass-border);
    }
    
    .why-choose-table tr:last-child {
        border-bottom: none;
    }
    
    .why-choose-table td {
        padding: 20px;
    }

    .benefit-title {
        padding-bottom: 8px;
        width: 100%;
    }
    
    .benefit-desc {
        padding-top: 0;
    }
}

/* Trusted By Section */

section.trusted {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 17, 17, 0.6) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    width: 95%;
    margin: 100px auto;
    padding: 50px 0;
}

section.trusted h2 {
    border: 1px solid white;
    padding: 12px 0;
    width: 170px;
    text-align: center;
    margin: auto auto;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 60px;
}

.logo-grid a {
    display: inline-block;
    line-height: 0;
    padding: 0;
    cursor: pointer;
    border: none;
}

.logo-grid a:hover {
    background: none;
}

.logo-grid img {
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: grayscale(1) brightness(0.75);
    transition: 0.3s;
    margin: 0 10px;
}

.logo-grid a:hover img {
    filter: grayscale(0) brightness(1);
}

@media (max-width: 768px) {
    .logo-grid {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 50px;
        margin-top: 50px;
    }
    .logo-grid img {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        gap: 20px;
    }
    .logo-grid img {
        max-width: 110px;
    }
}

/* Testimonials Section */

/* --- Base Desktop Layout Styles --- */
.testimonials {
    background: radial-gradient(ellipse at center,
        rgba(14, 116, 144, 0.38) 0%,
        rgba(14, 116, 144, 0.18) 30%,
        rgba(14, 116, 144, 0.01) 60%,
        transparent 90%);
    padding-top: 50px;
}

.testimonials a {
    padding: 2px 4px;
    border: none;
}

.testimonial-grid {
    display: grid;
    /* Keeps your clean two-column grid on desktop screens */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 40px auto 0 auto;
    width: 98%;
}

.testimonial-card {
    background: rgba(14, 116, 144, 0.01);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between; 
}

.testimonial-text {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(17, 17, 17, 0.6) 100%);
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center; /* FIXED: Centers the testimonial quote text block on desktop */
}

/* The signature profile section */
.testimonial-profile {
    display: flex;
    gap: 20px;
    align-items: center; 
    justify-content: center;
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-primary);
    text-align: left; /* Keeps the name and credentials aligned left relative to each other */
}

.testimonial-author .name {
    font-style: normal;
}

.testimonial-author .credentials {
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 20px; /* Keeps the standard indent on desktop layouts */
    font-weight: 500;
}


/* --- Responsive Mobile Styles (< 1200px) --- */
@media (max-width: 1200px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-image {
        width: 100px;
        height: 100px;
    }

    /* Keep the profile row centered on mobile */
    .testimonial-profile {
        justify-content: center;
    }

    /* Stack credentials cleanly under the name on smaller devices */
    .testimonial-author .credentials {
        margin-left: 0;
        display: block; 
        margin-top: 2px;
    }
}