/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

/* Logo image styles */
.nav-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  width: 110px;
  height: auto;
  max-height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo-link:hover .nav-logo-img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
}

@media (max-width: 768px) {
  .nav-logo-img { width: 90px; max-height: 40px; }
}

@media (max-width: 360px) {
  .nav-logo-img { width: 80px; max-height: 36px; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease 0.2s both;
}

.title-line {
    display: block;
    position: relative;
}

.title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideInUp 1s ease 0.4s both;
}

.hero-description {
    margin-bottom: 2rem;
    animation: slideInUp 1s ease 0.6s both;
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: slideInUp 1s ease 0.8s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-small:hover {
    background: #2980b9;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease 1s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shape {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50% 30% 60% 40%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-float-img {
    position: absolute;
    max-width: 300px;
    height: auto;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    animation: floatElement 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(-10px) rotate(-5deg) scale(0.95); }
    75% { transform: translateY(-20px) rotate(3deg) scale(1.02); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-philosophy {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(231, 76, 60, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(52, 152, 219, 0.02) 100%);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--text-color);
}

.service-features {
    margin: 1.5rem 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-card:hover .feature-item {
    color: var(--text-color);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--secondary-color);
    margin-right: 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-card:hover .feature-item i {
    color: var(--accent-color);
    transform: scale(1.2);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: none;
}

.service-cta:hover {
    background: linear-gradient(135deg, #2980b9, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

.service-cta i {
    transition: transform 0.3s ease;
}

.service-cta:hover i {
    transform: translateX(3px);
}

.peb-benefits {
    list-style: none;
    margin-top: 1rem;
}

.peb-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.peb-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Why Choose Us Section - Enhanced */
.why-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.why-us-content {
    position: relative;
    z-index: 2;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch; /* Ensures all cards have equal height */
}

.why-us-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensures consistent card height */
}

.why-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.why-us-item:hover::before {
    left: 100%;
}

.why-us-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.why-us-item i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.why-us-item:hover i {
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.why-us-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.why-us-item:hover h4 {
    color: var(--secondary-color);
}

.why-us-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    flex-grow: 1; /* Allows text to fill available space */
}

.why-us-item:hover p {
    color: var(--text-color);
}

/* Add staggered animation delays */
.why-us-item:nth-child(1) { animation-delay: 0.1s; }
.why-us-item:nth-child(2) { animation-delay: 0.2s; }
.why-us-item:nth-child(3) { animation-delay: 0.3s; }
.why-us-item:nth-child(4) { animation-delay: 0.4s; }
.why-us-item:nth-child(5) { animation-delay: 0.5s; }
.why-us-item:nth-child(6) { animation-delay: 0.6s; }
.why-us-item:nth-child(7) { animation-delay: 0.7s; }
.why-us-item:nth-child(8) { animation-delay: 0.8s; }

/* Pulse animation for icons */
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.why-us-item:hover i {
    animation: pulse-icon 0.6s ease-in-out;
}

/* Enhanced section header for Why Choose Us */
.why-us .section-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.why-us .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Special treatment for the first item */
.why-us-item:first-child {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, var(--bg-color) 100%);
    border: 2px solid var(--secondary-color);
}

.why-us-item:first-child:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, var(--bg-color) 100%);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.3);
}

/* Founder's Note */
.founder-note {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.founder-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.founder-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Phone Numbers Styling */
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.02) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.phone-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.phone-link:hover::before {
    left: 100%;
}

.phone-link:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(52, 152, 219, 0.9) 100%);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.phone-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.phone-link:hover i {
    color: white;
    transform: scale(1.1);
}

