/* 
 * Pavika School Website - Main Stylesheet 
 * Design: Ultra-clean Scandinavian style
 */

:root {
    /* Color Palette */
    --primary-color: #1f3c88;
    /* Soft Navy */
    --accent-color: #ff8c42;
    /* Light Orange */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(31, 60, 136, 0.1);

    /* Spacing */
    --section-spacing: 100px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Typography */
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.display-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.display-title .hero-h1-sub {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.55em;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.text-justify-center {
    text-align: justify;
    text-justify: inter-word;
}

/* Layout Utilities */
.section-padding {
    padding: var(--section-spacing) 0;
}

.bg-light-section {
    background-color: var(--bg-light);
}

/* Buttons */
.btn-pavika {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-pavika:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 60, 136, 0.2);
}

.btn-pavika-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-pavika-accent:hover {
    color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

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

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

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: -1px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.4)), var(--pv-bg1, url('/_shared/img/photos/1541339907198.jpg'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

/* Cards (Vision, Features, Faculty) */
.card-pavika {
    border: none;
    border-radius: var(--radius-md);
    background: white;
    padding: 2rem;
    /* Increased padding */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    height: 100%;
    text-align: center;
    /* Generally centered for minimal look */
}

.card-pavika:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Faculty */
.faculty-card {
    text-align: center;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.faculty-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #eee;
}

.faculty-info {
    padding: 1.5rem;
}

/* Gallery */
.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    color: white;
    margin-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Form Styles */
.form-floating>.form-control {
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding-left: 0;
    background: transparent;
}

.form-floating>.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-floating>label {
    padding-left: 0;
    color: var(--text-light);
}

/* Success Message Animation */
#successMessage {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .display-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 80vh;
    }

    .section-padding {
        padding: 60px 0;
    }
}