/* Internship Page Styles */
:root {
    --primary: #4CAF50;
    --primary-light: rgba(76, 175, 80, 0.1);
    --secondary: #1E293B;
    --text-main: #F8FAFC;
    --text-secondary: #94A3B8;
    --bg-dark: #000000;
    --bg-darker: #0A0A0A;
    --bg-card: rgba(20, 20, 20, 0.8);
    --form-input-bg: rgba(30, 30, 30, 0.95);
    --form-border: rgba(255, 255, 255, 0.15);
    --form-border-hover: rgba(76, 175, 80, 0.4);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #81C784 100%);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1rem 6rem;
    margin-top: 80px; /* Add space for fixed header */
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
    filter: blur(100px);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 1rem;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, #4ADE80 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Quick Facts Section */
.quick-facts {
    padding: 5rem 0;
    background: var(--bg-dark);
    position: relative;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fact-card {
    background: var(--bg-darker);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
}

.fact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.fact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.fact-card p {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Spacing */
.section {
    padding: 6rem 0;
    position: relative;
}

.section:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Details Section */
.details-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--primary-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.reverse {
    direction: rtl;
}

.detail-row.reverse .detail-content {
    direction: ltr;
}

.detail-image {
    height: 200px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 4rem;
    color: var(--bg-dark);
}

.detail-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.detail-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

/* Timeline Section */
.how-to-apply {
    padding: 5rem 2rem;
    background: var(--bg-card);
    text-align: center;
}

.how-to-apply h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 4rem;
    color: var(--text-main);
}

.timeline {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    flex: 1;
    max-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    color: var(--bg-dark);
}

.timeline-step h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.timeline-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Fee Section */
.registration-section {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-dark);
}

.fee-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    transition: all 0.3s ease;
}

.fee-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
}

.fee-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.fee-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.fee-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: 0;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-darker);
    width: 100%;
    max-width: 800px;
    margin: 80px auto; /* Match header height */
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    opacity: 0;
    animation: modalContentSlide 0.3s ease 0.1s forwards;
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: rotate(90deg);
}

/* Form Styles */
.form-section {
    background: var(--bg-card);
    padding: 3rem;
    margin: 4rem auto;
    border-radius: 16px;
    border: 1px solid var(--form-border);
    max-width: 900px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-section h2 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--form-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--form-input-bg);
    border: 2px solid var(--form-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: var(--form-border-hover);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--form-border);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--bg-darker), 0 0 0 4px var(--primary);
}

.radio-label span {
    color: var(--text-main);
}

/* Word Count */
.word-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: right;
    margin-top: 0.5rem;
}

/* Form Navigation */
.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--form-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-main);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Error States */
.form-control.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Progress Steps */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--form-border);
}

.progress-step:first-child::before {
    display: none;
}

.progress-step.active::before {
    background: var(--primary);
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--form-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background: var(--primary);
}

.progress-step span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.progress-step.active span {
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .facts-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .detail-row.reverse {
        direction: ltr;
    }

    .detail-content {
        order: 2;
    }

    .detail-image {
        order: 1;
    }

    .timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-step {
        max-width: 100%;
    }

    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-progress {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .progress-step::before {
        display: none;
    }
}