/* --- Global Styles & Variables --- */
html {
    scroll-padding-top: 80px; /* Adjust this value to match your header's height */
    scroll-behavior: smooth; /* Adds a nice smooth scroll effect */
}

:root {
    --dark-blue: #0a192f;
    --white: #ccd6f6;
    --light-slate: #8892b0;
    --black: #000000;
    --cta-blue: #64ffda; /* Using the original teal color */
    --cta-blue-hover: #52d3be;
    --font-sans: 'Poppins', sans-serif;
}

body {
    /* THE FIX: We removed background-color from here to let the canvas be the background. */
    color: var(--white);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
}

header.scrolled {
    background-color: rgba(10, 25, 47, 0.85); /* Dark blue with some transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Particle Canvas Styling --- */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* This pushes the canvas behind all other content. */
}

/* --- Header & Navigation --- */
header {
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cta-blue);
}

.contact-button {
    border: 1px solid var(--cta-blue);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links .contact-button:hover {
    background-color: var(--cta-blue);
    color: var(--black);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 50px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-slate);
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--cta-blue);
    color: var(--black);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--cta-blue-hover);
}

/* --- NEW: Service Card Color Variable --- */
:root {
    /* ... your other variables ... */
    --card-blue: #112240; /* A slightly lighter navy for the cards */
}

/* --- NEW: Services Section Styling --- */
#services {
    max-width: 1000px;
    margin: 0 auto; /* Center the section */
    padding: 100px 50px; /* Give it some space from the hero section */
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 50px;
    position: relative;
    text-align: center;
}

/* Adds a little accent line under the title */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--cta-blue);
    margin: 20px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    /* This creates a responsive grid. It will fit as many columns as possible
       that are at least 250px wide. On small screens, it becomes a single column. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--card-blue);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #1d2d50;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--cta-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: var(--light-slate);
    line-height: 1.6;
}

/* --- Styling for the link wrapper on homepage cards --- */
.service-link-wrapper {
    text-decoration: none; /* Removes the default blue underline from links */
    color: inherit; /* Makes the text inside the link use the card's text color */
    display: block; /* Ensures the link fills the entire grid cell */
    border-radius: 8px; /* Match the card's border-radius for the focus outline */
}

/* --- Styling for the new Service Pages --- */
.service-page-main {
    padding-top: 100px; /* Add space so content isn't hidden under the fixed header */
}

.service-page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--light-slate);
}

.service-page-content h1 {
    font-size: 3rem;
    color: var(--cta-blue);/* This will be overridden by the gradient */
    margin-bottom: 10px;
}

.service-page-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-top: 40px;
    border-left: 4px solid var(--cta-blue);
    padding-left: 15px;
}

.service-page-content .service-subtitle {
    font-size: 1.2rem;
    color: var(--cta-blue);
    margin-bottom: 40px;
}

.service-page-content p, .service-page-content li {
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-page-content ul {
    list-style: none;
    padding-left: 0;
}

.service-page-content li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.service-page-content li::before {
    content: '✓';
    color: var(--cta-blue);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
}

body {
    background-color: var(--dark-blue); /* ADD THIS LINE BACK IN */
    color: var(--white);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
}

/* --- Styling for Portfolio Preview on Service Pages --- */
.portfolio-preview {
    margin-top: 60px; /* Add some space above this section */
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 20px; /* Add space between the images */
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid #1d2d50;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05); /* Slightly enlarge image on hover */
}

/* Make the grid stack into a single column on smaller screens */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================= */
/* == STYLING FOR THE SOFTWARE SOLUTIONS SERVICE PAGE == */
/* ================================================= */

/* --- The 2-Column Grid Layout --- */
.software-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left column is twice as wide as the right */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- The Sticky Sidebar ("Tech Stack") --- */
.tech-stack-container {
    position: sticky;
    top: 120px; /* Stick 120px from the top to avoid the header */
    height: fit-content; /* Make the container only as tall as its content */
    
    /* This creates the "Frosted Glass" WOW Effect */
    background: rgba(17, 34, 64, 0.6); /* --card-blue with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border: 1px solid rgba(100, 255, 218, 0.2); /* Faint teal border */
    border-radius: 12px;
    padding: 25px;
}

.tech-stack-container h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--white);
    border-bottom: 1px solid rgba(100, 255, 218, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- The Grid of Technology Icons --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 25px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--light-slate);
    transition: color 0.3s ease;
    text-align: center;
}

