/* Base Styles & Variables */

:root {
    --primary-color: #00bfff;
    --primary-dark: #0099cc;
    --primary-light: #e0f6ff;
}

html {
    font-display: swap;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: rgb(105, 105, 105);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.fw-black {
    font-weight: 900;
}

.tracking-wide {
    letter-spacing: 1px;
}

.tracking-wider {
    letter-spacing: 2px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-subtle {
    background-color: var(--primary-light) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.page-section {
    padding: 80px 0;
    /* Enhanced padding for a more spacious, premium feel */
}

/* Custom Divider */
.divider {
    height: 4px;
    width: 60px;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-dark:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
    color: #1a1a1a;
    padding: 10px 15px;
    transition: 0.2s ease;
    position: relative;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
}

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

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

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* New Amperigo Style Hero */
.hero-amperigo {
    position: relative;
    padding: 100px 0 100px 0;
    min-height: 550px;
    background-color: #00bfff;
    /* Dark fallback */
    background-image: linear-gradient(to right, rgba(11, 28, 45, 0.9) 0%, rgba(11, 28, 45, 0.6) 50%, rgba(11, 28, 45, 0.2) 100%),
        url('../images/a3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-amperigo-shape {
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 60%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.hero-amperigo-content {
    position: relative;
    z-index: 2;
}

.slider-line-wrapper {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.slider-line-wrapper span {
    display: inline-block;
    width: 40px;
    height: 3px;
    background-color: #ffffff;
    /* Changed to white for visibility on blue background */
    margin-right: 15px;
}

.hero-amperigo-title {
    color: #ffffff;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-amperigo-text {
    color: #e0e0e0;
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Play Button */
.play-btn-wrapper {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}



/* About Icons & Utilities */


.custom-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-start-sm {
    border-left: 1px solid #dee2e6;
}

/* Services section */
.shadow-hover {
    transition: all 0.3s;
}

.shadow-hover:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
    transform: translateY(-10px);
    border-color: var(--primary-color) !important;
}

.service-icon-wrapper i {
    transition: all 0.3s ease;
}

.service-box:hover .service-icon-wrapper i {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1);
}

/* Services Section */
#services {
    background-color: #f2f2f2 !important;
}

#services h2,
#contact h2 {
    color: #1a1a1a !important;
}

.portfolio-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle architectural pattern */
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.portfolio-badge {
    display: inline-block;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.portfolio-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
}

.portfolio-slide-item {
    width: calc(33.333% - 1rem);
    scroll-snap-align: start;
}

.slider-btn {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-light) !important;
}

.portfolio-item {
    cursor: pointer;
    height: 350px;
}

.portfolio-item img {
    transition: transform 0.6s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}



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

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





/* Footer Details */
.rounded-social:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

/* Responsive constraints */
@media (max-width: 991.98px) {
    .page-section {
        padding: 60px 0;
    }



    .hero-amperigo {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero-amperigo-title {
        font-size: 3.5rem;
    }



    .portfolio-slide-item {
        width: calc(50% - 1rem);
    }
}

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

    .hero-amperigo-text {
        font-size: 1rem;
    }



    .portfolio-slide-item {
        width: 100%;
    }
}

/* Reset section backgrounds */
#about,
#portfolio {
    background-color: #ffffff !important;
}

#about .bg-white {
    background-color: #ffffff !important;
}

#about .bg-light {
    background-color: var(--primary-light) !important;
}

/* Contact Us Section Styles */
.contact-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
    line-height: 1.4;
}

.contact-form-card {
    background: #ffffff;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    /* Boxy look as per inspo */
}

.contact-form-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #1a1a1a;
}

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

.form-control-custom {
    background-color: var(--primary-light);
    border: none;
    border-radius: 0;
    padding: 15px 50px 15px 20px;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.form-group-custom i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.form-group-custom textarea.form-control-custom {
    padding-top: 15px;
    height: 150px;
    resize: none;
}

.form-group-custom textarea.form-control-custom+i {
    top: 25px;
    transform: none;
}

.btn-send {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-media-wrapper h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.social-media-wrapper p {
    color: #777;
    margin-bottom: 25px;
}

.social-grid {
    display: flex;
    gap: 15px;
}

.social-icon-box {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-box:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Diamond Testimonial Section */
.testimonials-diamond {
    padding: 50px 0;
    background-color: #f2f2f2;
    overflow: hidden;
}

.diamond-grid-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Large Main Diamond */
.diamond-main {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    /* Circuit pattern background */
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.9), rgba(0, 191, 255, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="none" stroke="white" stroke-width="0.5" stroke-opacity="0.2"><path d="M10 10 L30 10 L30 30 L50 30 L50 50 L70 50 L70 70 L90 70"/><circle cx="10" cy="10" r="2"/><circle cx="90" cy="70" r="2"/></g></svg>');
}

/* Inner Diamonds (Avatars) */
.diamond-item {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.diamond-item img {
    width: 142%;
    /* Adjusted to fill the rotated box */
    height: 142%;
    object-fit: cover;
    transform: rotate(-45deg);
    position: absolute;
    top: -21%;
    left: -21%;
    transition: all 0.5s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.diamond-item.active {
    background-color: white;
    z-index: 2;
}

.diamond-item.active img,
.diamond-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: rotate(-45deg) scale(1.1);
}

/* Content Area */
.testimonial-badge-pill {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #eee;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.testimonials-diamond .section-title-new {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1a1a1a;
    line-height: 1.2;
}

.testimonials-diamond .quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    position: relative;
}

.diamond-author-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.diamond-author-info span {
    color: #999;
    font-size: 0.95rem;
}

.diamond-nav-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-top: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

.diamond-nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 191, 255, 0.4);
}

@media (max-width: 991.98px) {
    .diamond-grid-container {
        margin-bottom: 80px;
        transform: scale(0.8);
    }

    .testimonials-diamond .section-title-new {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .diamond-grid-container {
        transform: scale(0.6);
    }
}