/* CloudEDU Main Styles */
:root {
    --primary-color: #4285f4;
    --primary-dark: #3293f9;
    --secondary-color: #f4b400;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Didact Gothic', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 20px;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.social-header {
    background-color: var(--light-gray);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-link {
    padding: 5px 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Main Navigation */
.main-nav {
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    padding: 10px 0;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 300px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
#main-content {
    margin-top: 120px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.hero-content h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.hero-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-sidebar {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-sidebar h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-sidebar ul {
    list-style: none;
    margin-bottom: 2rem;
}

.hero-sidebar li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.hero-sidebar li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Education Experience Section */
.education-experience {
    padding: 80px 0;
    background-color: var(--white);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-divider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-line {
    width: 2px;
    height: 80px;
    background-color: var(--primary-color);
}

.experience-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.experience-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Technology Rich Learning Environments */
.tech-environments {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.tech-content h2 {
    margin-bottom: 2rem;
    color: var(--white);
}

.tech-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Client Testimonials */
.client-testimonials {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.client-testimonials h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.testimonial-slide {
    display: none;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: 500;
    color: var(--primary-color);
    font-style: normal;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* What We Offer */
.what-we-offer {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.what-we-offer h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.products-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.product-slide {
    display: none;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.product-slide.active {
    display: block;
}

.product-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.product-content li {
    padding: 5px 0;
    color: var(--text-light);
}

.products-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.products-prev,
.products-next {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.products-prev:hover,
.products-next:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-left a {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-left p {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-left a {
    color: var(--white);
}

.footer-right {
    text-align: right;
}

.footer-right img {
    max-width: 300px;
    height: auto;
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-sidebar {
        order: -1;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .testimonial-content p,
    .product-content p {
        font-size: 1rem;
    }
    
    #main-content {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .education-experience,
    .tech-environments,
    .client-testimonials,
    .what-we-offer {
        padding: 40px 0;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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