/* Fate Trigger Website - Deep Blue Gaming Theme */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* Deep Blue Gaming Color Scheme */
    --primary-color: #0a1a2e;        /* Deep navy */
    --secondary-color: #16213e;      /* Dark blue-gray */
    --accent-color: #00d4ff;         /* Cyan neon */
    --accent-glow: #00ffff;          /* Bright cyan */
    --light-accent: #64ffda;         /* Light cyan */
    --dark-accent: #050d18;          /* Almost black */
    --bg-color: #0a1128;             /* Deep dark blue background */
    --bg-secondary: #16213e;         /* Secondary dark blue */
    --text-color: #e0e7ff;           /* Light blue-white text */
    --text-light: #c7d2fe;           /* Lighter text */
    --menu-bg: rgba(10, 26, 46, 0.98); /* Dark menu background */
    --border-color: rgba(0, 212, 255, 0.3); /* Cyan border */
    --shadow-color: rgba(0, 212, 255, 0.2); /* Cyan shadow */
    --shadow-glow: rgba(0, 212, 255, 0.4); /* Glowing shadow */
    --gradient-primary: linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #1a237e 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-dark: linear-gradient(135deg, #050d18 0%, #0a1a2e 100%);
    --gradient-neon: linear-gradient(135deg, #00ffff 0%, #00d4ff 50%, #0099cc 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-color) 0%, var(--dark-accent) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--menu-bg);
    backdrop-filter: blur(15px) saturate(180%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 1)) 
            drop-shadow(0 0 20px rgba(0, 212, 255, 0.6))
            drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8)) 
                drop-shadow(0 0 15px rgba(0, 212, 255, 0.4))
                drop-shadow(0 0 25px rgba(0, 212, 255, 0.2));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 1)) 
                drop-shadow(0 0 30px rgba(0, 212, 255, 0.6))
                drop-shadow(0 0 45px rgba(0, 212, 255, 0.3));
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-glow);
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 10px var(--accent-glow);
}

nav ul li a:hover::before {
    width: 80%;
    box-shadow: 0 0 10px var(--accent-glow);
}

nav ul li a.active {
    color: var(--accent-glow);
    background: rgba(0, 212, 255, 0.15);
    text-shadow: 0 0 10px var(--accent-glow);
}

nav ul li a.active::before {
    width: 80%;
}

/* Main Content */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-glow);
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light-accent);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--gradient-neon);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, #00ffff 0%, #00d4ff 50%, #0099cc 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-color);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Footer */
footer {
    background: var(--gradient-dark);
    color: var(--text-color);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 2px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-neon);
    box-shadow: 0 0 20px var(--accent-glow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.footer-links h3 {
    color: var(--accent-glow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.6rem;
}

.footer-links ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-links ul li a:hover {
    color: var(--accent-glow);
    transform: translateX(5px);
    text-shadow: 0 0 10px var(--accent-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    opacity: 0.8;
}

/* Dropdown Menu Styles */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

nav ul li.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--menu-bg);
    backdrop-filter: blur(15px) saturate(180%);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1001;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--accent-color);
    color: var(--accent-glow);
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateX(5px);
}

.dropdown-menu li a.active {
    background: rgba(0, 212, 255, 0.2);
    border-left-color: var(--accent-glow);
    color: var(--accent-glow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-glow);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-glow);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--accent-glow);
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--gradient-dark);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.3s ease;
    border-left: 2px solid var(--border-color);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

.mobile-menu .close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-glow);
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu .close-menu:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px var(--accent-glow);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1rem;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--accent-color);
    color: var(--accent-glow);
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateX(5px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-neon);
    border-radius: 6px;
    border: 2px solid var(--dark-accent);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 0;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav > ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .footer-logo .logo img {
        height: 40px;
    }
    
    .footer-logo .logo-text {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .footer-logo .logo img {
        height: 35px;
    }
    
    .footer-logo .logo-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .footer-logo p {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    nav ul li a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Accessibility */
.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 styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
