:root {
    /* Microsoft Colors */
    --ms-red: #F25022;
    --ms-green: #7FBA00;
    --ms-blue: #00A4EF;
    --ms-yellow: #FFB900;
    
    /* App Colors Word/Excel/PowerPoint specific */
    --word-blue: #2B579A;
    --excel-green: #217346;
    --ppt-orange: #B7472A;

    /* Theme */
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #1e1e1e;
    --text-secondary: #5e5e5e;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(240,244,248,0.9));
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 250px;
    height: 250px;
    background: var(--ms-blue);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: var(--ms-yellow);
    bottom: -25px;
    right: -25px;
    animation-delay: -2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--ms-red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
}

/* MS Logo */
.ms-logo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 40px;
    height: 40px;
    margin: 0 auto 1.25rem auto;
}

.ms-logo .box {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.ms-logo:hover .box {
    transform: scale(1.1);
}

.ms-logo .red { background-color: var(--ms-red); }
.ms-logo .green { background-color: var(--ms-green); }
.ms-logo .blue { background-color: var(--ms-blue); }
.ms-logo .yellow { background-color: var(--ms-yellow); }

.hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #111;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--ms-blue);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 164, 239, 0.3);
}

.cta-button:hover {
    background-color: #008cc9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 164, 239, 0.4);
}

/* Main Content container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.learning-path-image {
    margin-top: 2.5rem;
    text-align: center;
}

.learning-path-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Info Banner */
.info-banner {
    background: rgba(0, 164, 239, 0.08);
    border: 1px solid rgba(0, 164, 239, 0.2);
    border-left: 4px solid var(--ms-blue);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.info-banner .info-icon {
    font-size: 2.5rem;
}

.info-banner p {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Card */
.card {
    display: block;
    text-decoration: none;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.institution-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card:hover .card-link {
    gap: 0.75rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

footer p {
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.25rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
