/* Modern Frontend Design Enhancement */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d5a8a;
    --accent-color: #3182ce;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-accent: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Enhanced Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Modern Typography */
.modern-heading {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-subtitle {
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modern-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Enhanced Header Design */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.modern-logo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.modern-qualification {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modern Navigation */
.modern-nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.modern-nav-link:hover {
    color: var(--accent-color);
    background-color: var(--bg-accent);
    transform: translateY(-1px);
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav-link:hover::after {
    width: 80%;
}

/* Enhanced Dropdown */
.modern-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    min-width: 200px;
}

.modern-dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.modern-dropdown-item:hover {
    background: var(--bg-accent);
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Modern Hero Section */
.modern-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.modern-hero-content {
    z-index: 2;
    position: relative;
}

/* Enhanced 3D Cube */
.modern-cube-container {
    perspective: 1200px;
    margin: 2rem 0;
}

.modern-cube {
    position: relative;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    animation: modernRotate 15s infinite linear;
}

@keyframes modernRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(0deg) rotateY(90deg); }
    50% { transform: rotateX(0deg) rotateY(180deg); }
    75% { transform: rotateX(0deg) rotateY(270deg); }
    100% { transform: rotateX(0deg) rotateY(360deg); }
}

.modern-cube-face {
    position: absolute;
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.modern-cube-face.front { transform: rotateY(0deg) translateZ(150px); }
.modern-cube-face.back { transform: rotateY(180deg) translateZ(150px); }
.modern-cube-face.right { transform: rotateY(90deg) translateZ(150px); }
.modern-cube-face.left { transform: rotateY(-90deg) translateZ(150px); }

.modern-cube-text {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Image Gallery */
.modern-gallery {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}



.modern-gallery img {
    transition: all 0.3s ease;
}

/* .modern-gallery:hover img {
    transform: scale(1.05);
} */

/* Enhanced Social Links */
.modern-social-section {
    background: var(--bg-secondary);
    border-radius: 2rem;
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modern-social-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.modern-social-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.modern-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.modern-social-item:hover .modern-social-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.modern-social-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

/* Progress Bars Enhancement */
.modern-progress-container {
    margin: 1rem 0;
}

.modern-progress-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.modern-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-accent);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.modern-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 2s ease;
    position: relative;
    overflow: hidden;
}

.modern-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Modern Cards */
.modern-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .modern-hero {
        min-height: 80vh;
        padding: 2rem 1rem;
    }
    
    .modern-cube {
        width: 250px;
        height: 150px;
    }
    
    .modern-cube-face {
        width: 250px;
        height: 150px;
        padding: 1rem;
    }
    
    .modern-cube-text {
        font-size: 1rem;
    }
    
    .modern-social-section {
        padding: 2rem 1rem;
        border-radius: 1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

/* Smooth Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Video Enhancement */
.modern-video-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: 2rem 0;
}

.modern-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.modern-nav-link:focus,
.modern-dropdown-item:focus,
.modern-social-text:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-hero {
        background: white !important;
    }
    
    .modern-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .modern-nav-link::after {
        display: none !important;
    }
}