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

:root {
    /* Lavender/Violet Color Palette */
    --primary-color: #8B5FBF;
    --primary-light: #A478D1;
    --primary-dark: #6B4C93;
    --secondary-color: #B19CD9;
    --accent-color: #E6D7FF;
    --accent-light: #F3ECFF;
    --text-primary: #2D1B3D;
    --text-secondary: #5A4B6B;
    --text-light: #8B7A9B;
    --background: #FDFCFF;
    --surface: #FFFFFF;
    --surface-light: #F9F7FF;
    --border: #E1D5F0;
    --shadow: rgba(139, 95, 191, 0.1);
    --shadow-hover: rgba(139, 95, 191, 0.2);
    
    /* Fun colors for student tools - soft lavender/violet shades with better contrast */
    --fun-primary: #B19CD9;
    --fun-secondary: #E8DDFF;
    --fun-accent: #9B7EBD;
    --fun-light: #F5F1FF;
    --fun-warning: #C8A8E0;
    --fun-success: #A890C7;
}

body {
    font-family: 'Libre Baskerville', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 50%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E1D5F0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-title i {
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.floating-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    margin-left: 40px;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    margin-left: 20px;
}

.floating-card:hover {
    transform: translateY(-5px);
}

.floating-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.floating-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-style: italic;
}

/* Features Section */
.features {
    background: var(--surface-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 95, 191, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Tools Section */
.tools {
    background: var(--background);
}

.tool-section {
    background: var(--surface);
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
}

.tool-header {
    margin-bottom: 40px;
}

.tool-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-info h3 i {
    font-size: 1.8rem;
}

.tool-subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-style: italic;
    margin-bottom: 20px;
}

.tool-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Download Section */
.download-section {
    margin: 40px 0;
}

.download-section h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.download-filters {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: 'Libre Baskerville', serif;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

.download-card {
    background: var(--surface-light);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.download-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-download i {
    opacity: 1;
    color: white;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

/* Tool Features */
.tool-features {
    margin-top: 40px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Student Tools Section */
.student-tools {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface-light) 100%);
    position: relative;
}

.fun-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.fun-card {
    background: var(--surface);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(139, 95, 191, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fun-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--fun-light) 0%, var(--fun-secondary) 50%, var(--fun-primary) 100%);
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
}

.fun-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 95, 191, 0.2);
}

.tool-header-fun {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header-fun i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.tool-header-fun h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fun-subtitle {
    color: var(--primary-light);
    font-style: italic;
    font-size: 1.1rem;
}

.fun-features {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

.fun-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.fun-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-fun {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-fun:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

/* Course Section */
.course-section {
    margin-top: 60px;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 2px solid var(--border);
}

.course-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-section > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.course-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.course-module-card {
    background: var(--surface-light);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.course-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary-color);
}

.course-module-card.final-assessment {
    background: linear-gradient(135deg, var(--fun-light) 0%, var(--fun-secondary) 100%);
    border: 2px solid var(--primary-color);
}

.course-module-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-module-card.final-assessment i {
    color: var(--primary-dark);
    font-size: 2.2rem;
}

.course-module-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.course-module-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.course-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.course-note {
    margin-top: 15px;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
}

/* Case Studies */
.case-studies-section {
    margin-top: 60px;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 2px solid var(--border);
}

.case-studies-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.case-studies-section > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.case-study-card {
    background: var(--surface-light);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary-color);
}

.case-study-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-study-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.case-study-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Architecture Section */
.architecture {
    background: var(--surface-light);
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.arch-card {
    background: var(--surface);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.arch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.arch-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.arch-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.arch-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-feature i {
    color: var(--accent-light);
    font-size: 1.2rem;
}

.contact-cta {
    text-align: center;
}

.contact-note {
    margin-top: 15px;
    opacity: 0.8;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .student-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .download-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .tool-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Filter Animation */
.download-card.hidden {
    display: none;
}

.download-card.visible {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}
