:root {
    --primary-color: #FF9900;
    --secondary-color: #232F3E;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a242f 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 2rem;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.credly-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.credly-icon {
    font-size: 2rem;
    transition: opacity 0.3s, transform 0.3s;
}

.credly-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.credly-link:hover .credly-icon {
    opacity: 0;
    transform: scale(0.8);
}

.credly-link:hover .credly-logo {
    opacity: 1;
    transform: scale(1.2);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.bg-light {
    background: var(--light-bg);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

/* About section - center align text */
#about p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Cloud News */
.cloud-news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

.cloud-news-card {
    flex: 0 0 auto;
    width: 220px;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cloud-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cloud-news-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cloud-news-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.cloud-news-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Game-Based Learning */
.game-learning-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

.game-learning-card {
    flex: 0 0 auto;
    width: 220px;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.game-learning-card i {
    font-size: 3rem;
    color: #3B82F6;
    margin-bottom: 1rem;
}

.game-learning-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.game-learning-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Upcoming Events */
.events-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6B46C1 0%, #3B82F6 100%);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 600px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.event-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.event-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.event-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Learning Resources */
.learning-subsection {
    margin-bottom: 4rem;
}

.learning-subsection h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.subsection-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cert-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}

.learning-tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

.learning-tile {
    flex: 0 0 auto;
    width: 220px;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.learning-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.learning-tile i {
    font-size: 3rem;
    color: var(--tile-color);
    margin-bottom: 1rem;
}

.learning-tile h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.learning-tile p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    position: relative;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item.left .timeline-content::before {
    right: -42px;
}

.timeline-item.right .timeline-content::before {
    left: -42px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-event {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 70px;
    }
    
    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -42px;
    }
}

/* Contact section - center align intro text */
#contact p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Experience */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.period {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.experience-card ul {
    list-style-position: inside;
    color: #666;
}

.experience-card li {
    margin-bottom: 0.5rem;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    align-items: start;
}

.cert-card {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cert-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.cert-card img {
    width: 100%;
    height: auto;
    max-width: 180px;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s;
    object-fit: contain;
}

.cert-card:hover img {
    transform: scale(1.05);
}

.badge-caption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
    display: none;
}

.cert-card:hover .badge-caption {
    display: block;
}

.cert-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.resource-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-list a:hover {
    color: var(--primary-color);
}

/* Contact */
.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.contact-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.credly-btn {
    position: relative;
}

.credly-icon-btn {
    transition: opacity 0.3s;
}

.credly-logo-btn {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    position: absolute;
    left: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.credly-btn:hover .credly-icon-btn {
    opacity: 0;
}

.credly-btn:hover .credly-logo-btn {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-avatar {
        width: 100px;
        height: 100px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-logo {
        width: 100px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
}