.tech-item i {
    font-size: 2.5rem; /* Use font-size to scale font icons */
    color: currentColor;
}

.tech-item:hover {
    color: var(--cta-blue); /* Highlight on hover */
}

/* --- Responsive Adjustments for smaller screens --- */
@media (max-width: 992px) {
    .software-layout {
        grid-template-columns: 1fr; /* Stack to a single column */
    }

    .tech-stack-container {
        position: static; /* Remove the sticky behavior on mobile */
        margin-top: 40px;
    }
}

/* --- Styling for the new Feature Cards on Software Page --- */
.feature-grid-container {
    margin-top: 50px;
}

.feature-grid-container h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 grid */
    gap: 15px;
}

.feature-card {
    background-color: var(--card-blue);
    border: 1px solid #1d2d50;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #1d2d50; /* Slightly lighten on hover */
    border-color: var(--cta-blue);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--cta-blue);
}

.feature-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* Responsive adjustment for the feature grid */
@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr; /* Stack to a single column on very small screens */
    }
}

/* --- Styling for the new Process Flow Timeline --- */
.process-flow-container {
    margin-top: 60px;
}

.process-flow-container h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 40px;
    text-align: left;
}

/* The main timeline container */
.timeline {
    position: relative;
    max-width: 1200px; /* This can be adjusted */
    margin: 0 auto;
}

/* The vertical line running down the middle */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--card-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px; /* Center the line */
}

/* Container for each step in the timeline */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--dark-blue);
    border: 4px solid var(--cta-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place items on the left */
.timeline-item:nth-child(odd) {
    left: 0;
}

/* Place items on the right */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Adjust the circle position for right-side items */
.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* The actual content box */
.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-blue);
    position: relative;
    border-radius: 8px;
    border: 1px solid #1d2d50;
    z-index: 5; /* ADD THIS LINE to fix the overlap */
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--cta-blue);
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-slate);
    line-height: 1.6;
}

/* --- Responsive Timeline for smaller screens --- */
@media screen and (max-width: 768px) {
    /* Move the line to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width items */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* All items on the right side of the line */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* Move the circles to the line */
    .timeline-item::after {
        left: 21px;
    }
}

/* =========================================== */
/* == STYLING FOR THE MOBILE APPS SERVICE PAGE == */
/* =========================================== */

.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-text-section {
    min-height: 30vh; /* Reduced the minimum height */
    /* We removed the extra padding-bottom */
}

.phone-container {
    position: sticky;
    top: 120px;
    height: 80vh; /* Make it tall to stick properly */
}

/* The phone's outer frame */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background-color: #111;
    border: 10px solid #000;
    border-radius: 40px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* The little notch at the top */
.phone-notch {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-color: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* The screen where images appear */
.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.screen-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
}

.screen-image.active {
    opacity: 1; /* The active screen is visible */
}

/* Responsive adjustments for the App Page */
@media (max-width: 992px) {
    .app-layout {
        grid-template-columns: 1fr; /* Stack to a single column */
    }
    .app-text-section {
        min-height: auto;
        padding-bottom: 40px;
        text-align: center;
    }
    .phone-container {
        position: static; /* Remove sticky behavior */
        height: auto;
        margin-bottom: 40px;
    }
}

/* ========================================================== */
/* == NEW BULLETPROOF STYLING FOR MOBILE APPS SERVICE PAGE == */
/* ========================================================== */

