/* CSS Variables & Reset */
:root {
    --primary-color: #0ca4b5;
    --primary-dark: #087f8d;
    --secondary-color: #1a2b45;
    --accent-color: #fca311;
    --text-color: #4b5563;
    --heading-color: #111827;
    --light-bg: #f3f6f8;
    --white: #ffffff;
    --dark-bg: #1f2937;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tagline {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header {
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-color);
}

.logo i {
    color: var(--primary-color);
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar .nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1rem;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
}

.navbar .nav-links .btn-nav {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
}

.navbar .nav-links .btn-nav:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 43, 69, 0.9) 0%, rgba(26, 43, 69, 0.7) 50%, rgba(26, 43, 69, 0.2) 100%);
}

.hero-content {
    color: var(--white);
    width: 100%;
}

.hero-content .subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.hero-stats .stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hero-stats .stat p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Navbar */
header.sticky {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
    position: relative;
}

.service-info .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    right: 30px;
    box-shadow: var(--shadow-md);
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-info p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-arrow:hover {
    gap: 10px;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 25px;
}

.features-list {
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.features-list li i {
    color: var(--primary-color);
}

/* Testimonials */
/* Testimonials Carousel */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Original Card Styles adapted for slide */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-card .stars {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 25px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-card .author h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.testimonial-card .author span {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dots Indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #dde0e4;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-color);
    opacity: 1;
    /* Reset opacity */
    margin-bottom: 40px;
}

.contact-methods .method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-methods .method i {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.contact-methods .method h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-methods .method p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-color);
    box-shadow: var(--shadow-lg);
    /* Stronger shadow for light bg */
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #f9f9f9;
}

/* Footer */
footer {
    background-color: #0b111a;
    /* Darker than the contact section */
    color: #b0b8c1;
    padding-top: 80px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Optional: Add a subtle texture or overlay if desired, but solid brand color is clean */

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    /* Adjusted for content balance */
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-footer {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.logo-footer span {
    color: var(--primary-color);
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #b0b8c1;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Contact List Icons */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #b0b8c1;
}

.contact-list li i {
    color: var(--primary-color);
    margin-top: 4px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 164, 181, 0.3);
}

.footer-bottom {
    padding: 30px 0;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    /* Slightly darker bottom */
    color: #8892a0;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Responsiveness */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .navbar .nav-links.active {
        transform: translateY(0);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablet */
        gap: 30px;
        text-align: left;
    }

    .footer-col.brand-col {
        grid-column: 1 / -1;
        /* Logo full width on tablet */
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

/* --- DASHBOARD REDESIGN --- */

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* Enhanced Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f0f9fa;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Modern Tabs */
.tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 5px;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Enhanced Table */
.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.orders-table th {
    background-color: #f9fafb;
    padding: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.orders-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    color: #374151;
    vertical-align: middle;
}

.orders-table tr:hover td {
    background-color: #f9fafb;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-process {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-completed {
    background-color: #d1fae5;
    color: #059669;
}

/* Filter Toolbar */
.filter-toolbar {
    background: #f9fafb;
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e5e7eb;
}

.filter-toolbar input,
.filter-toolbar select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(12, 164, 181, 0.1);
}

/* Action Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    font-size: 0.9rem;
}

.btn-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-edit {
    background-color: #f59e0b;
}

.btn-print {
    background-color: #6b7280;
}

.btn-view {
    background-color: #0ca4b5;
}

.btn-delete {
    background-color: #ef4444;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {

    /* Dashboard Container */
    .dashboard-container {
        margin-top: 80px;
        padding: 0 15px;
    }

    /* Welcome Header */
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Tabs */
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        /* Scrollbar space */
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    /* Filter Toolbar */
    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-toolbar input,
    .filter-toolbar select,
    .filter-toolbar button {
        width: 100%;
    }

    /* Card Header */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-header button {
        width: 100%;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Table Actions */
    .orders-table td:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px;
    }

    .stat-info span {
        font-size: 1.5rem;
    }
}

/* User Menu Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    padding: 5px 0;
    top: 100%;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--secondary-color) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.user-menu {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color) !important;
}

.user-menu:hover {
    background: var(--primary-color);
    color: #fff !important;
}