.phone-link span {
    flex-grow: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Special styling for different phone types */
.phone-link:nth-child(1) i {
    color: var(--accent-color);
}

.phone-link:nth-child(1):hover i {
    color: white;
}

.phone-link:nth-child(2) i {
    color: #27ae60;
}

.phone-link:nth-child(2):hover i {
    color: white;
}

.phone-link:nth-child(3) i {
    color: #8e44ad;
}

.phone-link:nth-child(3):hover i {
    color: white;
}

.phone-link:nth-child(4) i {
    color: #e67e22;
}

.phone-link:nth-child(4):hover i {
    color: white;
}

/* Click animation */
.phone-link:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Add phone icon animation */
@keyframes phone-ring {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.05); }
    50% { transform: rotate(10deg) scale(1.05); }
    75% { transform: rotate(-5deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

.phone-link:hover i {
    animation: phone-ring 0.6s ease-in-out;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-item:hover i {
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-item:hover h4 {
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-item:hover p {
    color: var(--text-color);
}

.contact-form {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
    transition: left 0.5s;
}

.contact-form:hover::before {
    left: 100%;
}

.contact-form:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: var(--bg-color);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.validation-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group input:valid:not(:placeholder-shown) ~ .validation-icon,
.form-group textarea:valid:not(:placeholder-shown) ~ .validation-icon {
    opacity: 1;
    color: #27ae60;
}

.form-group input:valid:not(:placeholder-shown) ~ .validation-icon::before,
.form-group textarea:valid:not(:placeholder-shown) ~ .validation-icon::before {
    content: '✓';
}

.form-group input:invalid:not(:placeholder-shown) ~ .validation-icon,
.form-group textarea:invalid:not(:placeholder-shown) ~ .validation-icon {
    opacity: 1;
    color: var(--accent-color);
}

.form-group input:invalid:not(:placeholder-shown) ~ .validation-icon::before,
.form-group textarea:invalid:not(:placeholder-shown) ~ .validation-icon::before {
    content: '✗';
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--secondary-color);
}

.form-check label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

.btn.loading .btn-loader {
    display: inline-block;
}

.btn.loading i {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-footer i {
    color: var(--secondary-color);
}

/* Enhanced Contact section header */
.contact .section-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.contact .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Special styling for the first contact item */
.contact-item:first-child {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, var(--bg-color) 100%);
    border: 2px solid var(--secondary-color);
}

.contact-item:first-child:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, var(--bg-color) 100%);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.3);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Service Features */
.service-features {
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.service-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-cta:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.portfolio-images {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-slide.active {
    opacity: 1;
}

.portfolio-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
}

.portfolio-content {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-item:hover .tag {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Portfolio Categories */
.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover,
.category-btn.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Portfolio Description */
.portfolio-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Mobile Fixes - Critical */
@media (max-width: 768px) {
    /* Fix viewport issues */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Fix container overflow */
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Fix hero section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
        overflow: hidden;
    }
    
    .hero-content {
        order: 1;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .hero-visual {
        order: 2;
        height: 300px;
        padding: 0;
        margin: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-description p {
        max-width: 100%;
        text-align: center;
    }
    
    /* Fix navigation */
    .nav-container {
        padding: 1rem;
    }
    
    .nav-logo-img {
        width: 80px;
        max-height: 36px;
    }
    
    /* Fix services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    /* Fix portfolio grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .portfolio-item {
        margin: 0;
    }
    
    .portfolio-images {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 1.2rem;
    }
    
    /* Fix contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .contact-item {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    /* Fix why us section */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .why-us-item {
        padding: 1.5rem;
        min-height: auto;
    }
    
    /* Fix team section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    /* Fix testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .testimonial-item {
        padding: 1.5rem;
        min-height: auto;
    }
    
    /* Fix category buttons */
    .portfolio-categories {
        gap: 0.5rem;
        margin: 1rem 0 2rem;
    }
    
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Fix buttons */
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Fix phone numbers */
    .phone-numbers {
        gap: 0.6rem;
    }
    
    .phone-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    
    /* Fix footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Fix floating elements */
    .hero-floating-elements {
        display: none;
    }
    
    /* Fix shapes and visual elements */
    .hero-shape {
        width: 250px;
        height: 250px;
    }
    
    .hero-float-img {
        max-width: 200px;
    }
    
    /* Fix section headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Fix form elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Fix stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Fix certifications */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Fix FAQ */
    .faq-grid {
        margin: 1.5rem auto 0;
        padding: 0 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Further reduce font sizes */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Reduce padding further */
    .container {
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 0.5rem;
    }
    
    /* Make buttons full width on very small screens */
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Fix stat items */
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .stat-item {
        align-items: center;
    }
    
    /* Fix service cards */
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Fix contact form */
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.4rem;
    }
    
    /* Fix portfolio */
    .portfolio-images {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.1rem;
    }
    
    /* Fix tags */
    .tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Fix category buttons */
    .category-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Fix team section */
    .team-member {
        padding: 1.2rem;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Fix testimonials */
    .testimonial-content p {
        font-size: 0.85rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Fix phone links */
    .phone-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .phone-link i {
        font-size: 0.8rem;
        width: 16px;
    }
    
    /* Fix form inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    /* Fix footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    /* Fix quick actions */
    .quick-actions {
        bottom: 10px;
        right: 10px;
    }
    
    .qa-toggle {
        width: 45px;
        height: 45px;
    }
}

/* Fix iOS Safari specific issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    .nav-menu {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* Fix Android Chrome specific issues */
@supports not (-webkit-touch-callout: none) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Ensure proper box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Fix overflow issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Fix grid overflow */
.container {
    overflow: hidden;
}

/* Fix section overflow */
section {
    overflow: hidden;
    width: 100%;
}

/* Fix flexbox overflow */
.hero-cta,
.portfolio-categories,
.portfolio-tags,
.phone-numbers {
    flex-wrap: wrap;
    max-width: 100%;
}

/* Fix word wrapping */
h1, h2, h3, h4, h5, h6, p, li, a, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix button overflow */
.btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Fix input overflow */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix image overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix table overflow */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Fix pre/code overflow */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Fix iframe overflow */
iframe {
    max-width: 100%;
    width: 100%;
}

.portfolio-item {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.portfolio-images {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-slide.active {
    opacity: 1;
}

.portfolio-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
}

.portfolio-content {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-item:hover .tag {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Portfolio Categories */
.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover,
.category-btn.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Portfolio Description */
.portfolio-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

.portfolio-item {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.portfolio-images {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-slide.active {
    opacity: 1;
}

.portfolio-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
}

.portfolio-content {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-item:hover .tag {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Portfolio Categories */
.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover,
.category-btn.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Portfolio Description */
.portfolio-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Team Section */
.team {
    padding: 5rem 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.credential {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Certifications Section */
.certifications {
    padding: 3rem 0;
    background: var(--bg-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--bg-light);
    transition: var(--transition);
}

.cert-item:hover {
    background: var(--bg-color);
    box-shadow: var(--shadow);
}

.cert-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cert-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonials Section - Enhanced */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    position: relative;
    z-index: 2;
}

/* Desktop Layout - 3 Column Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.testimonial-item {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.testimonial-item:hover::before {
    left: 100%;
}

.testimonial-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content p::after {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    bottom: -40px;
    right: -10px;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Enhanced section header for Testimonials */
.testimonials .section-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.testimonials .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Special treatment for first testimonial */
.testimonial-item:first-child {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, var(--bg-color) 100%);
    border: 2px solid var(--secondary-color);
}

.testimonial-item:first-child:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, var(--bg-color) 100%);
    box-shadow: 0 25px 60px rgba(52, 152, 219, 0.3);
}

/* Auto-rotating testimonial images container */
.testimonial-images {
    display: none; /* Hidden by default, shown only when JS enables it */
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(231, 76, 60, 0.2));
}

/* Slider indicators */
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--bg-color);
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background: var(--bg-light);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
    color: white;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.faq-question:hover h3 {
    color: white;
}

.faq-question i {
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-question:hover i {
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    background: var(--bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 900px;
    }

    .testimonial-item {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .testimonial-content p {
        font-size: 0.95rem;
    }

    .testimonials .section-header h2::after {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .founder-content blockquote {
        font-size: 1.2rem;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 700px;
    }

    /* Mobile Why Choose Us adjustments */
    .why-us-item {
        padding: 1.5rem 1.2rem;
        min-height: 250px;
    }

    .why-us-item i {
        font-size: 2.5rem;
    }

    .why-us-item h4 {
        font-size: 1.1rem;
    }

    /* Mobile Contact adjustments */
    .contact-item {
        padding: 1.2rem;
        gap: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
    }

    /* Mobile Testimonials adjustments */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .testimonial-item {
        padding: 1.5rem;
        min-height: 280px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .testimonial-content p::before {
        font-size: 3rem;
        top: -15px;
        left: -5px;
    }

    .testimonial-content p::after {
        font-size: 3rem;
        bottom: -35px;
        right: -5px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .testimonials .section-header h2::after {
        width: 60px;
    }
}



/* Mobile Contact Section Fix */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phone-numbers {
        gap: 0.6rem;
    }

    .phone-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    .phone-link i {
        font-size: 0.9rem;
        width: 18px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .contact .section-header h2 {
        font-size: 2rem;
    }

    .contact .section-header h2::after {
        width: 80px;
    }
}

/* Contact Form Enhancements */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Submit button styling */
.btn[type='submit'] {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn[type='submit']::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn[type='submit']:hover::before {
    left: 100%;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: var(--accent-color);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #27ae60;
}

/* Slider Arrow Navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}

/* Mobile responsive arrows */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow-left {
        left: 15px;
    }

    .slider-arrow-right {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }
}

/* Enhanced Why Choose Us Grid - 4 Column Layout */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 700px;
    }
}

@media (max-width: 480px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 700px;
    }
}

/* 4 Column Layout Enhancements */
@media (min-width: 1400px) {
    .why-us-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: 1400px;
    }
}

/* Improved spacing for 4-column layout */
@media (min-width: 1200px) and (max-width: 1399px) {
    .why-us-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 1200px;
    }
}

/* Better icon sizing for 4-column layout */
@media (min-width: 1200px) {
    .why-us-item i {
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }

    .why-us-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .why-us-item p {
        font-size: 0.9rem;
    }
}

/* Portfolio Section Enhancements */
.portfolio-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.portfolio-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Enhanced Portfolio Overlay */
.portfolio-overlay h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Portfolio Stats Section */
.portfolio-stats {
    background: var(--bg-light);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Portfolio Categories */
.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: var(--secondary-color);
    color: white;
}

/* Portfolio Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Section Enhanced */
.portfolio {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Portfolio Slider Styles */
.portfolio-images {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-slide.active {
    opacity: 1;
}

.portfolio-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
}

/* Mobile Portfolio Adjustments */
@media (max-width: 768px) {
    .portfolio-images {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .portfolio-images {
        height: 180px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* Hero Section Layout */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    order: 1;
    z-index: 2;
}

.hero-visual {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
}

.hero-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50% 30% 60% 40%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Mobile-only carousel for Why Choose Us */
@media (max-width: 768px) {
  .why-us-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0.25rem 0.75rem;
  }
  .why-us-grid::-webkit-scrollbar {
    height: 6px;
  }
  .why-us-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
  }
  .why-us-item {
    flex: 0 0 88%; /* one card per view */
    scroll-snap-align: center;
    margin-right: 0.5rem;
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .why-us-item {
    flex-basis: 92%;
  }
}

/* WhatsApp link styling to pair with phone links */
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(37, 211, 102, 0.04) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.whatsapp-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.15), transparent);
    transition: left 0.5s;
}

.whatsapp-link:hover::before {
    left: 100%;
}

.whatsapp-link:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    color: #25D366;
}

.whatsapp-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* Compact pairing on small screens */
@media (max-width: 480px) {
  .phone-numbers .phone-link, .phone-numbers .whatsapp-link {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}


/* Phone numbers: inline WhatsApp icon to the right of each number */
.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Make the call button take the row width minus the WhatsApp icon */
.phone-numbers .phone-link {
  display: inline-flex;
  align-items: center;
  width: calc(100% - 56px); /* leave space for the WhatsApp icon */
  margin-right: 8px;
}

/* Compact WhatsApp icon button placed to the right of its preceding phone link */
.phone-numbers .phone-link + .whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  min-width: 48px;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

/* Tighten icon-only look */
.phone-numbers .whatsapp-link span {
  display: none;
}

/* Ensure each pair wraps to a new line on small screens as a row */
.phone-numbers .whatsapp-link + .phone-link {
  display: block;
}

@media (max-width: 480px) {
  .phone-numbers .phone-link {
    width: calc(100% - 52px);
  }
  .phone-numbers .phone-link + .whatsapp-link {
    min-width: 44px;
    height: 40px;
  }
}


/* Phone numbers: grid layout to place WhatsApp icon at right of each number */
.phone-numbers {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 0.6rem 0.5rem;
  align-items: center;
}

.phone-numbers .phone-link {
  width: 100%;
}

.phone-numbers .whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  min-width: 48px;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  justify-self: end;
}

/* Visually hide label but keep for accessibility */
.phone-numbers .whatsapp-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .phone-numbers {
    grid-template-columns: 1fr 44px;
  }
  .phone-numbers .whatsapp-link {
    min-width: 44px;
    height: 40px;
  }
}


/* Mobile Navigation Fixes */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    width: 100%;
    max-height: calc(100vh - 70px); /* keep inside screen */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    text-align: left;
    transition: left 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    z-index: 1000;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-menu .nav-link:last-child {
    border-bottom: none;
  }
  /* lock body scroll when menu open */
  body.nav-open {
    overflow: hidden;
    height: 100vh;
  }
  /* bigger tap target for hamburger */
  .nav-toggle {
    padding: 0.5rem;
  }
}


/* Mobile navbar spacing fix and visibility */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1100;
  background: #fff;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem; /* tighter so hamburger is not cut */
  }
  .nav-logo h2 {
    font-size: 1.4rem; /* fit brand and hamburger in one row */
  }
  .nav-toggle .bar {
    width: 22px;
  }
}

@media (max-width: 360px) {
  .nav-logo h2 {
    font-size: 1.25rem;
  }
  .nav-container {
    padding: 0.6rem 0.8rem;
  }
}


/* Testimonials responsive overrides (safe, appended) */
/* Default: 2 columns set above. Ensure tablet keeps 2 cols */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile: 1 column and tighter spacing */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 600px;
  }
  .testimonial-item {
    padding: 1.5rem;
    min-height: 300px;
  }
  /* reduce image height inside testimonial cards on phones */
  .testimonial-item .testimonial-images .testimonial-slider {
    height: 160px;
  }
}

/* Hero floating image */
.hero-float-img {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 220px;
  height: auto;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  opacity: 0.95;
}

@media (max-width: 992px) {
  .hero-float-img { right: 0; bottom: 0; width: 180px; }
}

@media (max-width: 600px) {
  .hero-float-img { right: 10px; bottom: -5px; width: 150px; }
}

/* Quick Actions (mobile only) */
.quick-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: none; /* hidden by default, enabled on mobile */
}

.qa-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.qa-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  padding: 8px;
  min-width: 180px;
  display: none;
}

