/* --- 1. Global Reset & Variables (Dark Theme) --- */
:root {
    --primary-color: #F4D03F;  /* Warm Gold for focus/highlights */
    --accent-color: #2ECC71;   /* Clean Green for secondary CTAs */
    --text-dark: #2C3E50;      /* Rich Charcoal/Navy (Main Background Color) */
    --text-light: #ECF0F1;     /* Off-White Text Color */
    --section-dark: #34495E;   /* Dark Blue/Grey (Alternating Section Background) */
    --card-color: #FFFFFF;     /* Pure white for inner content cards */
    --font-family: 'Roboto', sans-serif;
}

/* Enable smooth scrolling for SPA navigation links */
html {
    scroll-behavior: smooth; 
}

/* Apply a global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- New Styles for Text-Based Logo: Dev Yatri --- */

/* --- Updated CSS for Video Placeholder --- */

.image-placeholder {
    /* Ensure the container is ready for the video to fill it */
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* REDUCED SIZE: Lower the minimum height */
    min-height: 300px; /* Reduced from 380px */ 
    
    /* ADDED CONSTRAINT: Limit the maximum width of the placeholder */
    max-width: 500px; /* Adjust this value as needed, 500px is a good max for a half-column */

    border-radius: 10px;
    overflow: hidden; 
    /* IMPORTANT: Ensure it doesn't expand past this boundary */
}

.hero-video {
    width: 100%;
    height: 100%;
    
    /* CRITICAL FIX: UNCOMMENT/ACTIVATE object-fit: cover; */
    object-fit: cover; 
    
    border-radius: 10px; 
}

/* Base styling for the entire logo container */
.logo {
    /* Override the default H1 margin to ensure clean alignment */
    margin: 0; 
    padding: 0;
    font-size: 1.8rem; /* Set base size for the logo */
    font-weight: 700;
    letter-spacing: 1px;
}

/* Style the "Dev" part (Uses the primary Gold color) */
.logo-dev {
    color: var(--primary-color); /* Warm Gold */
    font-family: 'Montserrat', sans-serif; /* A sharp, modern font (if imported) */
    /* text-transform: uppercase; */
    font-size: 1.9rem;
}

/* Style the "Yatri" part (Uses the secondary Green/Accent color, or light text) */
.logo-yatri {
    color: var(--accent-color); /* Clean Green */
    /* Alternatively, use the light text color for a subdued look: */
    /* color: var(--text-light); */
    font-family: 'Roboto', sans-serif; 
    font-style: italic;
    margin-left: -2px; /* Pull it slightly closer to 'Dev' */
    font-size: 1.9rem;
}

/* Optional: Add a subtle hover effect */
.logo:hover {
    opacity: 0.9;
    cursor: default;
}

/* --- New Styles for Personalized Hero Section --- */

.intro-greeting {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light); /* Off-white color */
    margin-bottom: 10px;
}

#typing-heading {
    /* Ensure the h2 size is correct */
    font-size: 2.8rem;
    color: var(--primary-color);
    /* For the typing effect, we need the element to allow inline content */
    display: inline-block; 
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing content before it's typed */
}

/* Cursor Styling (Key for the typing effect illusion) */
.typing::after {
    content: '|'; /* The blinking cursor */
    display: inline-block;
    animation: blink 0.7s infinite;
    font-weight: 300; /* Thin cursor */
    color: var(--primary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    /* Set dark background and light text for the entire site */
    background-color: var(--text-dark); 
    color: var(--text-light);     
}

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

h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--primary-color); /* Headings use the accent color */
}
/* Ensure general text readability */
p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
}

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

a:hover {
    color: var(--accent-color);
}

/* General Section Padding */
.section-padding {
    padding: 80px 0;
}
.section-subtext {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 10px auto 40px auto;
}

/* --- 2. Header and Navigation --- */
.main-header {
    background: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-bar ul {
    display: flex;
}

.nav-bar li {
    margin-left: 20px;
}

.nav-bar a {
    color: var(--text-light); /* Navigation links are light text */
    font-weight: 500;
    padding: 5px 10px;
}

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

/* Style for the 'Enroll Now' button in the navigation */
.cta-link {
    background-color: var(--primary-color);
    color: var(--text-dark) !important; /* Dark text on bright button */
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
}

.cta-link:hover {
    background-color: var(--accent-color);
    color: var(--text-dark) !important;
}

/* --- 2. Hero Section --- */
.hero-section {
    padding: 100px 0;
    text-align: left;
    background-color: var(--text-dark); 
}

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

.hero-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
}

