/* --- Hero Section Layout --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 90px; /* Space for navbar */
    position: relative;
    background: radial-gradient(circle at center, #1a1f26 0%, #0d1117 100%);
}

.hero-logo-large {
    width: 100%;
    max-width: 800px; /* Large scale like the image */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(16, 241, 238, 0.4));
    margin-bottom: 2rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-headline .highlight {
    color: var(--color-cyan);
}

.hero-description {
    color: var(--color-text-p);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* --- Buttons to match Image --- */

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    padding: 16px 30px;
}

.btn-secondary:hover {
    background: rgba(16, 241, 238, 0.1);
    box-shadow: 0 0 15px rgba(16, 241, 238, 0.3);
}

/* --- Scroll Indicator --- */
.scroll-down {
    position: absolute;
    bottom: 30px;
    color: var(--color-cyan);
    font-size: 1.5rem;
    animation: bob-up-down 2s infinite ease-in-out;
}

/* --- Video Background Styling --- */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Places video behind the text */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This acts like 'background-size: cover' */
}

/* The Overlay: Darkens the video so the white/cyan text pops */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.7) 0%,   /* Darker at top for navbar */
        rgba(13, 17, 23, 0.4) 50%,  /* Lighter in middle for video visibility */
        rgba(13, 17, 23, 0.9) 100%  /* Darker at bottom to blend into next section */
    );
}

/* Adjust Hero Content for better visibility over video */
.hero-content {
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* Adds extra punch to text readability */
}

.hero-headline {
    margin-top: -50px; /* Slight adjustment to center the text block better */
}

/* --- Services Section Styles --- */
.services-section {
    padding: 50px 0;
    background-color: var(--color-bg);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-p);
    margin-top: -30px;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 3 columns on desktop */
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.3rem; /* Slightly smaller to fit the 4-column layout */
}

.service-card p {
    font-size: 0.9rem; /* Better legibility for longer descriptions */
    line-height: 1.5;
    margin-bottom: 25px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 241, 238, 0.2);
    transform: translateY(-5px);
}

.featured-border {
    border: 1px solid rgba(16, 241, 238, 0.4) !important;
    box-shadow: 0 0 20px rgba(16, 241, 238, 0.1);
}

/* Card Header & Icons */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-box-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    flex-shrink: 0;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #000;
    flex-shrink: 0;
}

.header-text h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: #fff;
}

.card-tag {
    font-size: 0.8rem;
    color: var(--color-orange);
    font-weight: 700;
}