.app-showcase-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.app-feature-row {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

/* Reverse the order for every second row */
.app-feature-row.reverse {
    flex-direction: row-reverse;
}

.app-feature-text {
    flex: 1; /* Take up half the space */
}

.app-feature-text h2 {
    font-size: 2rem;
    color: var(--cta-blue);
    margin-top: 0;
}

.app-feature-image {
    flex: 1; /* Take up the other half */
    text-align: center;
}

.app-feature-image img {
    max-width: 300px; /* Control the size of the phone image */
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-feature-row,
    .app-feature-row.reverse {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 20px;
        margin-bottom: 60px;
    }
    .app-feature-text {
        text-align: center;
    }
}

/* --- Styling for the new App Content Cards --- */
.app-content-card {
    background: var(--card-blue);
    border: 1px solid #1d2d50;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Adjust heading margins inside the new cards */
.app-content-card h1 {
    margin-top: 0;
}
.app-content-card h2 {
    margin-top: 0;
    color: var(--cta-blue);
}

/* =========================================== */
/* == STYLING FOR THE AI SERVICES PAGE == */
/* =========================================== */

/* --- The Animated Aurora Background --- */
.background-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--dark-blue);
    overflow: hidden;
}
.background-aurora::before, .background-aurora::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--cta-blue), transparent 60%);
    border-radius: 50%;
    opacity: 0.15;
    animation: move-aurora 20s infinite alternate;
}
.background-aurora::after {
    bottom: -400px;
    right: -400px;
    animation-delay: -10s;
    animation-direction: alternate-reverse;
}
@keyframes move-aurora {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(200px, 200px) rotate(180deg); }
}

/* --- AI Page Specific Layout --- */
.ai-hero {
    text-align: center;
    padding-bottom: 50px;
}

/* --- The Bento Grid Layout --- */
.bento-grid-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
}

.bento-box {
    background: rgba(17, 34, 64, 0.6); /* --card-blue with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #1d2d50;
    border-radius: 16px;
    padding: 25px;
    color: var(--light-slate);
    transition: all 0.3s ease;
}

.bento-box:hover {
    transform: scale(1.02);
    border-color: rgba(100, 255, 218, 0.5);
}

/* Spanning classes for different box sizes */
.bento-box.wide { grid-column: span 2; }
.bento-box.tall { grid-row: span 2; }

/* Styling for content inside the boxes */
.bento-box h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--white);
}
.bento-box h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 8px;
}
.bento-box i {
    font-size: 2rem;
    color: var(--cta-blue);
    margin-bottom: 10px;
    display: block;
}
.bento-tech-list {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}
.bento-tech-list i {
    font-size: 2.5rem;
    margin: 0;
}

/* --- Bento Grid Responsive Adjustments --- */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    /* Reset spans for single column layout */
    .bento-box.wide, .bento-box.tall { 
        grid-column: span 1;
        grid-row: span 1; 
    }
}

/* =========================================== */
/* == STYLING FOR THE ECOMMERCE SERVICE PAGE == */
/* =========================================== */

/* --- Alternating Feature Row Layout --- */
.ecommerce-feature {
    display: flex;
    max-width: 1100px;
    margin: 0 auto 100px auto;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}
.ecommerce-feature.reverse {
    flex-direction: row-reverse;
}
.ecommerce-text, .ecommerce-visual {
    flex: 1; /* Each column takes up half the space */
}
.ecommerce-text h2 {
    font-size: 2rem;
    color: var(--cta-blue);
}

