@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Tiro+Bangla:ital@0;1&display=swap');

:root {
    --primary-color: #003361;
    --secondary-color: #03b4e0;
    --accent-color: #00c853;
    --gold-color: #ffd700;
    --danger-color: #ff4444;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tiro Bangla', serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

/* Header */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 97, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.modern-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: rotate(360deg);
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.logo-text span {
    font-size: 0.9rem;
    color: #bdbdbd;
}

/* Navigation */
.main-nav {
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), #00509e);
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(3, 180, 224, 0.2), transparent);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 30px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-icon i {
    font-size: 3rem;
    color: var(--gold-color);
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Container */
.main-container {
    max-width: 1000px;
    margin: -50px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.form-wrapper {
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
    padding: 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

/* Institute Card */
.institute-card {
    background: linear-gradient(135deg, var(--primary-color), #00509e);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow-lg);
}

.institute-logo {
    flex-shrink: 0;
}

.institute-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    background: white;
    padding: 10px;
}

.institute-info {
    color: white;
}

.institute-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.institute-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.institute-info i {
    color: var(--secondary-color);
    width: 20px;
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 5px solid var(--accent-color);
}

.error-message {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left: 5px solid var(--danger-color);
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.success-icon i {
    color: var(--accent-color);
}

.error-icon i {
    color: var(--danger-color);
}

.success-message h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.error-message h3 {
    color: var(--danger-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--light-bg);
}

.form-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.form-header h2 i {
    color: var(--secondary-color);
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
}

.form-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section h3 i {
    color: var(--secondary-color);
    font-size: 1.6rem;
}

.section-note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Input Groups */
.input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.input-group label i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="date"],
.input-group input[type="number"],
.input-group input[type="email"],
.input-group .select-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Tiro Bangla', serif;
    background: white;
}

.input-group input:focus,
.input-group .select-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(3, 180, 224, 0.1);
}

.select-input {
    cursor: pointer;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
    border: 2px dashed var(--secondary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: linear-gradient(135deg, #bbdefb, #b3e5fc);
    transform: translateY(-2px);
}

.file-label i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.file-label span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Radio Group */
.radio-group {
    margin: 20px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.radio-label i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.radio-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 200px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 25px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.radio-option label i {
    font-size: 1.3rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent-color), #1de9b6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00e676, #00c853);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.submit-btn i {
    font-size: 1.4rem;
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 50px 0 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-info h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-info p {
    color: #bdbdbd;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-developer p {
    color: #bdbdbd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-developer a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-developer a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    background: #0a0e27;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bdbdbd;
    font-size: 0.95rem;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(0, 51, 97, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 5px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        padding: 15px 20px;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .form-wrapper {
        padding: 30px;
    }

    .institute-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .institute-info h2 {
        font-size: 1.6rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 1.5rem;
    }

    .radio-options {
        flex-direction: column;
    }

    .radio-option {
        min-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 100px 15px 60px;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .hero-icon i {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-wrapper {
        padding: 20px;
    }

    .institute-logo img {
        width: 100px;
        height: 100px;
    }

    .institute-info h2 {
        font-size: 1.3rem;
    }

    .institute-info p {
        font-size: 0.95rem;
    }

    .form-header h2 {
        font-size: 1.6rem;
        flex-direction: column;
    }

    .form-section h3 {
        font-size: 1.3rem;
    }

    .input-group label,
    .radio-label {
        font-size: 0.95rem;
    }

    .input-group input,
    .input-group .select-input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .form-wrapper {
        padding: 15px;
    }

    .institute-card {
        padding: 20px;
    }

    .form-section {
        padding: 15px;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }
}