:root {
    --primary-color: #4361ee;
    --accent-color: #4cc9f0;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-section: #151515;
    --text-color: #e9ecef;
    --text-light: #adb5bd;
    --gradient: linear-gradient(135deg, #4361ee, #4cc9f0);
    --gradient-alt: linear-gradient(135deg, #4cc9f0, #4361ee);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-color: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Main content should take remaining space */
main {
    flex: 1 0 auto;
}

/* Footer at the bottom */
footer {
    flex-shrink: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-color);
    color: var(--text-color);
    padding-top: 80px; /* For fixed header */
    overflow-x: hidden;
    min-height: 100vh; /* Ensure minimum full height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium background with subtle patterns */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(67, 97, 238, 0.04) 1%, transparent 7%),
        radial-gradient(circle at 75% 75%, rgba(76, 201, 240, 0.04) 1%, transparent 7%);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: -1;
}

/* Enhanced Hero Section */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 50px; /* Reduced padding */
    position: relative;
    min-height: calc(100vh - 80px);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    padding-right: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.highlight {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    margin: 5px 0;
    transform: rotate(-2deg);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d1d7e0;
    margin-bottom: 25px; /* Reduced margin */
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stat-counters {
    display: flex;
    margin-bottom: 25px; /* Reduced margin */
    animation: fadeIn 2s ease-out;
}

.stat-item {
    margin-right: 40px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b8c1cf;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.buttons {
    display: flex;
    align-items: center;
    margin-top: 25px; /* Reduced margin */
    animation: fadeIn 2.5s ease-out;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-alt);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-section);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary:hover .icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

/* Enhanced Hero Image Container */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease-out;
    perspective: 1000px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Multi-layered premium circle background */
.circle {
    width: 350px;
    height: 350px;
    background: var(--gradient);
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    box-shadow: 0 10px 40px rgba(67, 97, 238, 0.3);
    animation: pulseLarge 4s infinite alternate ease-in-out;
    opacity: 0.85;
    transform-style: preserve-3d;
}

.circle::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(76, 201, 240, 0.3);
    animation: rotateCircle 15s linear infinite;
}

.circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at center, 
                rgba(255, 255, 255, 0.15) 0%, 
                rgba(255, 255, 255, 0) 70%);
}

/* Glowing orbit effect */
.orbit {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(76, 201, 240, 0.2);
    transform-style: preserve-3d;
    animation: orbit 20s linear infinite;
    z-index: -2;
}

.orbit-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(76, 201, 240, 0.6);
    transform: translateZ(0);
}

.orbit-particle:nth-child(1) {
    top: 50%;
    left: 0;
    animation: pulseLight 2s infinite alternate;
}

.orbit-particle:nth-child(2) {
    top: 0;
    left: 50%;
    animation: pulseLight 2s infinite alternate 0.5s;
}

.orbit-particle:nth-child(3) {
    top: 50%;
    right: 0;
    animation: pulseLight 2s infinite alternate 1s;
}

.orbit-particle:nth-child(4) {
    bottom: 0;
    left: 50%;
    animation: pulseLight 2s infinite alternate 1.5s;
}

/* Premium gleam effect */
.gleam {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.1) 50%, 
                rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    animation: gleamRotate 5s infinite linear;
    z-index: 2;
    pointer-events: none;
}

/* Enhanced fitness infographic */
.fitness-infographic {
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
    position: relative;
    z-index: 3;
}

.fitness-infographic::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
                rgba(76, 201, 240, 0.1) 0%, 
                rgba(67, 97, 238, 0.05) 40%, 
                transparent 70%);
    filter: blur(10px);
    z-index: -1;
}

