/* Custom Styles and Animations for IT Track Institute Jacobabad */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #1b75bc;
    --primary-blue-dark: #0f5994;
    --primary-blue-light: #e6f1fc;
    --charcoal-dark: #1e272e;
    --charcoal-gray: #2f3640;
    --slate-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: var(--charcoal-dark);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Glassmorphism Styles */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(27, 117, 188, 0.4);
    box-shadow: 0 20px 40px -15px rgba(27, 117, 188, 0.15);
}

/* Button & Link Interactions */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    box-shadow: 0 10px 20px -5px rgba(27, 117, 188, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
}

/* Navbar Link Hover Slider Effect */
.nav-link {
    position: relative;
    color: var(--charcoal-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animations */

/* Scroll Reveal Base Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Floating Elements (Hero Section Graphic) */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Pulse animation for active alerts */
@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(27, 117, 188, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(27, 117, 188, 0);
    }
}

.pulse-alert {
    animation: softPulse 2s infinite;
}

/* Grid Pattern Overlay Background */
.tech-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(27, 117, 188, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(27, 117, 188, 0.05) 1px, transparent 1px);
}

/* Neon Glow Card Outline on Hover */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(27, 117, 188, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
}

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

/* Hero Title Typing Effect Simulation */
.typing-container {
    display: inline-block;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent }
    50% { color: var(--primary-blue) }
}