.tagline {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.primary-cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

.primary-cta-button:hover {
    background-color: var(--accent-color);
}

.image-placeholder {
    background-color: var(--section-dark); 
    min-height: 350px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: If using an actual image, set object-fit: cover; here */
}

/* --- 3. About Section --- */
#about-section {
    background-color: var(--section-dark); /* Alternating dark background */
    text-align: center;
    color: var(--text-light);
}

#about-section h3 {
    color: var(--primary-color);
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.detail-card {
    background-color: var(--text-dark); /* Dark card background */
    color: var(--text-light);
    padding: 20px;
    border-left: 5px solid var(--primary-color); /* Highlight bar */
    border-radius: 5px;
    text-align: left;
}
.detail-card h4 {
    color: var(--primary-color);
}

/* --- 4. Courses Section --- */
.courses-section-bg {
    background-color: var(--text-dark); /* Main dark background */
}

.courses-section-bg h3 {
    color: var(--primary-color);
}

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

.course-card {
    /* CRUCIAL: White cards for contrast and readability */
    background: var(--card-color); 
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

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

.course-card h4 {
    color: var(--section-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.secondary-button {
    display: inline-block;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* --- 5. Testimonials Section --- */
#testimonials-section {
    background-color: var(--section-dark); /* Alternating dark background */
}

/* STATIC LAYOUT for testimonials */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 30px;
}

.testimonial-card {
    /* CRUCIAL: White cards for contrast and readability */
    background: var(--card-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 350px; 
    flex: 1 1 300px;
    text-align: center; 
}

.student-info {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 20px;
}

.student-img {
    width: 80px; 
    height: 80px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--primary-color); /* Gold border highlight */
    margin-bottom: 10px;
}

.source-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.source-title {
    font-weight: 500;
    color: #6c757d; /* Standard grey for less emphasis on job title */
    font-size: 0.95rem;
}

.quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* --- 6. Contact Section --- */
.contact-section-bg {
    background-color: var(--text-dark); 
    color: var(--text-light);
}

.contact-form {
    background: var(--card-color); /* White form background */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* In styles.css */
.contact-form input,
.contact-form textarea {
    /* ... existing padding, margin, border styles ... */
    
    /* CRITICAL: Ensures all inputs and textarea fill the available width */
    width: 100%; 
    box-sizing: border-box; /* CRITICAL: Ensures padding/border are included 
                              in the 100% width, preventing horizontal overflow */
    
    padding: 15px;
    margin-bottom: 10px;
    /* ... rest of your styles ... */
}


.direct-contact {
    text-align: center;
    margin-top: 20px;
}

/* --- 7. Footer --- */
.main-footer {
    background-color: var(--section-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.main-footer a {
    color: var(--primary-color);
}

/* --- Styling for Social Media Icons with Background --- */

.social-icons {
    text-align: center; 
    margin-top: 15px;
    margin-bottom: 30px; 
}

.social-icons a {
    /* Set the container to display as an inline block */
    display: inline-flex;
    
    /* Center the icon perfectly within the container */
    align-items: center;
    justify-content: center;
    
    /* Define the size of the background box */
    width: 40px; 
    height: 40px; 
    
    /* Background color (White) */
    background-color: var(--card-color); /* Uses your defined white card color */
    
    /* Spacing between the boxes */
    margin: 0 10px; 
    
    /* Shape: Use 50% for a circle, or a small value (5px) for a rounded square */
    border-radius: 5px; /* Creates a soft rounded square box */
    /* If you want a circle: border-radius: 50%; */
    
    /* Optional: Add a subtle shadow for depth */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

/* 1. Icon Size (Shrunken slightly to fit nicely inside the 40px box) */
.social-icons i {
    font-size: 1.2rem; /* Reduced icon size */
}

/* 2. Brand Colors (Applied to the <i> tag) */
.social-icons .fa-facebook-f {
    color: #3b5998; 
}

.social-icons .fa-instagram {
    color: #E1306C; 
}

.social-icons .fa-linkedin-in {
    color: #0077b5; 
}

/* Hover effect: Change the background of the box to your primary color */
.social-icons a:hover {
    background-color: var(--primary-color); /* Warm Gold background on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Lift the box slightly */
}

/* Hover effect: Change the icon color to the dark text color for contrast on the gold background */
.social-icons a:hover i {
    color: var(--text-dark); 
}
/* --- 8. Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    /* Stack the Hero content on smaller screens */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .text-content {
        order: 2; /* Move text below the photo on mobile */
    }
    
    .image-placeholder {
        order: 1; /* Keep the photo/image placeholder first */
        margin-bottom: 30px;
        min-height: 250px;
    }

    /* Stack the navigation menu */
    .nav-bar {
        flex-direction: column;
    }
    
    .nav-bar ul {
        margin-top: 10px;
    }

    .nav-bar li {
        margin: 0 10px;
    }
}