/* --- Browser Mockup Styling --- */
.browser-mockup {
    background: var(--card-blue);
    border: 1px solid #1d2d50;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.browser-header {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
}
.browser-header span {
    width: 12px;
    height: 12px;
    background-color: #2c3a5a;
    border-radius: 50%;
}
.browser-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* --- 3-Column Feature Grid for Management Tools --- */
.feature-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.feature-item {
    text-align: center;
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--cta-blue);
}
.feature-item h4 {
    margin: 10px 0 0 0;
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

/* --- Security Section Styling --- */
.ecommerce-security {
    max-width: 700px;
    margin: 100px auto;
    padding: 50px;
    text-align: center;
    background-color: var(--card-blue);
    border-radius: 16px;
    border: 1px solid #1d2d50;
}
.ecommerce-security > i {
    font-size: 4rem;
    color: var(--cta-blue);
}
.ecommerce-security h2 {
    color: var(--white);
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 3rem;
    margin-top: 30px;
}

/* --- Responsive adjustments for E-commerce Page --- */
@media (max-width: 768px) {
    .ecommerce-feature, .ecommerce-feature.reverse {
        flex-direction: column; /* Stack vertically on mobile */
    }
    .feature-grid-3col {
        grid-template-columns: 1fr; /* Stack management features */
        gap: 25px;
    }
}

/* =========================================== */
/* == STYLING FOR THE CLOUD SOLUTIONS SERVICE PAGE == */
/* =========================================== */
.cloud-layout-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 20px;
    display: grid;
    /* A 3x3 grid to arrange our items */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 25px;
    align-items: center;
    justify-items: center;
}

/* The central hub element */
.cloud-hub {
    /* Place this item in the center of our 3x3 grid */
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    
    width: 200px;
    height: 200px;
    background-color: var(--card-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid var(--cta-blue);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

.cloud-hub i {
    font-size: 4rem;
    color: var(--cta-blue);
}

.cloud-hub h4 {
    margin: 10px 0 0 0;
    color: var(--white);
    font-size: 1.1rem;
}

/* The feature cards (spokes) */
.cloud-feature {
    background-color: var(--card-blue);
    border: 1px solid #1d2d50;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.cloud-feature:hover {
    transform: translateY(-5px);
    border-color: var(--cta-blue);
}

.cloud-feature i {
    font-size: 2.5rem;
    color: var(--cta-blue);
    margin-bottom: 10px;
}

.cloud-feature h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--white);
}

.cloud-feature p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-slate);
    line-height: 1.5;
}

/* Place each feature card in a specific grid cell */
.cf-1 { grid-area: 1 / 1 / 2 / 2; }
.cf-2 { grid-area: 1 / 2 / 2 / 3; }
.cf-3 { grid-area: 1 / 3 / 2 / 4; }
.cf-4 { grid-area: 2 / 1 / 3 / 2; }
.cf-5 { grid-area: 2 / 3 / 3 / 4; }
.cf-6 { grid-area: 3 / 2 / 4 / 3; }


/* --- Responsive Cloud Layout --- */
@media (max-width: 768px) {
    .cloud-layout-container {
        grid-template-columns: 1fr; /* Stack everything into a single column */
        grid-template-rows: auto;
        gap: 20px;
    }

    /* On mobile, place the hub first, then the cards */
    .cloud-hub {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: 150px; /* Make hub a bit smaller */
        height: 150px;
        margin-bottom: 20px;
    }

    /* Reset all feature card positions */
    .cloud-feature {
        grid-area: auto !important;
    }
}

/* =========================================== */
/* == STYLING FOR THE PORTFOLIO PAGE == */
/* =========================================== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    font-family: var(--font-sans);
    background-color: transparent;
    color: var(--light-slate);
    border: 1px solid var(--card-blue);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background-color: var(--card-blue);
    color: var(--white);
}
.filter-btn.active {
    background-color: var(--cta-blue);
    color: var(--black);
    border-color: var(--cta-blue);
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.1));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    margin: 5px 0 0 0;
    color: var(--light-slate);
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Class for hiding filtered items */
.portfolio-item.hide {
    display: none;
}

/* =========================================== */
/* == STYLING FOR THE CONTACT PAGE == */
/* =========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Make the form column slightly wider */
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    color: var(--light-slate);
}
.info-item i {
    font-size: 1.5rem;
    color: var(--cta-blue);
}

/* --- Form Styling --- */
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-slate);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #112240; /* Slightly lighter background */
    border: 1px solid #2c3a5a;   /* A more visible border color */
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--light-slate);
  opacity: 0.6; /* Make it slightly transparent */
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cta-blue);
}

