:root {
    --primary-color: #00f2f2;
    --secondary-color: #4a90e2;
    --text-color: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --light-bg: #f8f9fa;
}

html, body {
    overflow-x: hidden; /* Prevents overflow scrolling on small or keypad devices */
    width: 100%;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.navbar {
    background: var(--text-color) !important;
    backdrop-filter: blur(1px);
}

.navbar-brand img {
    height: 40px;
}

.consulting-btn {
    background: #b6d3f3;
    color: rgb(8, 8, 8);
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 15px;
    transition: background-color 0.3s ease;
}

.consulting-btn:hover {
    background: #9abce6;
}

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://placeholder.com/wp-content/uploads/2018/10/placeholder.com-logo1.png');
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.creative-section {
    background-size: cover;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    border-radius: 0px 50px 50px 0px;
    background: var(--text-color)
}

.create_txt {
    text-align: left;
    padding: 2rem 0rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content .welcome-text {
    color: #666;
    font-size: 1.5rem;
}

.tech-solutions {
    color: var(--primary-color);
}

.button-btn {
    background: var(--text-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
}

.stats-bar {
    background: #0f172a; /* Deep slate baseline for professional contrast */
    color: white;
    padding: 60px 0;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color); /* Retain original cyan brand color exactly */
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title1 {
    color: grey;
    font-size: 1.3rem;
}

.section-title2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

    .section-title2 b {
        color: #00f2f2;
        font-size: 2.5rem;
        font-weight: 590;
    }

.service-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-10px);
    }


.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

footer {
    background: var(--text-color);
    color: black;
    padding: 3rem 0;
}

hr {
    color: white;
}

footer div a {
    color: white;
    text-decoration: none;
}

footer div p {
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ============================================================
   MOBILE NAVBAR: menu expands BELOW the bar, pushes content down
   ============================================================ */
#mainNavbar {
    /* The navbar must have a solid background so menu sits on top cleanly */
    background: linear-gradient(90deg, #00f2f2 0%, #4a90e2 100%) !important;
    z-index: 1030;
}

/* On mobile, collapsed menu slides DOWN and does NOT overlay content */
@media (max-width: 991px) {
    #mainNavbar .navbar-collapse {
        background: linear-gradient(135deg, #00d4d4 0%, #3a80d2 100%);
        padding: 12px 16px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        margin-top: 4px;
    }

    #mainNavbar .nav-link {
        color: #fff !important;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-weight: 500;
    }

    #mainNavbar .nav-link:last-child {
        border-bottom: none;
    }

    #mainNavbar .consulting-btn {
        margin: 10px 0 4px;
        width: 100%;
    }
}

/* DESKTOP: Nav links white */
@media (min-width: 992px) {
    #mainNavbar .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    #mainNavbar .nav-link:hover {
        color: #ffffff !important;
    }
}

/* Carousel next and prev icon color */
/*.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color) !important;
}*/

/* Ensure the container has relative positioning */
.image-container {
    position: relative;
    display: inline-block;
}

.title-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .title-overlay {
    opacity: 1;
}
/* Default card style */
.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Card styling */
.service-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 250px;
    /* transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;*/
    position: relative;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Spin class */
/*.service-card.spin {
    animation: spin 2s linear;*/ /* Spin for 2 seconds */
/*//background-color: #007bff;*/ /* Change background color during spin */
/*color: #fff;*/ /* Change text color during spin */
/*border-color: #0056b3;*/ /* Change border color */
/*}*/
.vibrate {
    display: inline-block;
    text-decoration: none;
    position: relative;
    transition: transform 0.1s ease-in-out;
}

    .vibrate:hover {
        animation: vibrate 0.2s linear infinite;
    }

@keyframes vibrate {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .service-card.active {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        background-color: #f0f8ff;
    }

.section-title1 {
    animation: fadeIn 1s ease-in-out;
}

.section-title2 {
    animation: fadeIn 1s ease-in-out 0.5s; /* Delayed by 0.5s */
}

.tech-solutions {
    animation: fadeIn 1s ease-in-out 1s; /* Delayed by 1s */
}

.vibrate {
    animation: fadeIn 1s ease-in-out 1.5s; /* Delayed by 1.5s */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-title1, .section-title2, .tech-solutions, .vibrate {
    animation: fadeIn 1s ease-in-out;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInLetter 0.05s ease-in forwards;
    /* Preserve space characters so words don't run together */
    white-space: pre;
}

@keyframes fadeInLetter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    transform: scale(1);
    transition: transform 5s ease-in-out;
}

    .stat-item:hover {
        transform: scale(1.5);
    }
/* General adjustments */
.container {
    max-width: 1200px; /* Ensure the content is not too wide */
    margin: 0 auto;
}

/* Cards Container */
.card-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem; /* Add space between cards */
    flex-wrap: wrap; /* Ensure responsiveness */
}

/* Card styling */
.service-card {
    flex: 1 1 30%; /* Makes each card take up 30% of the space */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 1rem; /* Adds space at the bottom */
}

/* Creative Section */
.creative-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

    .creative-section .col-lg-6 {
        flex: 1;
    }

    .creative-section .create_txt {
        flex: 1;
        padding-left: 20px;
    }

/* Responsive for small screens */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        display: flex;
        padding: 10px;
    }

    .creative-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 20px;
    }

    .creative-section .col-lg-6,
    .creative-section .create_txt {
        padding-left: 0;
        padding-top: 1.5rem;
    }
    
    .hero-content {
        text-align: center;
        margin-top: 3rem;
    }
    
    .stats-bar .stat-item {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-title2, .section-title2 b {
        font-size: 2rem;
    }
}

.image-container {
    position: relative;
    display: inline-block;
}

.title-overlay {
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
}
/* Spin animation */
/*.service-card.spin {
    animation: spinEffect 5s forwards;
}*/

/* Blast effect animation */
/*.service-card.blast {
    animation: blastEffect 0.5s forwards;
}*/

/* Spin animation keyframe */
@keyframes spinEffect {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Blast animation keyframe (this could be a dramatic scale change, color change, etc.) */
@keyframes blastEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Normal card style */
/*.service-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}*/

.card-container {
    display: grid;
    /* min(100%, 280px) automatically shrinks the columns for keypad mobiles */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    padding: 30px 0;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .service-card h3 {
        margin-top: 0;
        font-size: 1.25rem;
        color: #333;
    }

    .service-card p {
        flex-grow: 1;
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 16px;
    }

.button-btn {
    align-self: center; /* centers inside the flex container */
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.vibrate:hover {
    animation: vibrate 0.3s linear infinite;
}


/* Original App Logos for Footer Social Icons */
.social-icons a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.15); /* playful pop */
}

/* Facebook Official Color */
.social-icons a .fa-facebook {
    color: #1877F2;
}

/* X (formerly Twitter) Official Color */
.social-icons a .fa-x-twitter {
    color: #000000;
}

/* LinkedIn Official Color */
.social-icons a .fa-linkedin {
    color: #0A66C2;
}

/* Instagram Official Gradient */
.social-icons a .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Extra Small Keypad Mobiles (e.g. 240px to 360px widths) */
@media (max-width: 480px) {
    .section-title2, .section-title2 b {
        font-size: 1.6rem !important;
    }
    
    .section-title1 {
        font-size: 1rem;
    }
    
    .card-container {
        gap: 15px;
        padding: 15px 0;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .button-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

/* TVs, Ultra-Wide PC Monitors (> 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content .section-title2 {
        font-size: 3.5rem;
    }
    
    .service-card p {
        font-size: 1.05rem;
    }
}


@keyframes vibrate {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}
