/* General Body and Typography */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0d1a2c; /* Navy Blue inspired */
}

p {
    margin-bottom: 1rem;
}

a {
    color: #008080; /* Teal */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005f5f; /* Darker Teal */
}

/* Custom Colors */
.bg-primary { background-color: #008080 !important; } /* Teal */
.bg-navy { background-color: #0d1a2c !important; } /* Navy Blue */
.text-teal { color: #008080 !important; }
.text-lavender { color: #9370DB !important; } /* Lavender */
.btn-primary {
    background-color: #008080; /* Teal */
    border-color: #008080;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #005f5f; /* Darker Teal */
    border-color: #005f5f;
    transform: translateY(-2px);
}
.btn-outline-light {
    color: #fff;
    border-color: #fff;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-primary {
    color: #008080;
    border-color: #008080;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: #008080;
    color: #fff;
}


/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #008080; /* Teal */
    border-radius: 2px;
}
.section-title.text-white::after {
    background-color: #fff;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    /* The background image is set inline in index.html using the style attribute.
       The following properties ensure it covers the area and is centered. */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}
.hero-section h1 {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out forwards;
}
.hero-section p {
    font-size: 1.75rem;
    color: #f0f0f0;
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.2s;
}
.hero-section .btn {
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* Keyframe animations for the hero section elements */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}


/* Navbar */
.navbar {
    background-color: rgba(13, 26, 44, 0.9); /* Semi-transparent Navy Blue */
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}
.navbar.scrolled {
    background-color: #0d1a2c; /* Solid Navy Blue on scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff !important;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #008080; /* Teal */
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('https://via.placeholder.com/1920x1080/0d1a2c/FFFFFF?text=DivyaDrishti+Hero+Image') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}
.hero-section h1 {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out forwards;
}
.hero-section p {
    font-size: 1.75rem;
    color: #f0f0f0;
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.2s;
}
.hero-section .btn {
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Card Styles (Team, Making Of, Articles, Future, Testimonials) */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Team Cards */
.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #008080; /* Teal border */
    transition: transform 0.3s ease;
}
.team-card:hover img {
    transform: scale(1.05);
}

/* Making of Cards */
.making-card .card-img-top {
    height: 250px;
    object-fit: cover;
}
.making-card .card-body {
    background-color: #f8f9fa;
}
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}
.embed-responsive::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}
.embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Article Cards */
.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.article-card .card-body {
    padding: 1.5rem;
}
.article-card .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Future Cards */
.future-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on primary background */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.future-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.future-card .card-title {
    color: #fff;
}
.future-card i {
    color: #9370DB; /* Lavender for icons */
}


/* Testimonials */
.testimonial-card {
    background-color: #fff;
    border-left: 5px solid #008080; /* Teal accent */
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #9370DB; /* Lavender border */
}
/* Fade-in animation for testimonials (triggered by JS on scroll) */
.testimonial-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- New Styles for Comments Section --- */
.comment-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out; /* Add fade-in animation */
    position: relative; /* For delete button positioning */
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    font-size: 2.5rem;
    color: #008080; /* Teal */
    margin-right: 15px;
    border: 2px solid #008080;
    border-radius: 50%;
    padding: 5px 10px; /* Adjust padding to fit icon nicely */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Fixed width */
    height: 60px; /* Fixed height */
}

.comment-info {
    flex-grow: 1;
}

.comment-author {
    margin-bottom: 5px;
    font-weight: 600;
    color: #0d1a2c;
}

.comment-rating {
    font-size: 1.1rem;
    color: #FFD700; /* Gold for stars */
    margin-bottom: 5px;
}

.comment-rating .stars {
    letter-spacing: 2px;
}

.comment-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.comment-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.delete-btn {
    background: none;
    border: none;
    color: #dc3545; /* Red for delete */
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.comment-content p {
    margin-bottom: 0;
    color: #495057;
}

/* Animation for comment deletion */
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Style for the rating stars in the form */
.rating-stars {
    unicode-bidi: bidi-override;
    direction: rtl; /* Stars from right to left */
    text-align: left; /* Align stars to left */
    font-size: 2rem;
    display: inline-block;
}
.rating-stars > input {
    display: none;
}
.rating-stars > label {
    display: inline-block;
    position: relative;
    width: 1.1em;
    cursor: pointer;
    color: #ccc; /* Default grey color */
}
.rating-stars > label:before {
    content: '★';
}
.rating-stars > input:checked ~ label {
    color: #FFD700; /* Gold for selected stars */
}
.rating-stars > label:hover,
.rating-stars > label:hover ~ label {
    color: #FFC107; /* Lighter gold on hover */
}
/* Ensure the form elements for rating look good with Bootstrap */
.form-label + .rating-stars {
    display: block; /* Ensure stars are on new line if label is present */
    margin-top: 5px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateX(100%);
}
.notification.show {
    opacity: 1;
    transform: translateX(0);
}
.notification.success { background-color: #28a745; }
.notification.error { background-color: #dc3545; }
.notification.info { background-color: #17a2b8; }


/* Footer */
footer {
    background-color: #0d1a2c; /* Navy Blue */
    padding: 40px 0;
    font-size: 0.9rem;
}
footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}
footer ul {
    padding: 0;
    list-style: none;
}
footer ul li {
    margin-bottom: 10px;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.8);
}
footer ul li a:hover {
    color: #008080; /* Teal */
}
.social-icons a {
    color: #fff;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #008080; /* Teal */
}
footer p {
    color: rgba(255, 255, 255, 0.7);
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #0d1a2c; /* Full background for mobile menu */
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .team-card img {
        width: 120px;
        height: 120px;
    }
    .comment-item {
        padding: 12px 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .navbar-nav .nav-link {
        text-align: center;
        margin: 5px 0;
    }
    .navbar-nav .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Accessibility Focus States */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid #9370DB; /* Lavender */
    outline-offset: 2px;
}

/* Scroll-triggered animations - initial state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}