/* Cyber-Industrial Design System */
:root {
    /* Color Palette */
    --primary-color: #00F0FF;
    /* Cyber Blue */
    --secondary-color: #FFB302;
    /* Industrial Amber */
    --accent-color: #FF003C;
    /* Alert Red */

    --bg-dark: #050608;
    /* Deep Void */
    --bg-panel: #0B0C10;
    /* Dark Metal */
    --bg-card: rgba(20, 25, 35, 0.7);
    /* Glass Metal */

    --text-main: #E0E6ED;
    /* Pale Steel */
    --text-muted: #94A3B8;
    /* Oxidized Silver */

    --border-color: #1F2937;
    --border-glow: rgba(0, 240, 255, 0.3);

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f2937' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(255, 179, 2, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 1px solid var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Layout Utilities */
.section-padding {
    padding: 120px 0;
    position: relative;
}

.bg-light {
    background-color: transparent !important;
    /* Override Bootstrap */
}

/* Reusable Components */
.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.section-title h2::after {
    content: attr(data-text);
    /* Requires JS to populate or manually add */
    position: absolute;
    top: 5px;
    left: 5px;
    color: rgba(0, 240, 255, 0.1);
    z-index: -1;
}

.underline {
    height: 4px;
    width: 100px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    bottom: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    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, 240, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

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

/* Navbar */
.navbar {
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 20px;
    position: relative;
    padding: 5px 10px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
}

/* Cyber Brackets Animation */
.nav-link::before,
.nav-link::after {
    display: inline-block;
    opacity: 0;
    transition: transform 0.3s, opacity 0.2s;
    color: var(--secondary-color);
    font-weight: 700;
}

.nav-link::before {
    content: '[';
    margin-right: 5px;
    transform: translateX(10px);
}

.nav-link::after {
    content: ']';
    margin-left: 5px;
    transform: translateX(-10px);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: translateX(0);
}

/* Mouse Trail Effect (Applied to body via JS ideally, but here's a pure CSS hover for nav container) */
.navbar-nav:hover .nav-link:not(:hover) {
    opacity: 0.5;
    filter: blur(1px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 179, 2, 0.05) 0%, transparent 40%);
    z-index: -1;
}

/* Grid overlay for hero */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

#typed-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-top: 20px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
}

.hero-section .lead {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 30px auto;
}

/* Profile Image - Hexagonal */
.profile-img {
    position: relative;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition-smooth);
}

.profile-img img {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition-smooth);
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-img:hover img {
    filter: grayscale(0%);
}

/* Cards (Skills & Projects) */
.skill-item,
.project-card,
.contact-info,
.contact-form,
.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(5px);
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Corner decorations */
.skill-item::before,
.project-card::before,
.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.skill-item::after,
.project-card::after,
.timeline-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.skill-item:hover,
.project-card:hover,
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 240, 255, 0.15);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 179, 2, 0.4);
}

.skill-item h4,
.project-header h3,
.timeline-content h4 {
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

/* Project Lists */
.project-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.project-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Timeline */
.timeline::before {
    background: var(--border-color);
    width: 1px;
}

.timeline-icon {
    background: var(--bg-dark);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 179, 2, 0.3);
}

.timeline-date {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Contact */
.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 0;
    padding: 15px;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    color: #fff;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

/* Animations */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 240, 255, 0.1);
    animation: scanline 8s linear infinite;
    z-index: 9999;
    pointer-events: none;
}