/* Hide scrollbars and prevent default scroll for fullpage effect */
html, body {
    height: 100%;
    overflow: hidden !important;
    scroll-behavior: auto !important;
}

body {
    position: relative;
}

/* Optional: Hide scrollbars for all browsers */
body::-webkit-scrollbar {
    display: none;
}

.hero, .features {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
:root {
    --anim-duration: 0.9s;
    --anim-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --primary: #1090de;
    --primary-dark: #0a2540;
    --primary-light: #f0f4fa;
    --text: #333333;
    --light: #ffffff;
    --gray: #e0e6ed;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --footer-bg: #96a3b4ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
}

/* Header Styles */
header {
    background-color: rgba(255,255,255,0.85);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-bottom: 1.5px solid rgba(16,144,222,0.08);
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.7s var(--anim-ease), transform 0.7s var(--anim-ease);
}

/* Fullpage.js adjustments */
#fullPage {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.section {
    height: 100vh;
    width: 100%;
    position: relative;
}

/* Adjust your existing hero styles */
.hero {
    height: 100vh;
    padding: 6rem 0 2rem 6vw;
    margin: 0;
}

/* Adjust features section for fullpage */
.features {
    height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation dots styling */
#fp-nav ul li a span, 
.fp-slidesNav ul li a span {
    background: var(--primary) !important;
}

#fp-nav ul li a.active span, 
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a.active span, 
.fp-slidesNav ul li:hover a.active span {
    background: var(--primary-dark) !important;
    width: 12px;
    height: 12px;
    margin: -4px 0 0 -4px;
}

#fp-nav ul li .fp-tooltip {
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Adjust header position */
header {
    position: fixed;
    z-index: 1000; /* Above fullpage navigation */
}

/* ------------- */

/* ------------- */
body.anim-in header {
    opacity: 1;
    transform: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 6vw;
    padding-right: 2rem;
}

.logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(16, 144, 222, 0.13));
    background: transparent;
    border-radius: 12px;
    padding: 0.2rem 0.5rem;
}

.login-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: url('../Images/index_pic_1.jpg') center/cover no-repeat;
    padding: 6rem 0 2rem 6vw;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
background:
    linear-gradient(to right, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.97) 40%, rgba(255,255,255,0.01) 80%, rgba(255,255,255,0.01) 100%),
    radial-gradient(
        ellipse 80% 100% at 0% 50%,
        rgba(255,255,255,0.99) 0%,
        rgba(255,255,255,0.98) 28%,
        rgba(255,255,255,0.97) 38%,
        rgba(255,255,255,0.95) 48%,
        rgba(255,255,255,0.90) 54%,
        rgba(255,255,255,0.75) 60%,
        rgba(255,255,255,0.45) 70%,
        rgba(255,255,255,0.15) 80%,
        rgba(255,255,255,0.01) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0;
    width: 75vw;
    min-width: 500px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 7rem 5rem 7rem 3rem;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity var(--anim-duration) var(--anim-ease), transform var(--anim-duration) var(--anim-ease);
}

body.anim-in .hero-content {
    opacity: 1;
    transform: none;
}

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

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.hero-text p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

/* Unify button base style for primary and secondary */
.btn-primary, #microsoft-login-button, .btn-secondary {
    font-size: 1rem;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    border-radius: 50px;
    min-height: 48px;
    line-height: 1.2;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s var(--anim-ease);
    cursor: pointer;
    border-width: 2px;
    border-style: solid;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary, #microsoft-login-button {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
/* Ensure CTA buttons are on the same row and spaced */
.cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary:hover, #microsoft-login-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 144, 222, 0.3);
}

.btn-primary img, #microsoft-login-button img {
    width: 20px;
}




.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-secondary .arrow {
    display: inline-block;
    opacity: 0;
    width: 1.2em;
    max-width: 1.2em;
    overflow: hidden;
    transform: translateX(-10px) scale(0.8);
    transition: opacity 0.25s var(--anim-ease), transform 0.25s var(--anim-ease);
    font-size: 1.1em;
    color: var(--primary);
    margin-left: 0.1em;
    pointer-events: none;
    vertical-align: middle;
}

.btn-secondary:hover .arrow, .btn-secondary:focus .arrow {
    opacity: 1;
    transform: translateX(6px) scale(1.1);
    color: var(--primary);
    overflow: visible;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(16,144,222,0.13);
    transform: translateY(-3px) scale(1.04);
}

.btn-secondary:hover .arrow, .btn-secondary:focus .arrow {
    opacity: 1;
    transform: translateX(6px) scale(1.1);
    color: var(--primary);
}

.btn-secondary:active {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,144,222,0.18);
    transform: scale(0.98);
}

.btn-secondary:active .arrow {
    color: #fff;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature card base state: hidden and moved down */
.feature-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: opacity 0.7s var(--anim-ease), transform 0.7s var(--anim-ease);
    border: 1px solid rgba(16, 144, 222, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

/* Feature card animated in (JS will add this class) */
.feature-card.card-anim-in {
    opacity: 1;
    transform: none;
}
.feature-card.card-anim-in:nth-child(1) { transition-delay: 0.15s; }
.feature-card.card-anim-in:nth-child(2) { transition-delay: 0.28s; }
.feature-card.card-anim-in:nth-child(3) { transition-delay: 0.41s; }
.feature-card.card-anim-in:nth-child(4) { transition-delay: 0.54s; }
.feature-card.card-anim-in:nth-child(5) { transition-delay: 0.67s; }
.feature-card.card-anim-in:nth-child(6) { transition-delay: 0.80s; }
.feature-card.card-anim-in:nth-child(7) { transition-delay: 0.93s; }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 144, 222, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text);
}

/* Footer */
header {
    background-color: rgba(255,255,255,0.85);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-bottom: 1.5px solid rgba(16,144,222,0.08);
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.7s var(--anim-ease), transform 0.7s var(--anim-ease), background-color 0.4s var(--anim-ease);
}

body.features-active header {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}
.footer-logo {
    width: 150px;
    margin-bottom: 1.5rem;
}

/*
.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}
*/

/* Fullpage scroll snap effect for hero and features sections */
html, body {
    height: 100%;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    scroll-snap-type: y mandatory;
}

.hero, .features {
    scroll-snap-align: start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .btn-primary, .btn-secondary, #microsoft-login-button {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 80vh;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}