.fitness-infographic text {
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced animations */
@keyframes pulseLarge {
    0% {
        transform: scale(1) translateZ(0px);
        opacity: 0.85;
        box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
    }
    100% {
        transform: scale(1.08) translateZ(20px);
        opacity: 0.9;
        box-shadow: 0 15px 50px rgba(67, 97, 238, 0.5);
    }
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbit {
    0% { transform: rotateZ(0deg) rotateY(60deg) rotateX(30deg); }
    100% { transform: rotateZ(360deg) rotateY(60deg) rotateX(30deg); }
}

@keyframes pulseLight {
    0% { 
        transform: scale(1);
        opacity: 0.7;
    }
    100% { 
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes gleamRotate {
    0% { transform: rotate(0deg) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg) scale(1.2); opacity: 0; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.line-animation {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dash 3s linear forwards infinite;
}

.icon-animation {
    animation: popIn 0.5s ease-out forwards, float 4s ease-in-out infinite;
    opacity: 0;
    transform: scale(0.5);
}

.icon-animation:nth-child(6) {
    animation-delay: 0.2s, 1s;
}

.icon-animation:nth-child(8) {
    animation-delay: 0.4s, 1.5s;
}

.icon-animation:nth-child(10) {
    animation-delay: 0.6s, 2s;
}

.icon-animation:nth-child(12) {
    animation-delay: 0.8s, 2.5s;
}

@keyframes pulse {
    0% {
        r: 80;
        opacity: 1;
    }
    50% {
        r: 85;
        opacity: 0.8;
    }
    100% {
        r: 80;
        opacity: 1;
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Enhanced floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(76, 201, 240, 0.15));
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Enhanced Features Section */
.features-section {
    padding: 70px 0 80px; /* Reduced padding */
    background-color: var(--darker-color);
    border-radius: 40px 40px 0 0; /* Increased radius */
    margin-top: -50px; /* Increased overlap */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
}

.features-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px; /* Reduced margin */
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.features-title.visible {
    transform: translateY(0);
    opacity: 1;
}

.features-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b8c1cf;
    max-width: 700px;
    margin: 0 auto 40px; /* Reduced margin */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.features-subtitle.visible {
    transform: translateY(0);
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; /* Reduced gap */
}

/* Updated feature card styles for consistent button alignment */
.feature-card {
    background-color: var(--dark-card);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, 
                rgba(67, 97, 238, 0.05) 0%, 
                rgba(76, 201, 240, 0.05) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.feature-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    top: -100%;
    left: -100%;
    border-radius: 15px;
    animation: shimmer 3s infinite;
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px; /* Reduced margin */
    color: var(--accent-color);
}

.feature-description {
    color: #c4cad3;
    line-height: 1.6;
    flex-grow: 1; /* This makes the description take up available space */
    margin-bottom: 20px;
}

/* Premium feature card button */
.feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--dark-section);
    color: var(--accent-color);
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto; /* This pushes the button to the bottom */
    align-self: flex-start; /* This aligns the button to the left */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(76, 201, 240, 0.3);
    z-index: 1;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(67, 97, 238, 0.25);
}

.feature-btn:hover::before {
    opacity: 1;
}

.feature-btn .btn-icon {
    margin-left: 8px;
    font-size: 0.85em;
    transition: transform 0.3s ease;
}

.feature-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Card hover effect adjustment for button */
.feature-card:hover .feature-btn {
    box-shadow: 0 7px 15px rgba(67, 97, 238, 0.3);
}

@keyframes shimmer {
    to {
        top: 100%;
        left: 100%;
    }
}

/* Coming Soon Card Styles */
.feature-card.coming-soon {
    position: relative;
    overflow: hidden;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, 
                rgba(67, 97, 238, 0.03) 0%, 
                rgba(76, 201, 240, 0.03) 100%);
}

.feature-card.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    z-index: -1;
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    z-index: 2;
    animation: pulse-badge 2s infinite;
}

.coming-soon-icon {
    position: relative;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.7), rgba(76, 201, 240, 0.7));
    opacity: 0.8;
}

.coming-soon-icon::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow 2s infinite alternate;
}

