/* CSS Variables for premium theme */
:root {
    --primary: #D4AF37; /* Gold */
    --primary-dark: #B7950B;
    --primary-light: rgba(212, 175, 55, 0.1);
    --secondary: #111111;
    --dark: #222222;
    --light: #F8F8F8; /* Off-white */
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #111111;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --success: #28a745;
    --error: #dc3545; /* Added for potential form validation */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Button Styles */
.primary-button, .secondary-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    position: relative; /* For ripple effect */
    overflow: hidden; /* For ripple effect */
    z-index: 1; /* For ripple effect */
}

.primary-button {
    background-color: var(--primary);
    color: var(--black);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.primary-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.secondary-button {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.secondary-button:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-5px);
}

/* Ripple effect for buttons */
.ripple {
    background-color: rgba(255, 255, 255, 0.7);
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    opacity: 0;
}

@keyframes ripple-animation {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}



/* CTA button animation */
.cta-button {
    background-color: var(--primary);
    color: var(--black);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Mobile menu button (hamburger) */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu .bar {
    width: 25px;
    height: 2px;
    background-color: var(--black);
    transition: var(--transition);
}

.mobile-menu.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    padding: 100px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.mobile-cta {
    margin-top: 30px;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--black);
    text-align: center;
}

/* Hero Section Styles */
.internship-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1581092910229-f97b7756195e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    margin-top: 80px; /* Account for fixed navbar */
    animation: hero-background-pan 20s infinite alternate linear; /* Subtle background movement */
}

@keyframes hero-background-pan {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.internship-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.internship-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--white); /* Ensure hero title is white */
}

.internship-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    font-size: 2.5rem;
    animation: slide-in-bottom 0.8s ease-out forwards; /* Added animation */
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 0;
    transform: scaleX(0); /* Initial state for animation */
    animation: expand-underline 1s ease-out forwards 0.5s; /* Added animation with delay */
}

@keyframes expand-underline {
    to {
        transform: scaleX(1);
    }
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in 1s ease-out forwards 0.7s; /* Added animation with delay */
}

/* Details Grid Layout */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.detail-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.detail-card::before { /* Overlay for subtle hover effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-card:hover::before {
    opacity: 1;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.detail-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h3 i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.detail-card:hover h3 i {
    transform: rotate(5deg) scale(1.1);
}

.detail-card ul {
    list-style-position: inside;
    margin-top: 15px;
    padding-left: 20px; /* Indent list items */
}

.detail-card li {
    margin-bottom: 10px;
    position: relative;
}

.detail-card li::before { /* Custom bullet point */
    content: '\2022'; /* Unicode for bullet */
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Pricing Section Styles */
.pricing-section {
    background-color: var(--light);
    text-align: center;
}

.price-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-light);
    animation: scale-in 0.8s ease-out forwards; /* Added animation */
}

.price-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    animation: pulse 1.5s infinite ease-in-out; /* Pulsing animation for price */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.5rem;
    margin-right: 15px;
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: -50px;
    background-color: var(--success);
    color: white;
    padding: 5px 50px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.9rem;
    animation: slide-in-right 0.8s ease-out forwards 0.3s; /* Added animation */
}

.urgency-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: fade-in 1s ease-out forwards 0.5s; /* Added animation */
}

/* Curriculum Grid Layout */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.curriculum-item {
    background-color: var(--light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.curriculum-item::after { /* Animated border on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-dark);
    transition: height 0.3s ease-out;
}

.curriculum-item:hover::after {
    height: 100%;
}

.curriculum-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.curriculum-item h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.curriculum-item i {
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.curriculum-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Application Section Styles */
.application-section {
    background: linear-gradient(135deg, var(--black) 0%, #333 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.application-section::before { /* Subtle background pattern */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

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

.application-section h2 {
    color: var(--white);
}

.application-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.application-form input, 
.application-form select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    transition: all 0.3s ease; /* Smoother transition */
}

.application-form input:focus, 
.application-form select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px var(--primary-light); /* Focus ring */
}

.application-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.application-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.application-form button {
    grid-column: 1 / -1;
    margin-top: 10px;
}

/* Footer Styles */
.page-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after { /* Underline on hover */
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* General Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-bottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

[data-animate] {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

[data-animate-delay="0.1"] {
    animation-delay: 0.1s;
}
[data-animate-delay="0.2"] {
    animation-delay: 0.2s;
}
[data-animate-delay="0.3"] {
    animation-delay: 0.3s;
}
[data-animate-delay="0.4"] {
    animation-delay: 0.4s;
}
[data-animate-delay="0.5"] {
    animation-delay: 0.5s;
}
[data-animate-delay="0.6"] {
    animation-delay: 0.6s;
}
[data-animate-delay="0.7"] {
    animation-delay: 0.7s;
}
[data-animate-delay="0.8"] {
    animation-delay: 0.8s;
}
[data-animate-delay="0.9"] {
    animation-delay: 0.9s;
}
[data-animate-delay="1.0"] {
    animation-delay: 1.0s;
}


/* Responsive Styles */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .internship-hero {
        min-height: 400px;
        height: auto;
        padding: 100px 0;
        margin-top: 70px;
    }

    .details-grid, .curriculum-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .price-tag {
        font-size: 2.5rem;
    }

    .original-price {
        font-size: 1.2rem;
    }
}



.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.code-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-block {
    background: #0f172a;
    border-radius: 10px;
    padding: 25px;
    overflow-x: auto;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-block:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 
                0 5px 20px rgba(0, 0, 0, 0.3);
}

.code-block h4 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.code-block h4::before {
    content: "»";
    color: #f59e0b;
    font-weight: bold;
}

.code-block pre {
    color: #cbd5e1;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.code-comment {
    color: #94a3b8;
    font-style: italic;
}

.g-code {
    color: #60a5fa;
    font-weight: 600;
}

.m-code {
    color: #f87171;
    font-weight: 600;
}

/* Syntax highlighting for CNC codes */
.g-code::after, .m-code::after {
    content: "";
    display: inline-block;
    width: 6px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .code-examples {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .internship-details {
        padding: 60px 0 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .code-examples {
        padding: 20px;
    }
    
    .code-block {
        padding: 20px;
    }
    
    .code-block pre {
        font-size: 0.85rem;
    }
}