/* Custom Styles for IEM Landing Page */
/* Bootstrap is handling most of the layout, these are brand-specific customizations */

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --success-color: #10b981;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.header {
    z-index: 1020;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        max-width: 120px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Badge */
.badge {
    backdrop-filter: blur(10px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Feature Cards */
.feature-card {
    border-top: 4px solid var(--primary-color) !important;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Achievement Items */
.achievement-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    transition: transform 0.3s ease;
}

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

/* Fee Structure Section */
.fee-card {
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.fee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
}

.fee-card:nth-child(1) {
    border-top-color: var(--primary-color);
}

.fee-card:nth-child(2) {
    border-top-color: var(--success-color);
}

.fee-card:nth-child(3) {
    border-top-color: #0dcaf0;
}

.fee-card:nth-child(4) {
    border-top-color: var(--accent-color);
}

.fee-card:nth-child(5) {
    border-top-color: #dc3545;
}

.fee-card.fee-total {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border-top-color: var(--accent-color) !important;
}

.fee-card.fee-total .text-dark,
.fee-card.fee-total .text-primary,
.fee-card.fee-total .text-muted,
.fee-card.fee-total h4,
.fee-card.fee-total .h2,
.fee-card.fee-total .display-3,
.fee-card.fee-total p,
.fee-card.fee-total span {
    color: white !important;
}

.fee-card.fee-total .text-white-50,
.fee-card.fee-total .small {
    color: rgba(255, 255, 255, 0.85) !important;
}

.fee-icon {
    transition: transform 0.3s ease;
}

.fee-card:hover .fee-icon {
    transform: scale(1.1);
}

.fee-amount {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.fee-total .fee-amount {
    background: rgba(255, 255, 255, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Form Success State */
.form-success {
    background: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-success.show {
    display: block;
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
}

/* Animation on Scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
