/* ===== CSS Variables & Reset ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 6px 16px -4px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
}

.btn-light:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ===== Header / Navbar ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== Top Bar (removed) ===== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links .nav-cta-btn {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links .nav-cta-btn::after,
.nav-links .nav-login-link::after,
.nav-links .nav-user-btn::after,
.nav-links .nav-auth-login::after,
.nav-links .nav-auth-signup::after {
    display: none;
}

.nav-links .nav-cta-btn:hover {
    background: #fff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.nav-links .nav-login-link {
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
}

.nav-links .nav-login-link:hover,
.nav-links .nav-login-link.active {
    color: var(--primary);
}

/* ===== Navbar Auth Buttons (Logged Out) ===== */
.nav-links .nav-auth-login {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-links .nav-auth-login:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.nav-links .nav-auth-signup {
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.nav-links .nav-auth-signup:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* ===== Top Bar Quote (removed) ===== */

/* ===== Navbar User (Logged In) ===== */
img.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.nav-user {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 50px;
    border: 2px solid var(--light-gray);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-user-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.nav-user-btn .avatar-initials {
    flex-shrink: 0;
}

.nav-user-btn .avatar {
    flex-shrink: 0;
}

.nav-user-btn span {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-btn i {
    font-size: 12px;
    color: var(--gray);
    transition: var(--transition);
}

.nav-user-btn:hover i {
    color: var(--primary);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--light-gray);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1002;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 6px;
    text-align: left;
}

.nav-dropdown-header .nav-dropdown-user {
    min-width: 0;
}

.nav-dropdown-header strong {
    display: block;
    font-size: 15px;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown-header small {
    color: var(--gray);
    font-size: 12px;
    text-transform: capitalize;
}

.nav-user-btn.open i {
    transform: rotate(180deg);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-dropdown a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--secondary);
    transform: translateX(3px);
}

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

.nav-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 6px 0;
}

.nav-dropdown a.logout-link {
    color: #ef4444;
}

.nav-dropdown a.logout-link i {
    color: #ef4444;
}

.nav-dropdown a.logout-link:hover {
    background: #fef2f2;
    color: #dc2626;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-mobile-user { display: none; }
.nav-mobile-actions { display: none; }

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-slide .hero-content {
    max-width: 650px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .hero-content .slide-subtitle {
    display: inline-block;
    background: var(--gradient);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-slide .hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.hero-slide .hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-slide .hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.hero-slide .hero-content .hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.8s forwards;
}

.hero-slide .hero-content .hero-buttons .btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.hero-slide .hero-content .hero-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.hero-slide .hero-content .hero-buttons .btn-secondary:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.slider-dot.active {
   width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
    transform: scale(1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* ===== Hero Wave Divider ===== */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ===== Stats Section ===== */
.stats {
    padding: 60px 0;
    background: var(--secondary);
    color: #fff;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.1);
}

.stat-item:last-child::after {
    display: none;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item p {
    color: #94a3b8;
    font-size: 16px;
    margin-top: 5px;
    font-weight: 500;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .section-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-title h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--light);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.15);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 30px;
}

.service-card-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.service-card-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary);
}

.service-card-body p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.service-card-body .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    transition: var(--transition);
}

.service-card-body .service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
}

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

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-wrapper .about-experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--gradient);
    color: #fff;
    padding: 20px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.about-experience-badge h3 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.about-experience-badge p {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.2;
}

.about-content h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 15px;
}

.about-feature .check {
    width: 22px;
    height: 22px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: 100px 0;
    background: var(--light);
}

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

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

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

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}

.portfolio-img-wrapper .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-overlay .portfolio-view-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.portfolio-item:hover .portfolio-view-btn {
    transform: translateY(0);
}

.portfolio-info {
    padding: 22px;
}

.portfolio-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.portfolio-info p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 100px 0;
}

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

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 60px;
    color: rgba(37, 99, 235, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 2px;
}

.testimonial-card > p {
    color: var(--gray);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--light-gray);
}

.testimonial-author h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--gray);
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: var(--gradient);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

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

.cta h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-light {
    background: #fff;
    color: var(--primary);
    padding: 14px 36px;
    font-size: 17px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .logo {
    color: #fff;
    margin-bottom: 15px;
}

.footer-about p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
    max-width: 350px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.footer-newsletter-form input:focus {
    border-color: var(--primary);
}

.footer-newsletter-form button {
    padding: 10px 16px;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
}

.footer-newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: #1e293b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 600;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Page Banner ===== */
.page-banner {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.page-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.page-banner h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 15px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-light);
}

.breadcrumb span {
    margin: 0 8px;
    color: rgba(255,255,255,0.4);
}

/* ===== Services Page - Detailed (Zigzag) ===== */
.services-detailed {
    padding: 80px 0;
    background: var(--light);
}

.services-detailed .container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1400px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    scroll-margin-top: 120px;
}

