:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.98);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8% 5% 5%;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--primary);
    z-index: -1;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(59, 130, 246, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 6rem 5%;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
    padding-top: 1rem;
}

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

.service-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 6rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--light);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInLeft 1s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-content {
    flex: 1;
    animation: fadeInRight 1s ease;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-bottom: 2rem;
}

.about-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-list i {
    color: var(--secondary);
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    background-color: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 3px;
}

.info-item p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background-color: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 5% 2rem;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-col p {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

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

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

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero::before {
        display: none;
    }

    .about {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s ease;
        z-index: 999;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

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

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

/* CB Specialties Section */
.specialties-section {
    padding: 4rem 5%;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    color: #64748b;
    line-height: 1.6;
}

.specialties-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    margin: 0 -5%;
}

.specialties-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 5%;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.specialty-card {
    border-radius: 12px;
    width: 370px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.specialty-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.specialty-image {
    width: 100%;
    height: 350px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.specialty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.specialty-card:hover .specialty-image img {
    transform: scale(1.1);
}

.specialty-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
}

/* Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 8));
    }
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
    .specialty-card {
        width: 300px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 8));
        }
    }
}

@media (max-width: 768px) {
    .specialties-section {
        padding: 3rem 5%;
    }

    .section-header {
        margin-bottom: 2rem;
    }

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

    .section-header p {
        font-size: 0.95rem;
    }

    .specialty-card {
        width: 260px;
    }

    .specialty-image {
        height: 200px;
    }

    .specialty-card h3 {
        font-size: 1rem;
        padding: 0.5rem 0.75rem 0.75rem;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-260px * 8));
        }
    }
}

@media (max-width: 480px) {
    .specialties-section {
        padding: 2rem 5%;
    }

    .specialty-card {
        width: 290px;
    }

    .specialty-image {
        height: 280px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-220px * 8));
        }
    }
}

/* Pause animation on hover */
.specialties-container:hover .specialties-track {
    animation-play-state: paused;
}

/* Add gradient overlays for better visual effect */
.specialties-container::before,
.specialties-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.specialties-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.specialties-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

@media (max-width: 768px) {

    .specialties-container::before,
    .specialties-container::after {
        width: 50px;
    }
}

/* Visiting Card Section Styles */
.visiting-card-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.card-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card {
    width: 350px;
    height: 200px;
    position: relative;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-back {
    transform: rotateY(180deg);
}

.card-content {
    width: 100%;
}

.card-front .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
    display: block;
}

.card-front h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.card-front .title {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-info {
    margin: 15px 0;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.contact-info i {
    color: #4a90e2;
    margin-right: 8px;
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    color: #4a90e2;
    margin: 0 8px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #357abd;
}

.card-back h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
}

.services-list li {
    margin: 8px 0;
    font-size: 14px;
}

.services-list i {
    margin-right: 8px;
    color: #fff;
}

.qr-code {
    margin-top: 15px;
}

.qr-code img {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.qr-code p {
    font-size: 12px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: 300px;
        height: 180px;
    }

    .card-front .logo-text {
        font-size: 20px;
    }

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

    .contact-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 280px;
        height: 160px;
    }
}

/* Restore Motion feature styles */
.restore-feature {
    padding: 4rem 5%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.restore-feature .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.restore-feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.restore-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.restore-feature-content h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.restore-feature-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.restore-feature-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .restore-feature-container {
        grid-template-columns: 1fr;
    }

    .restore-feature {
        padding: 3rem 5%;
    }
}