/* --- Responsive Contact Page --- */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Stack to a single column */
    }
}

.info-item-link {
    text-decoration: none; /* remove underline from links */
    transition: all 0.3s ease;
}

.info-item-link:hover .info-item {
    background-color: var(--card-blue); /* Add a subtle hover effect */
    border-radius: 6px;
    padding: 5px;
}

/* =========================================== */
/* == STYLING FOR THE GLOBAL FOOTER == */
/* =========================================== */
.site-footer {
    background-color: #061123; /* A slightly darker shade of our dark blue */
    padding: 40px 20px;
    text-align: center;
    color: var(--light-slate);
    border-top: 1px solid #1d2d50;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-social-links a {
    color: var(--light-slate);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--cta-blue);
}

.footer-copyright {
    font-size: 0.9rem;
}

/* =========================================== */
/* == STYLING FOR THE TESTIMONIALS SECTION == */
/* =========================================== */
#testimonials {
    padding: 100px 20px;
    background-color: #061123; /* A slightly darker background to make it stand out */
}

.testimonial-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-blue);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--cta-blue);
}

.testimonial-card i {
    font-size: 2.5rem;
    color: var(--cta-blue);
    opacity: 0.5;
}

.quote-text {
    font-style: italic;
    color: var(--light-slate);
    margin: 15px 0;
    line-height: 1.7;
}

.quote-author h4 {
    margin: 0;
    color: var(--white);
}

.quote-author span {
    font-size: 0.9rem;
    color: var(--light-slate);
}

/* =========================================== */
/* == STYLING FOR THE FINAL CTA SECTION == */
/* =========================================== */
#cta {
    padding: 100px 20px;
}
.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    border: 1px solid var(--cta-blue); /* Changed to accent color */
    border-radius: 12px;
    /* This adds a faint glow effect */
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.15);
}
.cta-container h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-top: 0;
}
.cta-container p {
    color: var(--light-slate);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* =========================================== */
/* == STYLING FOR NAVIGATION UPGRADES == */
/* =========================================== */

/* Make sure the logo link has no underline */
.logo, .logo:hover {
    text-decoration: none;
    color: var(--white);
}

/* --- Dropdown Menu Styling --- */
/* The container for the dropdown */
.nav-links .dropdown {
    position: relative;
}

/* The dropdown menu itself (hidden by default) */
.dropdown-menu {
    position: absolute;
    top: 120%; /* Position it slightly below the nav link */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-blue);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    width: 220px; /* Set a fixed width */
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border: 1px solid #1d2d50;
    
    /* Hide it with opacity for a fade-in effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px);
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Styling for links inside the dropdown */
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--light-slate);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #1d2d50;
    color: var(--cta-blue);
}

/* Add a little down-arrow to the Services link */
.dropdown a i {
    font-size: 0.8rem;
    position: relative;
    top: -2px;
    margin-left: 4px;
}

/* =========================================== */
/* == HERO SECTION TYPING ANIMATION == */
/* =========================================== */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typing-container {
    display: inline-block; /* This allows the container to have a width based on its content */
}

.hero-content h1 {
    overflow: hidden; 
    white-space: nowrap; 
    border-right: .12em solid var(--cta-blue); 
    animation: 
        typing 3s steps(35, end) forwards,
        blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The cursor blinking effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--cta-blue); }
}

/* =========================================== */
/* == HERO SECTION AURORA BACKGROUND EFFECT == */
/* =========================================== */

/* First, prepare the hero section to contain the background */
.hero {
    position: relative; 
    overflow: hidden;   
}

/* The container for our effect */
.hero-background-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
}

/* We use pseudo-elements to create two glowing orbs */
.hero-background-aurora::before,
.hero-background-aurora::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cta-blue), transparent 70%);
    border-radius: 50%;
    opacity: 0.35; /* UPDATED: Increased brightness */
    filter: blur(80px); /* UPDATED: Reduced blur for more definition */
    animation: float-aurora 8s infinite alternate; /* UPDATED: Sped up animation */
}