/* Progress bar instead of notification button */
.progress-container {
    margin-top: 15px;
    padding: 10px 0;
    text-align: center;
}

.progress-bar {
    height: 5px;
    background: var(--dark-section);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%; /* Represents development progress */
    background: var(--gradient);
    animation: progress-animation 2s ease-in-out infinite;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* New animations for coming soon card */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    }
}

@keyframes glow {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 0.7;
    }
}

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

/* Coming Soon Card End Style */


/* Testimonials Section */
.testimonials-section {
    padding: 70px 0; /* Reduced padding */
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
    margin-top: -20px; /* Added negative margin to pull up */
}

.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 35px; /* Reduced padding */
    box-shadow: var(--box-shadow);
    margin: 0 auto;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid var(--border-color);
}

.testimonial.visible {
    transform: scale(1);
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px; /* Reduced margin */
    color: white;
    position: relative;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 100px;
    color: rgba(76, 201, 240, 0.1);
    position: absolute;
    top: -50px;
    left: -20px;
    font-family: 'Georgia', serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.author-role {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .stat-counters {
        flex-wrap: wrap;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    /* Better iPad Air fitting */
    .hero-section {
        min-height: calc(100vh - 100px);
        padding: 30px 0 40px;
        height: auto;
        display: flex;
        align-items: center;
    }
    
    /* Better section transition on tablet */
    .features-section {
        margin-top: -40px;
    }
}

@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (orientation: portrait) {
    /* iPad Air specific adjustments */
    body {
        height: 100%;
        min-height: -webkit-fill-available;
    }
    
    .hero-section {
        min-height: 650px;
        padding: 20px 0 40px;
    }
    
    /* Ensure content fits without scrolling */
    .circle {
        width: 300px;
        height: 300px;
    }
    
    .orbit {
        width: 340px;
        height: 340px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 20px 0 30px;
        text-align: center;
        min-height: auto;
        height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        order: 2;
    }
    
    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image-container {
        margin-bottom: 30px; /* Reduced margin */
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .stat-counters {
        justify-content: center;
    }

    .buttons {
        justify-content: center;
    }

    .circle {
        width: 250px;
        height: 250px;
    }
    
    .orbit {
        width: 280px;
        height: 280px;
    }
    
    .fitness-infographic svg {
        width: 100%;
        height: auto;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
    
    /* Ensure sections flow better on mobile */
    .features-section {
        margin-top: -30px;
        padding: 50px 0 60px;
    }
    
    .testimonials-section {
        padding: 50px 0;
    }

    .feature-btn {
        width: 100%;
        align-self: center; /* Center align button on mobile */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .stat-item {
        margin-right: 20px;
    }
    
    .testimonial-quote {
        font-size: 1rem;
    }
    
    /* Smaller device optimizations */
    .hero-section {
        padding: 10px 0 20px;
    }
    
    .circle {
        width: 200px;
        height: 200px;
    }
    
    .orbit {
        width: 220px;
        height: 220px;
    }
    
    /* Further reduce spacing on small screens */
    .features-section {
        padding: 40px 0 50px;
        margin-top: -25px;
    }
    
    .features-subtitle {
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
}

/* Fix for Safari on iOS to handle 100vh properly */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
}

/* Latest Articles Section */
.latest-articles-section {
    padding: 80px 0;
    background-color: var(--dark-section);
    position: relative;
    overflow: hidden;
}

.latest-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(67, 97, 238, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.blog-category-badge {
    background: var(--gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.blog-link i {
    margin-left: 8px;
    transition: transform 0.2s;
}

.blog-card:hover .blog-link i {
    transform: translateX(5px);
}

.read-more-container {
    text-align: center;
    margin-top: 20px;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 50px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    grid-column: 1 / -1;
}

/* Responsive styles */
@media (max-width: 992px) {
    .latest-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .latest-blogs-grid {
        grid-template-columns: 1fr;
    }
}






#header, #footer {
    width: 100%;
}