* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Header & Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 50%, #ffffff 100%);
    color: white;
    padding: 4rem 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

@keyframes heroGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: grayscale(100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: white;
    font-weight: 500;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.rating-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.feature-item .icon {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lawyer-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.address {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
    color: white;
    font-size: 0.95rem;
}

.btn-call {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-call:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Category Slider (like Cyber Law Consulting tiles) */
.category-slider {
    background: var(--bg-white);
    padding: 2.5rem 0 0;
}

.category-slider-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.category-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.category-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.category-card {
    min-width: 220px;
    max-width: 260px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.category-image-wrapper {
    height: 140px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-label {
    text-align: center;
    padding: 0.9rem 0.75rem 1rem;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.category-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.category-nav-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.category-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
    display: block;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-card > div:not(.service-image-wrapper) {
    padding: 0 2rem;
}

.service-icon {
    font-size: 2.5rem;
    margin: 1.5rem auto 1rem;
    text-align: center;
    display: block;
    width: 100%;
    padding: 0;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 0 2rem;
    font-weight: 600;
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    padding: 0 2rem;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    padding-left: 0;
    padding: 0 2rem 2rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.about-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-intro {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.about-features li {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.reviews-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.reviews .container {
    position: relative;
    z-index: 1;
}

/* Rating Summary Badge */
.reviews-rating-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.rating-badge {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.google-logo-small {
    display: flex;
    align-items: center;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-number-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stars-animated {
    font-size: 1.75rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reviews-count-large {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Reviews Carousel */
.reviews-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-carousel-container {
    overflow: hidden;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* gap removed so each slide is exactly 100% width for clean translateX(-index * 100%) */
}

.review-card-modern {
    min-width: 100%;
    flex-shrink: 0;
    /* spacing handled inside card; keep outer slide flush for correct carousel math */
    padding: 1.5rem 0;
    box-sizing: border-box;
}

.review-card-inner {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.8s ease;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.review-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.review-card-modern.active .review-card-inner::before {
    transform: scaleY(1);
}

.review-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.review-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    animation: quoteFloat 3s ease-in-out infinite;
}

@keyframes quoteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.review-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.review-stars {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    animation: starReveal 0.8s ease 0.2s both;
    width: 100%;
    text-align: left;
}

@keyframes starReveal {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.review-text-modern {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    animation: textFadeIn 0.8s ease 0.3s both;
    width: 100%;
    text-align: left;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviewer-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideUp 0.8s ease 0.4s both;
    width: 100%;
    margin-top: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviewer-avatar-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease;
}

.review-card-inner:hover .reviewer-avatar-modern {
    transform: scale(1.1) rotate(5deg);
}

.reviewer-info-modern {
    flex: 1;
}

.reviewer-name {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.review-date-modern {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-color);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0.5rem;
}

.carousel-btn-next {
    right: 0.5rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--secondary-color);
    width: 32px;
    border-radius: 6px;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Review Link */
.review-link-container {
    text-align: center;
    margin-top: 3rem;
    animation: fadeIn 1s ease 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-google-reviews {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-google-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #3367d6, #2d8f47);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-content: start;
}

.contact-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-main-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-card p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-note a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-rating {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-review-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo {
        gap: 0.75rem;
    }

    .logo-image-wrapper {
        width: 45px;
        height: 45px;
    }

    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .lawyer-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.25rem;
    }

    .phone-number {
        font-size: 1.25rem;
    }

    .services {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        margin: 0;
    }

    .service-image-wrapper {
        height: 180px;
    }

    .service-card h3 {
        font-size: 1.25rem;
        padding: 0 1.5rem;
    }

    .service-card > p {
        font-size: 0.9rem;
        padding: 0 1.5rem;
    }

    .service-list {
        padding: 0 1.5rem 1.5rem;
    }

    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        position: static;
        margin-bottom: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .reviews {
        padding: 3rem 0;
    }

    .reviews-carousel-wrapper {
        padding: 0 2.5rem;
    }

    .review-card-inner {
        padding: 2rem;
    }

    .review-quote-icon {
        font-size: 4rem;
        top: 1rem;
        right: 1.5rem;
    }

    .review-stars {
        font-size: 1.25rem;
    }

    .review-text-modern {
        font-size: 1rem;
        max-width: 100%;
    }

    .reviewer-details {
        max-width: 100%;
    }

    .rating-badge {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .rating-main {
        justify-content: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 0;
    }

    .carousel-btn-next {
        right: 0;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-main-image {
        height: 200px;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    .category-slider {
        padding: 2rem 0;
    }

    .category-slider-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .category-nav-btn {
        width: 40px;
        height: 40px;
        position: relative;
        order: 0;
    }

    .category-nav-btn.prev {
        order: 1;
    }

    .category-track-wrapper {
        order: 2;
        width: 100%;
    }

    .category-nav-btn.next {
        order: 3;
    }

    .category-track {
        justify-content: flex-start;
        gap: 1rem;
    }

    .category-card {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .category-image-wrapper {
        height: 110px;
    }

    .category-label {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-rating {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .rating-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    .lawyer-card {
        padding: 1.25rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .phone-number {
        font-size: 1.1rem;
    }

    .address {
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .services {
        padding: 2.5rem 0;
    }

    .service-image-wrapper {
        height: 160px;
    }

    .service-icon {
        font-size: 2rem;
        margin: 1rem auto 0.75rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        padding: 0 1.25rem;
    }

    .service-card > p {
        font-size: 0.875rem;
        padding: 0 1.25rem;
    }

    .service-list {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.875rem;
    }

    .about {
        padding: 2.5rem 0;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-intro {
        font-size: 0.95rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.875rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-features li {
        font-size: 0.875rem;
        padding: 0.875rem;
    }

    .reviews {
        padding: 2.5rem 0;
    }

    .reviews-carousel-wrapper {
        padding: 0 1.25rem;
    }

    .reviews-carousel-container {
        max-width: 100%;
        border-radius: 16px;
    }

    .review-card-modern {
        padding: 1rem 0;
    }

    .review-card-inner {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .review-quote-icon {
        font-size: 3.5rem;
        top: 0.75rem;
        right: 1rem;
    }

    .review-stars {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .review-text-modern {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .reviewer-avatar-modern {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .review-date-modern {
        font-size: 0.8rem;
    }

    .rating-badge {
        padding: 1.25rem;
    }

    .rating-number-large {
        font-size: 2.25rem;
    }

    .stars-animated {
        font-size: 1.25rem;
    }

    .reviews-count-large {
        font-size: 0.875rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn-prev {
        left: 0;
    }

    .carousel-btn-next {
        right: 0;
    }

    .carousel-dots {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 28px;
    }

    .btn-google-reviews {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact {
        padding: 2.5rem 0;
    }

    .contact-main-image {
        height: 180px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card a {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .category-card {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .category-image-wrapper {
        height: 100px;
    }

    .category-label {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
    }

    .category-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.875rem;
    }

    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    a,
    .category-card {
        touch-action: manipulation;
    }

    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Improve readability on small screens */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }

    p {
        line-height: 1.6;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    color: white;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.floating-whatsapp:active {
    transform: scale(0.95);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Scroll reveal base styles */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}