/* Alternate zigzag: odd rows = image left, even rows = image right */
.service-detail-card:nth-child(even) .service-detail-img-wrap {
    order: 2;
}

.service-detail-card:nth-child(even) .service-detail-content {
    order: 1;
}

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

.service-detail-card:last-child {
    margin-bottom: 0;
}

.service-detail-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-detail-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(37,99,235,0) 0%, rgba(6,182,212,0.2) 100%);
    pointer-events: none;
}

.service-detail-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.service-detail-card:hover .service-detail-img {
    transform: scale(1.06);
}

.service-detail-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-detail-content .service-detail-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-detail-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features-list {
    list-style: none;
    padding: 0;
    color: var(--gray);
}

.service-features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.service-features-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 15px;
    flex-shrink: 0;
}

/* ===== Team Section ===== */
.team {
    padding: 100px 0;
    background: var(--light);
}

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

.team-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-slow);
}

.team-card:hover .team-card-img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
}

.team-info h4 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-info span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.team-info p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--light);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.2;
}

.contact-info h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 3px;
}

.contact-item p,
.contact-item a {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

.contact-item a:hover {
    color: var(--primary);
}

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

.contact-form-wrapper h3 {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--secondary);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--light);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

/* ===== Contact Map ===== */
.contact-map {
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 40px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Quotation Section ===== */
.quotation {
    padding: 100px 0;
    background: var(--light);
}

.quotation .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.quotation-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.2;
}