/* Position the second orb differently and change its animation */
.hero-background-aurora::after {
    bottom: -300px;
    right: -300px;
    animation-delay: -9s;
    animation-direction: alternate-reverse;
}

/* The keyframe animation for the floating effect */
@keyframes float-aurora {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(200px, 250px) rotate(180deg); /* UPDATED: Increased travel distance */
    }
}

.service-link-wrapper:hover .service-card {
    transform: translateY(-8px);
    border-color: var(--cta-blue);
    box-shadow: 0 0 45px rgba(100, 255, 218, 0.2); /* This is the teal glow */
}

/* =========================================== */
/* == STYLING FOR THE ABOUT US PAGE == */
/* =========================================== */

/* The main story section with the timeline */
.about-story {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Timeline column is smaller */
    gap: 40px;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

/* The visual timeline column */
.timeline-visual {
    position: relative; /* This is the anchor for the line */
    padding-top: 5px; /* Added padding for spacing */
}

/* The vertical line is now a pseudo-element of the container */
.timeline-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px; /* Position line on the left */
    height: 100%;
    width: 2px;
    background-color: var(--card-blue);
}

.timeline-node {
    position: relative;
    padding-left: 40px; /* Space for the dot */
    margin-bottom: 60px; /* Space between nodes */
    min-height: 50px; /* Ensures container has height */
}
/* Remove margin from the last node */
.timeline-node:last-child {
    margin-bottom: 0;
}

/* The dot on the timeline */
.timeline-node::before {
    content: '';
    position: absolute;
    left: 1px; /* Center the dot on the line */
    top: 5px;   /* Align with the first line of text */
    width: 20px;
    height: 20px;
    background-color: var(--dark-blue);
    border: 3px solid var(--cta-blue);
    border-radius: 50%;
    z-index: 1;
}

.timeline-node h4 {
    margin: 0;
    color: var(--white);
}
.timeline-node p {
    font-size: 0.9rem;
    color: var(--light-slate);
    margin: 5px 0 0 0;
}

.story-text p {
    color: var(--light-slate);
    line-height: 1.8;
    margin: 0 0 20px 0;
}
.story-text p:last-child {
    margin-bottom: 0;
}
.story-text strong {
    color: var(--white);
    font-weight: 600;
}

/* The philosophy cards section */
.about-philosophy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 960px;
    margin: 100px auto;
    padding: 0 20px;
}
.philosophy-card {
    background-color: var(--card-blue);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #1d2d50;
}
.philosophy-card i {
    font-size: 3rem;
    color: var(--cta-blue);
}
.philosophy-card h3 {
    color: var(--white);
    margin-top: 15px;
}
.philosophy-card p {
    color: var(--light-slate);
    line-height: 1.6;
}

/* The final commitment section */
.about-commitment {
    max-width: 800px;
    margin: 50px auto 100px auto;
    padding: 0 20px;
    text-align: center;
}
.about-commitment h2 {
    font-size: 1.8rem;
    color: var(--white);
    line-height: 1.6;
    font-weight: 600;
}

/* Responsive adjustments for the About page */
@media (max-width: 768px) {
    .about-story {
        grid-template-columns: 1fr; /* Stack timeline and text on mobile */
    }
    /* On mobile, we place the text content first, then the visual timeline */
    .story-text {
        grid-row: 1 / 2;
    }
    .timeline-visual {
        margin-top: 40px;
        padding-left: 10px; /* Adjust for mobile view */
    }
    .timeline-visual::before {
        left: 0;
    }
    .timeline-node {
        padding-left: 30px;
    }
    .timeline-node::before {
        left: -9px;
    }
}

/* --- Styling for the Thank You Page --- */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.thank-you-section i {
    font-size: 5rem;
    color: var(--cta-blue);
}

.thank-you-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin: 20px 0 10px 0;
}

.thank-you-section p {
    color: var(--light-slate);
    max-width: 500px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}