.qa-panel.open { display: block; }

.qa-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-color);
  border-radius: 8px;
}

.qa-item i { width: 18px; text-align: center; color: var(--secondary-color); }
.qa-item:hover { background: var(--bg-light); }

@media (max-width: 992px) {
  .quick-actions { display: block; }
}

@media (min-width: 993px) {
  .quick-actions { display: none; }
}

/* Contact: base and mobile fixes */
.contact {
  position: relative;
}

/* Ensure scroll to #contact is visible beneath fixed navbar */
#contact { scroll-margin-top: 90px; }

/* Touch devices: avoid hover transforms that can push content off-screen */
@media (hover: none) {
  .contact-form:hover,
  .contact-item:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile layout for contact area */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.2rem;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .contact-content { gap: 1.25rem; }
  .contact-item { padding: 1rem; }
}

/* Mobile Navbar definitive overrides (ensure visibility) */
@media (max-width: 992px) {
  .nav-toggle { display: flex; position: relative; z-index: 2100; }
  .navbar { position: sticky; top: 0; z-index: 2000; }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 2050;
    text-align: left;
  }
  .nav-menu.active { left: 0; }
  .nav-menu .nav-link {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-menu .nav-link:last-child { border-bottom: none; }
  body.nav-open { overflow: hidden; height: 100vh; }
}

