/* 
  PREMIUM DESIGN SYSTEM - DIMUTH SIR OFFICIAL 
  Theme: Cyber-Luxe (Dark, Neon, Glass, Cinematic)
*/

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

:root {
    /* Colors - Richer & Deeper */
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 35, 0.6);
    --primary: #00f3ff;
    --primary-glow: rgba(0, 243, 255, 0.6);
    --secondary: #bc13fe;
    --secondary-glow: rgba(188, 19, 254, 0.6);
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #00f3ff 0%, #bc13fe 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --neon-box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.05) 0%, transparent 40%);
}

h1,
h2,
h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Utilities */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* ===========================
   NAVBAR - Glassmorphic
   =========================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

nav .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 3rem;
}

nav ul li a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s var(--ease-elastic);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

/* ===========================
   HERO SECTION - Cinematic
   =========================== */
header {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

/* Background Image with Parallax feel */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/main.jpg') center/cover no-repeat;
    filter: brightness(0.4) contrast(1.1) blur(2px);
    transform: scale(1.05);
    animation: bgBreathing 15s infinite alternate ease-in-out;
    z-index: -2;
}

/* Gradient Overlay */
header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 5, 7, 0.4) 0%, rgba(5, 5, 7, 0.95) 80%);
    z-index: -1;
}

header .hero-content {
    position: relative;
    z-index: 20;
    height: 100px;
    max-width: 1000px;
}

header h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    animation: slideUpFade 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

header h1 span {
    display: block;
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    animation: slideUpFade 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

/* Premium Button */
.btn-primary {
    padding: 1.2rem 3.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #050507;
    background: var(--primary);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    animation: slideUpFade 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.6);
    transform: translateY(-5px);
}

/* ===========================
   SECTIONS & LAYOUT
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 5rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   FEATURE SPLIT (About Sir)
   =========================== */
.feature-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.feature-img-box {
    position: relative;
}

.feature-img-box img {
    border-radius: 4px;
    filter: grayscale(0.2);
    transition: 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-img-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    z-index: -1;
    transition: 0.5s;
}

.feature-img-box:hover img {
    filter: grayscale(0);
}

.feature-img-box:hover::before {
    transform: translate(10px, 10px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.feature-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: justify;
}

/* ===========================
   GLASS CARDS (About Class)
   =========================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: 0.4s var(--ease-elastic);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: 0.3s;
}

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

.glass-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #fff;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.glass-card:hover .card-icon {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ===========================
   MAGIC BOX - Cyberpunk Style
   =========================== */
.magicbox-section {
    position: relative;
    margin: 6rem 0;
    background: #0a0a0f;
    border-top: 1px solid rgba(188, 19, 254, 0.3);
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    overflow: hidden;
}

.magicbox-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

/* Moving Mesh Background */
.magicbox-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(188, 19, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(188, 19, 254, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: meshMove 20s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

.magicbox-visual {
    flex: 0 0 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.2) 0%, transparent 70%);
    position: relative;
}

.magicbox-icon {
    width: 150px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(188, 19, 254, 0.6));
}

.magicbox-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    position: relative;
}

.magicbox-content h2::after {
    content: 'MAGIC BOX';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    animation: glitch 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    opacity: 0.7;
}

.magicbox-features li {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.magicbox-features li::before {
    content: '>';
    color: var(--secondary);
    font-weight: bold;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020202;
    padding: 4rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dev-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: 0.3s;
}

.dev-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.dev-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.dev-info span {
    display: block;
    line-height: 1.2;
}

.dev-name {
    font-family: 'Orbitron';
    color: #fff;
    font-size: 0.9rem;
}

.dev-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes bgBreathing {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

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

@keyframes meshMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glitch {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        transform: translate(-2px, -2px);
    }

    10% {
        clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
        transform: translate(2px, 2px);
    }

    20% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        transform: translate(-2px, -2px);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        transform: translate(-2px, -2px);
    }
}

/* Mobile */
@media (max-width: 968px) {
    header h1 {
        font-size: 3.5rem;
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-img-box {
        max-width: 500px;
        margin: 0 auto;
    }

    .magicbox-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .magicbox-visual {
        flex: 0 0 200px;
        height: 200px;
    }

    .magicbox-icon {
        width: 100px;
    }

    .magicbox-content h2 {
        font-size: 2.2rem;
        word-spacing: 5px;
    }

    .magicbox-content h2::after {
        font-size: 2.2rem;
        word-spacing: 5px;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    nav ul {
        display: none;
    }

    /* Mobile toggle implementation needed if simple toggle desired, or stick to clean layout */
    .nav-toggle {
        display: block;
        color: #fff;
        font-size: 1.5rem;
        background: none;
        border: none;
    }

    /* Mobile Menu basic overrides */
    nav.mobile-open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #050507;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===========================
   TABLES - Glass & Premium
   =========================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

thead {
    background: rgba(0, 243, 255, 0.1);
}

th {
    padding: 1.2rem;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0, 243, 255, 0.2);
}

td {
    padding: 1.2rem;
    text-align: left;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(0, 243, 255, 0.05);
    color: #fff;
    cursor: default;
}

/* ===========================
   FORMS & DROPDOWNS - Cyber
   =========================== */
select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(5, 5, 7, 0.8);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f3ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #fff;
    padding: 1rem 2.5rem 1rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    min-width: 200px;
}

select:hover,
select:focus {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    border-color: #fff;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

option {
    background-color: #050507;
    color: #fff;
    padding: 10px;
}