/* CSS Variables - Using your color scheme */
:root {
    --color-black: #000000;
    --color-tan: #86745c;
    --color-light-tan: #c2baab;
    --color-dark-tan: #6a5c48;
    --color-white: #ffffff;
    --color-black-63: rgba(0, 0, 0, 0.63);
    --color-black-80: rgba(0, 0, 0, 0.8);
    --color-black-88: rgba(0, 0, 0, 0.88);
    --color-gold: #b19977;
    
    /* Additional colors for accents */
    --color-accent: #b19977;
    --color-accent-light: #c2baab;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1410 100%);
    color: var(--color-light-tan);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Stars */
.stars,
.stars2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="1" fill="%23b19977" opacity="0.3"/><circle cx="50" cy="30" r="0.5" fill="%23c2baab" opacity="0.5"/><circle cx="80" cy="70" r="0.8" fill="%2386745c" opacity="0.4"/><circle cx="30" cy="80" r="0.6" fill="%23b19977" opacity="0.6"/></svg>') repeat;
    animation: starsMove 100s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><circle cx="20" cy="40" r="0.7" fill="%23c2baab" opacity="0.4"/><circle cx="70" cy="20" r="0.5" fill="%2386745c" opacity="0.3"/><circle cx="90" cy="80" r="1" fill="%23b19977" opacity="0.5"/><circle cx="40" cy="100" r="0.6" fill="%23c2baab" opacity="0.4"/></svg>') repeat;
    animation: starsMove 150s linear infinite reverse;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: var(--color-black-88);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-dark-tan);
    padding: 20px 0;
    position: relative;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(177, 153, 119, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(177, 153, 119, 0.5);
    margin: 0;
}

.tagline {
    font-size: 0.9rem;
    color: var(--color-accent-light);
    margin: 0;
    font-weight: 300;
}

/* Main Content */
main {
    padding: 60px 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(177, 153, 119, 0.4);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-light-tan);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--color-black-80) 0%, var(--color-black-63) 100%);
    border: 2px solid var(--color-dark-tan);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 8px 32px rgba(177, 153, 119, 0.15);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-light-tan);
}

.welcome-content p:last-child {
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(177, 153, 119, 0.3);
}

/* Course Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Ensure nice layout for 6 cards */
@media (min-width: 1400px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) and (max-width: 1399px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 999px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.course-card {
    background: linear-gradient(135deg, var(--color-black-88) 0%, var(--color-black-63) 100%);
    border: 2px solid var(--color-dark-tan);
    border-radius: 15px;
    padding: 35px;
    text-decoration: none;
    color: var(--color-light-tan);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out both;
}

.course-card:nth-child(1) { animation-delay: 0.3s; }
.course-card:nth-child(2) { animation-delay: 0.4s; }
.course-card:nth-child(3) { animation-delay: 0.5s; }
.course-card:nth-child(4) { animation-delay: 0.6s; }

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(177, 153, 119, 0.1) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 40px rgba(177, 153, 119, 0.25);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

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

.course-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.course-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-light-tan);
}

.card-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.course-card:hover .card-arrow {
    transform: translateX(10px);
}

/* Projects Section */
.projects-section {
    animation: fadeInUp 1s ease-out 0.7s both;
}

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

.project-link {
    background: linear-gradient(135deg, var(--color-black-88) 0%, var(--color-black-63) 100%);
    border: 2px solid var(--color-dark-tan);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: var(--color-light-tan);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(177, 153, 119, 0.2);
}

.project-icon {
    font-size: 1.8rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.project-link:hover .project-icon {
    filter: grayscale(0);
}

/* Footer */
footer {
    background: var(--color-black-88);
    border-top: 2px solid var(--color-dark-tan);
    padding: 30px 0;
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

footer p {
    color: var(--color-light-tan);
    margin: 5px 0;
    font-size: 0.95rem;
}

footer p:first-child {
    font-weight: 500;
    color: var(--color-gold);
}

/* Mobile-specific footer adjustments */
@media (max-width: 480px) {
    footer {
        padding: 25px 15px;
        margin-top: 60px;
    }
    
    footer p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .welcome-card {
        padding: 25px 20px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Better touch targets for mobile */
    .course-card {
        padding: 30px 25px;
        min-height: 200px;
    }
    
    .project-link {
        padding: 20px;
        font-size: 1rem;
    }
    
    /* Improve readability on mobile */
    .welcome-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Logo adjustments */
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    /* Hero section mobile */
    .hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    /* Card improvements for small screens */
    .course-card {
        padding: 25px 20px;
    }
    
    .course-card h3 {
        font-size: 1.2rem;
    }
    
    .course-card p {
        font-size: 0.95rem;
    }
    
    /* Better spacing on small screens */
    main {
        padding: 40px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Touch-friendly back button */
    .back-button {
        font-size: 1rem;
        padding: 12px 20px;
        margin-bottom: 25px;
    }
}

/* Page-specific styles */
.page-container {
    max-width: 900px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 2px solid var(--color-dark-tan);
    border-radius: 8px;
    background: var(--color-black-80);
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: var(--color-gold);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(177, 153, 119, 0.2);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.page-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(177, 153, 119, 0.4);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-light-tan);
    font-weight: 300;
}

.content-section {
    background: linear-gradient(135deg, var(--color-black-80) 0%, var(--color-black-63) 100%);
    border: 2px solid var(--color-dark-tan);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.content-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-section h3:first-child {
    margin-top: 0;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-light-tan);
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-section li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-light-tan);
}

.content-section li::before {
    content: 'â–¹';
    position: absolute;
    left: 10px;
    color: var(--color-gold);
    font-size: 1.3rem;
}

.content-section strong {
    color: var(--color-gold);
    font-weight: 600;
}

/* Standards Grid */
.standards-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.standard-item {
    background: var(--color-black-88);
    border-left: 4px solid var(--color-gold);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.standard-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(177, 153, 119, 0.15);
}

.standard-item h4 {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.standard-item p {
    margin: 0;
    font-size: 1rem;
}
