/* Education Page Specific Styles - Tron Aesthetic */

/* Service Hero with Tron Grid */
.service-hero {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0d2e 50%, #0a0a0a 100%);
}

/* Animated Tron Grid Background */
.tron-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(81, 10, 148, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(81, 10, 148, 0.3) 1px, transparent 1px),
        linear-gradient(rgba(81, 10, 148, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(81, 10, 148, 0.1) 2px, transparent 2px);
    background-size: 50px 50px, 50px 50px, 100px 100px, 100px 100px;
    animation: gridMove 20s linear infinite;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center center;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Glitch Effect for Title */
.glitch {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 0 10px rgba(81, 10, 148, 0.5),
        0 0 20px rgba(81, 10, 148, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(81, 10, 148, 0.5), 0 0 20px rgba(81, 10, 148, 0.3); }
    to { text-shadow: 0 0 20px rgba(81, 10, 148, 0.8), 0 0 30px rgba(81, 10, 148, 0.5); }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch1 0.3s ease infinite;
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch2 0.3s ease infinite reverse;
    opacity: 0.8;
}

@keyframes glitch1 {
    0%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translateX(-2px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translateX(2px); }
    60% { clip-path: inset(60% 0 20% 0); transform: translateX(-1px); }
    80% { clip-path: inset(80% 0 0 0); transform: translateX(1px); }
}

@keyframes glitch2 {
    0%, 100% { clip-path: inset(100% 0 0 0); transform: translateX(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translateX(2px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translateX(-2px); }
    60% { clip-path: inset(20% 0 60% 0); transform: translateX(1px); }
    80% { clip-path: inset(0 0 80% 0); transform: translateX(-1px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

/* Service Introduction */
.service-intro {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #510a94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Service Formats Section */
.service-formats {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: linePulse 2s ease infinite;
}

@keyframes linePulse {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 150px; opacity: 1; }
}

/* Format Grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.format-card {
    background: rgba(17, 17, 17, 0.5);
    border: 1px solid rgba(81, 10, 148, 0.3);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: none;
}

.format-card:hover::before {
    animation: scanLine 1s ease;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.format-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(81, 10, 148, 0.3),
        inset 0 0 20px rgba(81, 10, 148, 0.1);
}

.format-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(81, 10, 148, 0.2);
}

.format-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(81, 10, 148, 0.2);
    border: 1px solid rgba(81, 10, 148, 0.4);
    position: relative;
}

.format-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.format-duration {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(81, 10, 148, 0.3);
    background: rgba(81, 10, 148, 0.1);
}

.format-content h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.format-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.format-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(81, 10, 148, 0.2);
}

.feature-tag {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: rgba(81, 10, 148, 0.1);
    border: 1px solid rgba(81, 10, 148, 0.3);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.format-card:hover .feature-tag {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Specialized Services Section */
.specialized-services {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.specialized-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialized-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(81, 10, 148, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(81, 10, 148, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.specialized-card:hover .card-glow {
    opacity: 1;
}

.specialized-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.specialized-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.specialized-card ul {
    list-style: none;
}

.specialized-card ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.specialized-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Delivery Methods Section */
.delivery-methods {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.delivery-methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(81, 10, 148, 0.5), transparent);
}

.methods-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.method-item {
    text-align: center;
    position: relative;
}

.method-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(81, 10, 148, 0.3);
    background: rgba(81, 10, 148, 0.05);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.3s ease;
}

.method-item:hover .method-icon {
    border-color: var(--accent);
    background: rgba(81, 10, 148, 0.1);
    transform: rotate(45deg);
}

.method-item:hover .method-icon svg {
    transform: rotate(-45deg);
}

.method-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    clip-path: inherit;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.method-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.method-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.education-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a0d2e 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.education-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(81, 10, 148, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(81, 10, 148, 0.1) 25%, transparent 25%);
    background-size: 30px 30px;
    animation: ctaPattern 10s linear infinite;
}

@keyframes ctaPattern {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 30px 30px, -30px 30px; }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(81, 10, 148, 0.5);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Navigation Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(81, 10, 148, 0.3);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(81, 10, 148, 0.2);
    color: var(--accent);
    padding-left: 1.5rem;
}

/* Logo Link Styles */
.logo a {
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        min-height: 50vh;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .format-grid,
    .specialized-grid {
        grid-template-columns: 1fr;
    }
    
    .methods-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .dropdown-menu {
        display: none;
    }
}