/* static/css/home_style.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Homepage-specific body background - CLEAN & SIMPLE */
.home-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Removed unused gradientShift animation */

/* NAVBAR LOGO RESPONSIVE - IMPROVED */
.navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 200px !important;
    transition: all 0.3s ease;
}

/* Main Navbar Styles - ENSURE PROPER SIZING */
.main-navbar {
    background-color: #0F172A;
    padding: 10px 30px;
    border-bottom: 0px solid #dee2e6;
    flex-shrink: 0;
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.main-navbar .nav-link { 
    color: #ffffff; 
    font-weight: 500; 
    margin: 0 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.main-navbar .nav-link:hover {
    color: #3ae926;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after {
    width: 100%;
}

.btn-dashboard { 
    background-color: #ffc107; 
    color: #212529; 
    font-weight: bold; 
    border-radius: 8px; 
    padding: 8px 16px;
    text-decoration: none;
}

/* Home Wrapper */
.home-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Hero Section - CLEAN & SIMPLE */
.hero-section {
    background: #ffffff;
    color: #1e293b;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Removed complex pseudo-element for better performance */

.hero-content {
    max-width: 100%;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.1;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 500;
}

.btn-browse-apis {
    background: #22C55E;
     text-decoration: none;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-browse-apis:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Hero Visual - Gear Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- FINAL GEAR STYLES --- */

/* This is the container that holds the gears */
.gear-container {
    position: relative;
    width: 100%;
    max-width: 500px;  /* Maximum width, but responsive */
    height: 320px; /* Increased from 280px to accommodate bigger gears */
    margin: 0 auto; /* Center the container */
}

/* This is the BASE style for ALL gears */
.gear {
    position: absolute;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.gear img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Orange Gear (S) on the LEFT - 6 teeth driven gear */
.gear-1 {
    width: 40%;   /* Responsive width */
    height: auto;  /* Maintain aspect ratio */
    aspect-ratio: 1; /* Square aspect ratio */
    top: 50px;      /* Adjusted position */
    left: 5%;      /* Moved slightly left to prevent overlap */
    z-index: 5;
    animation-name: rotate-counterclockwise; /* Counter-clockwise (opposite to center) */
    animation-duration: 8s; /* 1.5× faster than 9-tooth gear */
    animation-delay: -1.33s; /* Phase offset to prevent tooth overlap */
}

/* Green Gear (S) in the CENTER - 9 teeth driver gear */
.gear-2 {
    width: 40%;  /* Responsive width */
    height: auto;  /* Maintain aspect ratio */
    aspect-ratio: 1; /* Square aspect ratio */
    top: 20px;      /* Adjusted position */
    left: 60%;      /* Moved slightly right from 38% */
    animation-name: rotate-center-clockwise; /* Clockwise (driver) */
    animation-duration: 12s; /* Base speed */
    animation-delay: 0s; /* No delay for driver */
    z-index: 10;
}

/* Blue Gear (R) on the RIGHT - 6 teeth driven gear */
.gear-3 {
    width: 40%;   /* Responsive width */
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: 1; /* Square aspect ratio */
    top: 50px;      /* Adjusted position */
    right: -14%;      /* Moved slightly right to prevent overlap */
    animation-name: rotate-counterclockwise; /* Counter-clockwise (anti-clockwise) */
    animation-duration: 8s; /* 1.5× faster than 9-tooth gear */
    animation-delay: -2.67s; /* Different phase offset to prevent tooth overlap */
    z-index: 5;
}

/* Gear Text Overlays - Keep letters stationary */
.gear-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: white;
    pointer-events: none;
    z-index: 15; /* Above all gears */
}

.gear-1 .gear-text {
    font-size: 38px;    /* Increased from 30px */
    animation: counter-rotate-clockwise 8s linear infinite; /* Counter the counter-clockwise gear */
    animation-delay: -1.33s; /* Match gear delay */
}

.gear-2 .gear-text {
    font-size: 45px;    /* Increased from 36px */
    animation: counter-rotate-center-clockwise 12s linear infinite; /* Counter the clockwise center gear */
    animation-delay: 0s; /* Match gear delay */
}

.gear-3 .gear-text {
    font-size: 38px;    /* Increased from 30px */
    animation: counter-rotate-clockwise 8s linear infinite; /* Counter the counter-clockwise gear */
    animation-delay: -2.67s; /* Match gear delay */
}

/* Default clockwise rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Clockwise rotation for standard gears */
@keyframes rotate-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Counter-clockwise rotation */
@keyframes rotate-counterclockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Center gear clockwise with positioning */
@keyframes rotate-center-clockwise {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Dedicated rotation for the centered gear to include its positioning */
@keyframes rotate-center {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Counter-clockwise rotation for center gear meshing */
@keyframes rotate-center-reverse {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

/* Counter-rotation keyframes to keep text stationary */
@keyframes counter-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Counter-rotate clockwise gear (rotate counter-clockwise to stay stationary) */
@keyframes counter-rotate-counterclockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Counter-rotate counter-clockwise gear (rotate clockwise to stay stationary) */
@keyframes counter-rotate-clockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Counter-rotate center clockwise gear */
@keyframes counter-rotate-center-clockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes counter-rotate-center-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg); /* Positive to counter the negative rotation */
    }
}

@keyframes counter-rotate-fast {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes counter-rotate-blue {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes counter-rotate-6teeth {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes counter-rotate-center-6teeth {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes counter-rotate-9teeth {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* NEW: Search Bar Overlay Styles */
.search-bar-overlay {
    position: relative;
    z-index: 10;
    transform: translateY(-25%); /* Reduced overlap for better spacing */
    margin-bottom: -5px; /* Reduced negative margin */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.search-bar-overlay .outer-container {
    background:linear-gradient(-37deg, #0F172A 0%, #212B39 55%, #212B39 100%);
    padding: 24px;
    padding: 24px;
    border-radius: 15px;
    margin-bottom: 30px;

}

/* Main Content Area */
.main-content-area {
    flex: 1;
    padding-top: 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 40px;
    max-width: 100vw;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 20px;
    margin: 10px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.outer-container {
    background: #0F172A;
    padding: 24px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.search-bar-container {
    display: flex;
    gap: 0px;
    width: 100%;
}

.search-input-wrapper {
    
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: #666;
    z-index: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #e0e0e0;
     border-radius: 15px 0 0 15px; /* Top-right and bottom-right rounded, left side flat */

    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f9f9f9;
}

.search-input-wrapper input:focus {
    outline: none;
      border-radius: 15px 0 0 15px;
    border-color: #4caf50;
    background: white;
}
.search-input {
    color: #333;
}

.search-input::placeholder {
    color: transparent;
}

.search-input.typing::placeholder {
    color: #666;
    animation: none;
}

/* Typewriter animation container */
.typewriter-placeholder {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    background-color: #666;
    width: 1px;
    height: 1em;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Hide typewriter when input is focused or has content */
.search-input:focus ~ .typewriter-placeholder,
.search-input:not(:placeholder-shown) ~ .typewriter-placeholder {
    display: none;
}

.search-btn {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 1px 10px;
    font-size: 1rem;
    font-weight: 600;
     border-radius: 0 15px 15px 0; 
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Updated API Cards Section for Horizontal Scrolling */
.featured-section {
    margin-top: 10px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.9) 25%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(248, 250, 252, 0.9) 75%, 
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 40px 5px;
    position: relative;
    overflow-x: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes featuredGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.featured-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}


.api-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.7fr;
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Responsive grid breakpoints */
@media (max-width: 1200px) {
    .api-cards-container {
        grid-template-columns: 1fr 1fr 0.7fr;
        gap: 25px;
        padding: 18px;
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .api-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .api-cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 16px;
    }
}

/* RESPONSIVE API Card Styles - Desktop First */
.api-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.api-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Special highlighting for API cards with Test API functionality */
.api-card:has(.documentation-link) {
    position: relative;
}

/* Removed "Test Available" badge - no longer needed */

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6);
    background-size: 200% 100%;
    animation: cardBorderFlow 4s ease infinite;
}

@keyframes cardBorderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Header layout */
.api-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between; /* Ensures space between icon and right content */
    margin-bottom: 20px;
    position: relative;
}


.api-card-link {
    text-decoration: none;
    color: inherit; /* This makes the text inside the link inherit its color */
    display: block; /* Ensures the link takes up the full card space */
}

.api-card-link:hover .api-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Icon on the left */
.api-icon {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: 15px; /* Adjusts vertical alignment */
    color: #64748b;
}
/* Moves the tag & title to the top-right */
.api-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align right */
    margin-left: auto; /* Pushes to right side */
    margin-top: -2px; /* Adjusts vertical alignment */
}

/* Tag */
.api-card-tag {
    background: #F97316;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    width: fit-content;
}

/* Title */
.api-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2238;
    margin: 0;
    text-align: right;
}

.api-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.api-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.documentation-link {
    background: #22C55E;
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 70px;
    flex: 1;
    max-width: 90px;
}

.documentation-link:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    color: white;
    text-decoration: none;
}

.documentation-link::before {
    content: "🧪";
    margin-right: 6px;
    font-size: 0.9em;
}

/* Ripple animation for Test API links */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-subscribe {
    background: #F97316;
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    min-width: 70px;
    flex: 1;
    max-width: 90px;
}

.btn-subscribe:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-overview {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    min-width: 70px;
    flex: 1;
    max-width: 90px;
    text-decoration: none;
}

.btn-overview:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-overview::before {
    content: "";
    margin-right: 6px;
    font-size: 0.9em;
}

/* Scroll Indicators (Optional) - Disabled to prevent card overlap */
/* .api-cards-scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(248, 249, 250, 0.8));
    pointer-events: none;
} */

/* API Description Section Styles */
.api-description-section {
    background: #ffffff;
    padding: 80px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Removed complex pseudo-element for better performance */

/* Removed unused gradientShift animation */

/* Removed mobile animation optimizations for better performance */

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.description-header {
    text-align: center;
    margin-bottom: 60px;
}

.description-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Removed animation for better performance */
}

/* Removed titleGlow animation */

.description-intro {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.description-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #22c55e, #3b82f6, #8b5cf6, #22c55e, transparent);
    margin: 50px 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    /* Removed animation for better performance */
}

/* Removed dividerGlow animation */

.why-choose-section {
    margin-bottom: 60px;
}

.why-choose-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



.feature-list {
    list-style: none;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

/* Mobile grid adjustments */
@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .solution-category {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .solution-category h4 {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .solution-category li {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .solutions-section h3 {
        font-size: 1.9rem;
        margin-bottom: 35px;
    }
    
    .solutions-section h3::after {
        width: 60px;
        height: 2px;
        bottom: -12px;
    }
}

@media (max-width: 480px) {
    .feature-list {
        gap: 15px;
    }
    
    .solution-category {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 20px;
    }
    
    .solution-category h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .solution-category li {
        padding: 8px 0;
        font-size: 0.9rem;
        padding-left: 20px;
    }
    
    .solutions-section h3 {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .solutions-section h3::after {
        width: 50px;
        height: 2px;
        bottom: -10px;
    }
}

.feature-list li {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 0;
    border-radius: 20px;
    border: 2px solid #334155;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e293b;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}



.feature-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #22c55e, #3b82f6);
    background-size: 200% 100%;
    /* Removed animation for better performance */
}

/* Removed borderFlow animation */

.feature-list li:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .feature-list li:active {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.15),
            0 10px 20px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .solution-category:active {
        transform: translateY(-3px) scale(1.005);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: translateY(-2px) scale(1.02);
    }
}

.feature-list li strong {
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
}

.solutions-section {
    margin-bottom: 60px;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Removed complex pseudo-element for better performance */

.solutions-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.solutions-section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #22c55e, #3b82f6);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.6);
    z-index: 2;
}

.solution-category {
    background: #ffffff;
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 25px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.solution-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #22c55e, #f97316, #22c55e, #f97316);
    background-size: 300% 100%;
    animation: borderFlow 4s ease infinite;
}

.solution-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(34, 197, 94, 0.05) 0%, 
            rgba(249, 115, 22, 0.05) 50%, 
            rgba(34, 197, 94, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.solution-category:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(34, 197, 94, 0.15),
        0 15px 35px rgba(249, 115, 22, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(34, 197, 94, 0.2);
}

.solution-category h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #22c55e, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.solution-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.solution-category li {
    padding: 12px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
    transition: all 0.3s ease;
    background: #ffffff;
    border-radius: 8px;
    margin: 8px 0;
    padding: 15px 20px 15px 30px;
}

.solution-category li::before {
    content: '▶';
    position: absolute;
    left: 8px;
    top: 15px;
    color: #22c55e;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.solution-category li:hover {
    color: #1e293b;
    transform: translateX(5px);
}

.solution-category li:hover::before {
    color: #f97316;
    transform: scale(1.2);
}

.cta-section {
    text-align: center;
    background: #ffffff;
    padding: 50px;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Removed complex pseudo-element for better performance */

.cta-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    font-size: 1.2rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.3),
        0 4px 10px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(34, 197, 94, 0.4),
        0 8px 20px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.3),
        0 4px 10px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.4),
        0 8px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta-note {
    font-size: 1rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
}

/* Fuel Demo Section Styles */
.fuel-demo-section {
    text-align: center;
    background: #ffffff;
    padding: 50px;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.fuel-demo-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fuel-demo-section p {
    font-size: 1.2rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.demo-image-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    padding: 20px;
}

.demo-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.demo-image:hover {
    transform: scale(1.02);
}

.demo-description {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    max-width: 900px;
    margin: 30px auto 0;
    text-align: center;
    font-weight: 500;
}

.demo-description strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive Design for API Description Section */

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
    .api-description-section {
        padding: 60px 0;
    }
    
    .description-container {
        padding: 0 30px;
    }
    
    .description-header h2 {
        font-size: 3rem;
    }
    
    .description-intro {
        font-size: 1.1rem;
        max-width: 800px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 800px;
    }
    
    .feature-list li {
        padding: 25px;
    }
    
    .solution-category {
        padding: 25px;
    }
    
    .cta-section {
        padding: 40px 30px;
    }
    
    .fuel-demo-section {
        padding: 40px 30px;
    }
    
    .fuel-demo-section h3 {
        font-size: 1.8rem;
    }
    
    .demo-image-container {
        padding: 15px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .api-description-section {
        padding: 50px 0;
    }
    
    .description-container {
        padding: 0 20px;
    }
    
    .description-header h2 {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .description-intro {
        font-size: 1rem;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .why-choose-section h3,
    .solutions-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .description-divider {
        margin: 35px 0;
        height: 2px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 100%;
    }
    
    .feature-list li {
        padding: 20px;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .feature-list li strong {
        font-size: 1.1rem;
    }
    
    .solution-category {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .solution-category h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .solution-category ul {
        padding-left: 20px;
    }
    
    .solution-category li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .cta-section {
        padding: 35px 25px;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .cta-note {
        font-size: 0.95rem;
        margin-top: 20px;
    }
    
    .fuel-demo-section {
        padding: 35px 25px;
    }
    
    .fuel-demo-section h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .fuel-demo-section p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .demo-image-container {
        padding: 10px;
        margin: 20px 0;
    }
    
    .demo-description {
        font-size: 1rem;
        margin-top: 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .api-description-section {
        padding: 40px 0;
    }
    
    .description-container {
        padding: 0 15px;
    }
    
    .description-header h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .description-intro {
        font-size: 0.95rem;
        padding: 0 5px;
        line-height: 1.6;
    }
    
    .why-choose-section h3,
    .solutions-section h3,
    .cta-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .description-divider {
        margin: 25px 0;
        height: 2px;
    }
    
    .feature-list {
        gap: 15px;
    }
    
    .feature-list li {
        padding: 18px;
        font-size: 0.9rem;
        line-height: 1.5;
        border-radius: 15px;
    }
    
    .feature-list li strong {
        font-size: 1rem;
        display: block;
        margin-bottom: 8px;
    }
    
    .solution-category {
        padding: 18px;
        margin-bottom: 18px;
        border-radius: 15px;
    }
    
    .solution-category h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .solution-category ul {
        padding-left: 18px;
    }
    
    .solution-category li {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .cta-section {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .cta-note {
        font-size: 0.9rem;
        margin-top: 18px;
    }
    
    .fuel-demo-section {
        padding: 25px 20px;
    }
    
    .fuel-demo-section h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .fuel-demo-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .demo-image-container {
        padding: 8px;
        margin: 15px 0;
    }
    
    .demo-description {
        font-size: 0.95rem;
        margin-top: 15px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .description-container {
        padding: 0 10px;
    }
    
    .description-header h2 {
        font-size: 1.8rem;
    }
    
    .description-intro {
        font-size: 0.9rem;
    }
    
    .why-choose-section h3,
    .solutions-section h3,
    .cta-section h3 {
        font-size: 1.4rem;
    }
    
    .feature-list li {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .solution-category {
        padding: 15px;
    }
    
    .solution-category h4 {
        font-size: 1.1rem;
    }
    
    .solution-category li {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 20px 15px;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cta-note {
        font-size: 0.85rem;
    }
    
    .fuel-demo-section {
        padding: 20px 15px;
    }
    
    .fuel-demo-section h3 {
        font-size: 1.3rem;
    }
    
    .fuel-demo-section p {
        font-size: 0.95rem;
    }
    
    .demo-image-container {
        padding: 5px;
    }
    
    .demo-description {
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background-color: #0F172A;
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
    position: relative;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section h3 .s1 {
    color: #F97316;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section h3 .s2 {
    color: #22C55E;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section h3 .r {
    color: #229ED9;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section h3 .innovations {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.25rem 0;
}
#footer-email {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #22C55E;
}

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

.social-link {
    display: inline-block;
    width: 25px;
    height: 25px;
    transition: transform 0.3s;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Logo responsive for tablet */
    .navbar-brand img {
        height: 35px !important;
        max-width: 180px !important;
    }
    
    .hero-content {
        margin: 0 20px;
        max-width: calc(100vw - 40px);
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .gear-container {
        width: 400px;  /* Smaller for tablet/desktop */
        height: 260px; /* Smaller for tablet/desktop */
        margin: 0 auto; /* Center the container */
    }
    
    .gear-1, .gear-3 {
        width: 120px;  /* Smaller for tablet/desktop */
        height: 120px; /* Smaller for tablet/desktop */
    }
    
    .gear-2 {
        width: 140px;  /* Smaller for tablet/desktop */
        height: 140px; /* Smaller for tablet/desktop */
    }
    
    .main-content-area {
        margin: 0 auto;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .search-bar-overlay {
        margin: 0 auto;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .footer .container {
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    /* API Cards responsive for tablet */
    .api-card {
        width: 310px;
        min-width: 310px;
        max-width: 310px;
        padding: 20px;
    }
    
    .api-cards-container {
        gap: 15px;
        justify-content: center;
        padding: 5px 10px 5px 10px;
    }
}

@media (max-width: 768px) {
    /* Logo responsive for mobile */
    .navbar-brand img {
        height: 32px !important;
        max-width: 150px !important;
    }
    
    .hero-content {
        margin: 0 10px;
        max-width: calc(100vw - 20px);
        text-align: center;
    }
    
    .main-content-area {
        margin: 0 auto;
        max-width: 100%;
        padding: 5px 10px;
        overflow-x: visible;
    }
    
    .search-bar-overlay {
        margin: 0 auto -40px auto;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .footer .container {
        margin: 0 15px;
        max-width: calc(100vw - 30px);
    }
    
    .hero-section {
        padding: 30px 10px; /* Much reduced padding for compact mobile layout */
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .gear-container {
        width: 320px;  /* Smaller for tablet */
        height: 220px; /* Smaller for tablet */
        margin: 0 auto; /* Center the container */
    }
    
    .gear-1, .gear-3 {
        width: 90px;   /* Smaller for tablet */
        height: 90px;  /* Smaller for tablet */
    }
    
    .gear-2 {
        width: 110px;  /* Smaller for tablet */
        height: 110px; /* Smaller for tablet */
    }
    
    .search-bar-overlay .outer-container {
        padding: 16px;
    }
    
    .search-bar-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .featured-section {
        margin-top: 20px;
        padding: 30px 5px;
        overflow-x: visible;
    }
    
    /* API Cards responsive for mobile */
    .api-card {
        width: calc(100vw - 40px);
        min-width: 280px;
        max-width: 100%;
        padding: 24px;
        margin: 0 auto;
    }
    
    .api-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        overflow-x: visible;
        padding: 0 15px;
        justify-content: center;
    }
    
    .api-cards-scroll-container {
        overflow-x: visible;
        padding: 0;
    }
    
    .api-card-header {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .api-icon {
        width: 45px;
        height: 45px;
        margin-top: 0;
    }
    
    .api-card-footer {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .api-card-footer .documentation-link,
    .api-card-footer .btn-subscribe,
    .api-card-footer .btn-overview {
        flex: 1;
        max-width: none;
        text-align: center;
        padding: 5px 6px;
        font-size: 0.75rem;
        min-width: 55px;
    }
    
    .api-cards-container {
        gap: 20px;
        padding: 5px 15px;
    }
    
    .api-description {
        margin-top: 8px;
        font-size: 1rem;
        color: #555;
        padding-left: 0;
    }
    
    /* NAVBAR RESPONSIVE FIX */
    .main-navbar {
        padding: 10px 15px;
    }
    
    .main-navbar .nav-link {
        margin: 0 8px;
    }
    
    .navbar-brand img {
        height: 35px !important;
        max-height: 35px !important;
    }
    
  
    
    /* Responsive Design for Footer only */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Logo responsive for very small screens */
    .navbar-brand img {
        height: 28px !important;
        max-width: 120px !important;
    }
    
    .hero-content {
        margin: 0 10px;
        max-width: calc(100vw - 20px);
    }
    
    .main-content-area {
        margin: 0 auto;
        max-width: 100%;
        padding: 0 10px 40px 10px;
        overflow-x: visible;
    }
    
    .search-bar-overlay {
        margin: 0 auto -20px auto;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .footer .container {
        margin: 0 10px;
        max-width: calc(100vw - 20px);
    }
    
    .hero-section {
        padding: 30px 15px; /* Reduced padding for compact mobile layout */
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .search-bar-overlay .outer-container {
        padding: 12px;
    }
    
    .featured-section {
        margin-top: 15px;
        padding: 25px 5px;
        overflow-x: visible;
    }
    
    .featured-section h2 {
        font-size: 2rem;
    }
    
    /* API Cards for very small screens */
    .api-card {
        width: calc(100vw - 20px);
        min-width: 260px;
        max-width: 100%;
        padding: 18px;
    }
    
    .api-card-title {
        font-size: 1.1rem;
    }
    
    .api-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .api-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .api-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 15px;
        width: 100%;
        justify-content: center;
    }
    
    .api-card-footer {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .api-card-footer .documentation-link,
    .api-card-footer .btn-subscribe,
    .api-card-footer .btn-overview {
        flex: 1;
        max-width: none;
        text-align: center;
        padding: 5px 6px;
        font-size: 0.75rem;
        min-width: 55px;
    }
    
    .api-cards-scroll-container {
        overflow-x: visible;
        padding: 0;
        width: 100%;
    }
    
    .gear-container {
        width: 280px;  /* Much smaller for mobile */
        height: 200px; /* Much smaller for mobile */
        margin: 0 auto; /* Center the container */
    }
    
    .gear-1, .gear-3 {
        width: 80px;   /* Much smaller for mobile */
        height: 80px;  /* Much smaller for mobile */
    }
    
    .gear-2 {
        width: 100px;  /* Much smaller for mobile */
        height: 100px; /* Much smaller for mobile */
    }
    
    .navbar-brand img {
        height: 30px !important;
        max-height: 30px !important;
    }
    
    .api-card {
        width: 100%;
        min-width: 260px;
        max-width: 100%;
        padding: 20px;
    }


/* --- Authentication Form Styles --- */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.left-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.left-panel h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
    font-size: 1.2rem;
}

.right-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form Control Styles */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: #1e293b;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* OTP Input Specific Styles */
#signup-otp {
    border: 2px solid #d1d5db !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    background-color: #ffffff !important;
    color: #1e293b;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#signup-otp:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#signup-otp:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: white !important;
    outline: none;
}

#signup-otp::placeholder {
    color: #9ca3b8;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Ensure OTP input is always visible as an input field */
#signup-otp:not(:focus):not(:placeholder-shown) {
    border-color: #d1d5db !important;
    background-color: #ffffff !important;
}

/* Input Group Styles */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
    border-radius: 12px 0 0 12px;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-outline-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* Feedback Messages */
.invalid-feedback {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.valid-feedback {
    color: #059669;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.password-toggle-icon:hover {
    color: #374151;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    color: #6b7280;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #3b82f6;
    background-color: white;
    border-bottom: 3px solid #3b82f6;
}

.nav-tabs .nav-link:hover {
    color: #3b82f6;
    background-color: #f1f5f9;
}

/* Form Text */
.form-text {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/* Password Requirements */
#password-reqs {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

#password-reqs ul {
    margin: 0;
    padding-left: 20px;
}

#password-reqs li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%; /* Make panels full width on mobile */
        min-height: auto;
        padding: 30px 20px;
    }
        
    .left-panel h2 {
        font-size: 2rem;
    }
    
    .main-navbar {
        padding: 10px 15px;
    }
    
    .main-navbar .nav-link {
        margin: 0 8px;
    }
    
    .form-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-group .form-control {
        border-radius: 12px;
    }
    
    .input-group .btn {
        border-radius: 12px;
        border-left: 2px solid;
    }
}

/* Explore More Button Styles */
.explore-more-container {
    text-align: center;
    margin: 30px auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

.explore-more-section {
    text-align: center;
    margin: 2rem auto 1rem auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.btn-explore-more {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
}

.btn-explore-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-explore-more:hover::before {
    left: 100%;
}

.btn-explore-more:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
    text-decoration: none;
}

.btn-explore-more:active {
    transform: rotate(-2deg) scale(0.98);
}

/* Ensure the explore more button is centered within the featured section */
.featured-section .explore-more-section {
    display:flex;           /* make container a flexbox */
    justify-content:center; /* horizontally center contents */
    width:100%;             /* span full card width */
    margin:30px 0;          /* keep your vertical spacing */
}

/* Add a subtle underline effect */
.btn-explore-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.btn-explore-more:hover::after {
    transform: scaleX(1);
}

/* Explore More Card Below Center Styles */
.explore-more-below-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.explore-more-card-below {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.explore-more-card-below::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f97316, #dc2626);
    background-size: 200% 100%;
    animation: cardBorderFlow 4s ease infinite;
}

.explore-more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.explore-more-link {
    font-family: 'Kalam', 'Comic Sans MS', cursive, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.explore-more-link:hover {
    color: #b91c1c;
    transform: rotate(-1deg) scale(1.05);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
}

.explore-more-link:active {
    transform: rotate(-2deg) scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-explore-more {
        font-size: 1.1rem;
    }
    
    .explore-more-link {
        font-size: 1.1rem;
    }
    
    .explore-more-card-below {
        width: 250px;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .btn-explore-more {
        font-size: 1rem;
    }
    
    .explore-more-link {
        font-size: 1rem;
    }
    
    .explore-more-card-below {
        width: 200px;
        min-height: 60px;
    }
    
    /* Ensure buttons stay in single row even on very small screens */
    .api-card-footer {
        gap: 4px;
    }
    
    .api-card-footer .documentation-link,
    .api-card-footer .btn-subscribe,
    .api-card-footer .btn-overview {
        padding: 5px 6px;
        font-size: 0.75rem;
        min-width: 50px;
    }
}


}

/* ========================================
   EXPLORE MORE CARD - SEPARATE STYLES
   ======================================== */

/* Explore More Card - Completely separate from .api-card */
.explore-more-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border: 2px dashed #3b82f6;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    cursor: pointer;
    /* Remove any inherited styles that might cause positioning issues */
    text-align: center;
    /* Make it fit in the grid like other cards */
    grid-column: span 1;
}

.explore-more-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 197, 253, 0.15) 100%);
    box-shadow: 
        0 25px 50px rgba(59, 130, 246, 0.2),
        0 15px 30px rgba(59, 130, 246, 0.1);
}

.explore-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 10px 8px;
    position: relative;
    z-index: 2;
}

.explore-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.explore-more-card:hover .explore-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.explore-icon i {
    font-size: 1.4rem;
    color: white;
    transition: all 0.3s ease;
}

.explore-more-card:hover .explore-icon i {
    transform: translateX(3px);
}

.explore-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.explore-description {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 500;
}

.explore-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.explore-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.explore-link:hover::before {
    left: 100%;
}

.explore-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive styles for explore more card */
@media (max-width: 1024px) {
    .explore-more-card {
        min-height: 280px;
    }
    
    .explore-icon {
        width: 45px;
        height: 45px;
    }
    
    .explore-icon i {
        font-size: 1.4rem;
    }
    
    .explore-title {
        font-size: 1rem;
    }
    
    .explore-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .explore-more-card {
        min-height: 250px;
    }
    
    .explore-icon {
        width: 40px;
        height: 40px;
    }
    
    .explore-icon i {
        font-size: 1.2rem;
    }
    
    .explore-title {
        font-size: 0.9rem;
    }
    
    .explore-description {
        font-size: 0.7rem;
    }
    
    .explore-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .explore-more-card {
        min-height: 220px;
    }
    
    .explore-icon {
        width: 35px;
        height: 35px;
    }
    
    .explore-icon i {
        font-size: 1.1rem;
    }
    
    .explore-title {
        font-size: 0.85rem;
    }
    
    .explore-description {
        font-size: 0.65rem;
    }
    
    .explore-link {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}