/* ============================================
   MUHANDISLIK HUB - Main CSS
   Master stylesheet that imports all modules
   ============================================ */

/* Import all CSS modules */
@import url('variables.css');
@import url('base.css');
@import url('animations.css');
@import url('components.css');
@import url('sections.css');

/* ============ ADDITIONAL UTILITIES ============ */

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--bg-dark);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Neon Text */
.neon-text {
    text-shadow:
        0 0 10px var(--primary-cyan),
        0 0 20px var(--primary-cyan),
        0 0 40px var(--primary-cyan);
}

/* Circuit Pattern Background */
.circuit-bg {
    background-image:
        linear-gradient(rgba(0, 179, 164, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 179, 164, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Dot Pattern Background */
.dot-bg {
    background-image: radial-gradient(rgba(0, 179, 164, 0.18) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Tech Line Decorations */
.tech-line {
    position: relative;
}

.tech-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), transparent);
}

.tech-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple));
}

/* Hexagon Shape */
.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Corner Decorations */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
}

.corner-decoration::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

/* Scanning Line Effect */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.5; }
    100% { top: 100%; opacity: 1; }
}

/* Data Stream */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::before {
    content: '01001010 11010101 00101010 10101010 01010101';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(0, 179, 164, 0.12);
    white-space: nowrap;
    animation: dataStream 20s linear infinite;
}

@keyframes dataStream {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(
        135deg,
        rgba(0, 179, 164, 0.12) 0%,
        rgba(43, 108, 255, 0.12) 25%,
        rgba(255, 181, 71, 0.12) 50%,
        rgba(25, 195, 125, 0.12) 75%,
        rgba(0, 179, 164, 0.12) 100%
    );
    background-size: 400% 400%;
    animation: holographicShift 10s ease infinite;
}

@keyframes holographicShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ MICRO-POLISH ENHANCEMENTS ============ */

/* Animated Gradient Hero Title - Fixed Visibility */
.hero-title {
    position: relative;
    z-index: 10;
    background: linear-gradient(
        135deg,
        #4DA3FF 0%,
        #22D3EE 25%,
        #8B5CF6 50%,
        #4DA3FF 75%,
        #22D3EE 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4DA3FF; /* Fallback color */
    animation: heroTitleReveal 1s ease forwards 0.2s, gradientShift 8s ease infinite 1.2s;
    opacity: 0;
}

/* Ensure hero title spans are also visible */
.hero-title-main,
.hero-title-accent {
    display: block;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ CUSTOM SVG ICON SYSTEM ============ */

/* Icon Container Base */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    color: currentColor;
    transition: var(--transition-base);
}

.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Icon Sizes */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }
.icon-2xl { width: 64px; height: 64px; }

/* Icon in Containers - Premium border gradient style */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    background: transparent;
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(59, 130, 246, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-base);
}

.icon-box .icon {
    color: #818cf8;
    transition: var(--transition-base);
}

.icon-box-sm {
    width: 40px;
    height: 40px;
}

.icon-box-md {
    width: 56px;
    height: 56px;
}

.icon-box-lg {
    width: 72px;
    height: 72px;
}

/* Icon Box Variants */
.icon-box-primary::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(99, 102, 241, 0.4) 50%, rgba(139, 92, 246, 0.3) 100%);
}
.icon-box-primary .icon {
    color: #60a5fa;
}

.icon-box-gold::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5) 0%, rgba(245, 158, 11, 0.4) 50%, rgba(217, 119, 6, 0.3) 100%);
}
.icon-box-gold .icon {
    color: #fbbf24;
}

.icon-box-glass {
    background: transparent;
}
.icon-box-glass::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.15) 100%);
}
.icon-box-glass .icon {
    color: var(--text-secondary);
}

/* Icon Hover Effects */
.icon-box:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.7) 0%, rgba(139, 92, 246, 0.6) 50%, rgba(59, 130, 246, 0.5) 100%);
}
.icon-box:hover .icon {
    transform: scale(1.08);
}

.icon-box-primary:hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.7) 0%, rgba(99, 102, 241, 0.6) 50%, rgba(139, 92, 246, 0.5) 100%);
}

.icon-box-gold:hover::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.7) 0%, rgba(245, 158, 11, 0.6) 50%, rgba(217, 119, 6, 0.5) 100%);
}

/* Icon Glow Effect */
.icon-glow {
    filter: drop-shadow(0 0 8px currentColor);
}

/* Featured Icon Animation */
.icon-featured {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Featured Card Gradient Border */
.overview-card.featured,
.nomination-card.featured {
    position: relative;
}

.overview-card.featured::after,
.nomination-card.featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        rgba(246, 176, 66, 0.35) 0%,
        rgba(246, 176, 66, 0.18) 50%,
        rgba(246, 176, 66, 0.35) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; opacity: 0.65; }
    50% { background-position: 100% 50%; opacity: 0.75; }
}

/* Partner Logos - Grayscale to Color */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
}

.partner-logo span {
    transition: color 0.4s ease;
}

.partner-logo:hover span {
    color: var(--primary);
}

/* Count-up Animation Helper */
.stat-number[data-count] {
    transition: opacity 0.3s ease;
}

.stat-number.counting {
    opacity: 0.8;
}

/* ============ PREFERS REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-title {
        animation: none;
        background-position: 0% 50%;
    }

    .overview-card.featured::after,
    .nomination-card.featured::after {
        animation: none;
        opacity: 0.8;
    }

    .partner-logo {
        filter: none;
        opacity: 1;
    }

    .partner-logo:hover {
        transform: none;
    }

    /* Disable Three.js animations via class */
    body.reduced-motion #canvas-container {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .loading-screen,
    #canvas-container,
    .particles-container,
    .scroll-indicator {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .main-content {
        padding-top: 0;
    }
}
