/* 
====================================
  JARVIS CORE STYLES
  Theme: Sci-Fi / Cyberpunk / Holographic
====================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@500;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #020205;
    --bg-panel: rgba(10, 15, 20, 0.7);
    --primary: #00f3ff;
    --primary-dim: rgba(0, 243, 255, 0.1);
    --primary-glow: rgba(0, 243, 255, 0.6);
    --secondary: #bd00ff;
    /* Adding purple for cyberpunk feel */
    --text-main: #e0faff;
    --text-glass: rgba(224, 250, 255, 0.7);
    --border-glass: rgba(0, 243, 255, 0.2);
    --glass-bg: rgba(0, 10, 20, 0.4);

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;

    /* Effects */
    --neon-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow), 0 0 40px var(--primary-dim);
    --glass-blur: blur(20px);
    --tech-border: 1px solid var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(2, 2, 5, 0.9) 0%, rgba(2, 2, 5, 1) 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* ====================================
   UTILITIES & COMPONENTS
   ==================================== */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    /* Sharper corners for sci-fi look */
    padding: var(--spacing-lg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 243, 255, 0.05);
    position: relative;
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
    /* Sci-fi corner cut */
}

/* Tech decorations */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}

.glass-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    margin-bottom: -1px;
    /* fix alignment with clip-path */
    margin-right: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--primary), #fff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    /* Boxy sci-fi button */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--primary-glow);
    text-shadow: none;
}

.input-field {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 0;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    transition: 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* ====================================
   LAYOUT
   ==================================== */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-glass);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.container {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    position: relative;
}

footer {
    border-top: 1px solid var(--border-glass);
    background: #000;
    padding: 60px 20px;
    margin-top: 100px;
    text-align: center;
    color: var(--text-glass);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ====================================
   ANIMATION CLASSES (Utility)
   ==================================== */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 42px !important;
    }

    .glass-panel {
        clip-path: none;
        border-radius: 12px;
    }
}