.cyan-yellow-gradient { background: linear-gradient(135deg, #00f2fe 0%, #f6d365 100%); }
.green-cyan-gradient { background: linear-gradient(135deg, #43e97b 0%, #00f2fe 100%); }
.yellow-orange-gradient { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.mini-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
    flex-grow: 1;
}

.mini-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-p);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.mini-links a i:first-child {
    color: var(--color-cyan);
    width: 20px;
    text-align: center;
}

.arrow-small {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.5;
}

.mini-links a:hover {
    color: #fff;
}

/* Main Link Styling */
.main-card-link {
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-cta-bold {
    display: inline-block;
    color: var(--color-orange);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 15px;
    border-bottom: 2px solid var(--color-orange);
    padding-bottom: 4px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
}

.service-card p {
    color: var(--color-text-p);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Bullet Points */
.service-list {
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list li {
    color: var(--color-cyan);
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-cyan);
}

/* Learn More Link */
.learn-more {
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.learn-more:hover {
    gap: 12px; /* Small slide effect */
}

/* Footer CTA */
.services-footer {
    text-align: center;
    margin-top: 80px;
}

.services-footer p {
    color: var(--color-text-p);
    margin-bottom: 10px;
}

.footer-cta {
    color: var(--color-orange);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.footer-cta:hover {
    color: var(--color-text-main);
}

.projects-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    justify-content: center; /* Centers cards horizontally */
    gap: 40px;
    margin-top: 50px;
}

.project-card-large {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(16, 241, 238, 0.1);
    transition: all 0.4s ease;
}

.project-card-large:hover {
    border-color: var(--color-cyan);
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Automatically calculates height based on width */
    overflow: hidden;
    height: auto; /* Remove the fixed 300px height */
}

.project-main-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Platform Icons Styling */
.platform-links {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10; /* Ensures icons are above the main link overlay */
}

.platform-links a {
    background: rgba(13, 17, 23, 0.8);
    color: var(--color-text-main);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(16, 241, 238, 0.3);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.platform-links a:hover {
    background: var(--color-cyan);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--color-cyan);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    padding: 30px;
}

.project-details .category {
    color: var(--color-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-details h3 {
    margin: 10px 0;
    font-size: 1.8rem;
}

.contact-section { padding: 50px 0; background: #0d1117; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
}

.contact-card h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
}

/* Form Styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700; color: var(--color-text-main); }

.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.input-group input:focus { border-color: var(--color-cyan); outline: none; }

/* Sidebar Info Lists */
.contact-info-column { display: flex; flex-direction: column; gap: 30px; }
.mini-card { padding: 30px; }

.check-list li, .feature-list li { list-style: none; margin-bottom: 15px; font-size: 0.9rem; }
.feature-list strong { color: var(--color-cyan); display: block; margin-bottom: 4px; }
.feature-list p { color: var(--color-text-p); font-size: 0.8rem; }

.dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.dot.cyan { background: var(--color-cyan); box-shadow: 0 0 10px var(--color-cyan); }
.dot.yellow { background: #ffd700; }
.dot.orange { background: var(--color-orange); }


.section-title {
    text-align: center;
    width: 100%;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* This targets the "Ready to turn your..." text */
.section-subtitle {
    text-align: center;
    max-width: 700px; /* Limits width so it looks better centered */
    margin: 0 auto 60px auto; /* 'auto' on left/right centers the block */
    color: var(--color-text-p);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Contact Form Button Fix --- */
.full-width {
    width: 100%; /* Makes the button span the whole card width */
    padding: 18px; /* Makes it "thicker" and more professional */
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.full-width:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.4); /* Uses your orange brand color */
}

/* --- Projects Section Title Spacing --- */
.projects-section {
    padding: 50px 0;
    background-color: var(--color-bg);
}

.projects-section .section-title {
    margin-bottom: 50px; /* Extra space before project cards */
}

.captcha-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start; /* Aligns with form fields */
    overflow: hidden; /* Prevents box shadow leakage */
}

.scroll-down-indicator {
    position: absolute;
    bottom: 50px; /* Positions it nicely at the bottom of the hero section */
    left: 50%;
    transform: translateX(-50%); /* Centers it horizontally */
    text-decoration: none; /* Removes link underline */
    opacity: 0.8; /* Slight fade-in effect */
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-down-indicator:hover {
    opacity: 1; /* Brightens when the user hovers */
}

.arrow-bob {
    font-size: 1.5rem; /* Matches the scale of the buttons */
    filter: drop-shadow(0 0 10px rgba(16, 241, 238, 0.5)); /* Adds a slight cyan glow to match your site's feel */

    /* 1. Define the animation name, duration, and type */
    animation: bob-up-down 2s infinite ease-in-out;
}

/* --- 2. Create the Keyframes for Vertical Movement --- */
@keyframes bob-up-down {
    0%, 100% {
        /* Starts and ends at the base position */
        transform: translateY(0);
    }
    50% {
        /* Moves 10px downward at the midpoint of the 2s loop */
        transform: translateY(10px);
    }
}

.platform-support {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-label {
    font-size: 0.8rem;
    color: var(--color-text-p);
    font-weight: 600;
}

.platform-icons {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5); /* Muted by default */
}

.platform-icons i:hover {
    color: var(--color-cyan);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive Grid */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .contact-info-column {
        order: 2; /* Moves info cards below the form */
    }
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr; /* Name and Email stack vertically */
        gap: 0; /* Handled by input-group margin */
    }

    .hero-logo-large {
        max-width: 90%;
    }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 30px; }

    .projects-featured-grid {
        grid-template-columns: 1fr; /* Stacks them on mobile */
    }
}

@media (max-width: 468px) {
    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .full-width {
        font-size:16px;
    }

    /* reCAPTCHA is ~304px wide. If the screen is smaller, we must scale it down */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        -webkit-transform: scale(0.85);
        -webkit-transform-origin: 0 0;
    }

    .captcha-container {
        height: 66px; /* Adjust container height to match scaled content */
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .contact-card {
        padding: 15px;
        max-width: 280px;
    }
}