.quotation-info h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quotation-info > p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.quotation-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.quotation-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.quotation-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quotation-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.quotation-feature h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.quotation-feature p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.quotation-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.quotation-contact-info .contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.quotation-contact-info .contact-info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.quotation-contact-info .contact-info-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.quotation-contact-info .contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quotation-contact-info .contact-info-content small {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quotation-contact-info .contact-info-content a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.quotation-contact-info .contact-info-content a:hover {
    color: var(--primary);
}

.quotation-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quotation-form-wrapper h3 {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 25px;
}

/* ===== Custom Modal / Toast ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-overlay.show .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
}

.modal-icon i {
    color: #fff;
    font-size: 36px;
}

.modal-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.modal-box p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

@keyframes modalPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero-slide .hero-content h1 {
        font-size: 40px;
    }

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

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

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

    /* Tablet: better forms */
    .contact-form-wrapper,
    .quotation-form-wrapper {
        padding: 30px;
    }

    /* Tablet: reduce section padding */
    .services,
    .portfolio,
    .testimonials,
    .team,
    .about {
        padding: 80px 0;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet-specific improvements */
    .hero-slider {
        height: 90vh;
        min-height: 500px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-links .nav-cta-btn {
        padding: 7px 16px;
        font-size: 13px;
    }

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

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

    .form-row > .form-group {
        margin-bottom: 18px;
    }

    .quotation .container,
    .contact .container {
        gap: 40px;
    }

    .quotation-info h2,
    .contact-info h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    body {
        padding-top: 72px;
    }

    .navbar {
        padding: 12px 0;
        gap: 12px;
    }

    .logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo-img {
        height: 34px;
    }

    .nav-mobile-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        position: relative;
        z-index: 1001;
    }

    .hamburger {
        display: flex;
        position: relative;
        margin-left: 0;
        z-index: 1001;
    }

    /* Mobile user profile circle - visible next to hamburger */
    .nav-mobile-user {
        display: flex;
        align-items: center;
        position: relative;
        margin-left: 0;
        margin-right: 0;
        z-index: 1001;
    }
    .nav-mobile-user .nav-dropdown {
        display: none;
        position: absolute !important;
        top: calc(100% + 8px);
        right: 0;
        left: auto !important;
        width: min(260px, calc(100vw - 24px)) !important;
        max-width: 260px !important;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        z-index: 2000;
        padding: 8px;
        margin-top: 0 !important;
    }
    .nav-mobile-user .nav-dropdown.show { display: block; }

    /* Dropdown links inside mobile user profile */
    .nav-mobile-user .nav-dropdown a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 14px;
        color: #334155;
        text-decoration: none;
        transition: background 0.2s;
    }
    .nav-mobile-user .nav-dropdown a:hover {
        background: #f1f5f9;
        color: #4f46e5;
    }
    .nav-mobile-user .nav-dropdown a i {
        width: 18px;
        text-align: center;
        color: #64748b;
    }
    .nav-mobile-user .nav-dropdown .nav-dropdown-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 4px;
    }
    .nav-mobile-user .nav-dropdown .nav-dropdown-divider {
        height: 1px;
        background: #e2e8f0;
        margin: 4px 0;
    }
    .nav-mobile-user .nav-dropdown .logout-link {
        color: #ef4444;
    }
    .nav-mobile-user .nav-dropdown .logout-link:hover {
        background: #fef2f2;
        color: #dc2626;
    }

    /* Hide the nav-user (profile inside menu) on mobile */
    .nav-links .nav-user { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 88px 20px 40px;
        transition: left 0.4s ease;
        gap: 14px;
        z-index: 1000;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .nav-links a {
        font-size: 16px;
        padding: 12px 18px;
        display: inline-flex;
        justify-content: center;
        width: min(100%, 320px);
        border-radius: 0;
        background: transparent;
        border: none;
        text-align: left;
        justify-content: flex-start;
    }

    .nav-links .nav-cta-btn {
        font-size: 15px;
        padding: 13px 22px;
        margin-top: 6px;
        width: min(100%, 320px);
        border-radius: 12px;
        background: var(--primary, #4f46e5);
        color: #fff;
        border: none;
        text-align: center;
        justify-content: center;
    }

    .nav-links .nav-login-link {
        font-size: 16px;
    }

    .nav-user-btn {
        font-size: 16px;
        padding: 6px 14px 6px 6px;
        border-width: 2px;
    }

    .nav-user-btn span {
        font-size: 16px;
        max-width: 140px;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        box-shadow: var(--shadow-md);
    }

    .nav-dropdown-header {
        text-align: left;
    }

    .hero-slider {
        height: auto;
        min-height: 560px;
        padding-bottom: 32px;
    }

    .hero-slide .container {
        padding-top: 34px;
        padding-bottom: 72px;
    }

    .hero-slide .hero-content {
        max-width: 100%;
    }

    .hero-slide .hero-content h1 {
        font-size: 32px;
    }

    .hero-slide .hero-content p {
        font-size: 16px;
    }

    .hero-slide .hero-content .hero-buttons {
        gap: 12px;
    }

    .hero-slide .hero-content .hero-buttons .btn {
        width: 100%;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

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

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

    .filter-bar {
        flex-direction: column;
        gap: 10px;
    }

    .filter-bar > div {
        min-width: 0 !important;
        flex: 1 1 100% !important;
        flex-direction: column;
    }

    .filter-bar > div > div {
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 100% !important;
    }

    .filter-bar button[type="submit"],
    .filter-bar a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .filter-bar input[type="number"],
    .filter-bar input[type="search"] {
        width: 100% !important;
        max-width: none !important;
    }

    .filter-bar select {
        width: 100% !important;
    }

    .about .container,
    .contact .container,
    .quotation .container,
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        margin-bottom: 42px;
    }

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

    .section-title p {
        font-size: 16px;
    }

    /* Zigzag: reset order on mobile so images stack above content */
    .service-detail-card:nth-child(even) .service-detail-img-wrap {
        order: 1;
    }

    .service-detail-card:nth-child(even) .service-detail-content {
        order: 2;
    }

    .about-image-wrapper img {
        height: 320px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item h3 {
        font-size: 30px;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-banner h1 {
        font-size: 32px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrapper,
    .quotation-form-wrapper {
        padding: 25px;
    }

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

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

    .cta p {
        font-size: 16px;
    }

    .service-detail-card {
        padding: 22px;
    }

    .service-detail-img {
        height: 250px;
    }

    .about-experience-badge {
        bottom: 15px;
        left: 15px;
        padding: 15px 20px;
    }

    .about-experience-badge h3 {
        font-size: 28px;
    }

    .hero-wave svg {
        height: 50px;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    body {
        padding-top: 68px;
    }

    .navbar {
        padding: 10px 0;
    }

    .logo {
        font-size: 18px;
    }

    .logo-img {
        height: 30px;
    }

    .hero-slide .hero-content h1 {
        font-size: 26px;
    }

    .hero-slide .hero-content p {
        font-size: 14px;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-item {
        padding: 14px 12px;
    }

    .stat-item::after {
        display: none;
    }

    .page-banner h1 {
        font-size: 26px;
    }

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

    .section-title p {
        font-size: 15px;
    }

    .slider-dots {
        bottom: 18px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 26px;
        border-radius: 8px;
    }

    .about-image-wrapper img {
        height: 260px;
    }

    .about-image-wrapper .about-experience-badge {
        bottom: 14px;
        left: 14px;
        padding: 12px 16px;
    }

    .about-experience-badge h3 {
        font-size: 24px;
    }

    .service-card-body,
    .portfolio-info,
    .testimonial-card,
    .contact-form-wrapper,
    .quotation-form-wrapper {
        padding-left: 18px;
        padding-right: 18px;
    }

    .service-card-img {
        height: 180px;
    }

    .service-card-body h3 {
        font-size: 18px;
    }

    .footer-bottom {
        gap: 12px;
    }
}

/* ===== Lazy Loading ===== */
.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* ===== Flash Alerts (shared with marketplace) ===== */
.alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 52px 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    animation: alertSlideIn 0.35s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.alert .alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}
.alert .alert-close:hover {
    background: rgba(15, 23, 42, 0.16);
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
