/*
Theme Name: Sukhesh Cyberpunk Portfolio
Author: Sukhesh Chandra Sekharan
Description: A high-tech, cyberpunk-themed portfolio with neon visuals, holographic cards, and scroll animations.
Version: 1.0
*/

:root {
    --bg-dark: #050510;
    --bg-panel: rgba(20, 20, 35, 0.6);
    --primary: #00f3ff;
    /* Cyan */
    --secondary: #bd00ff;
    /* Neon Purple */
    --accent: #0aff00;
    /* Hacker Green */
    --text-main: #e0e0e0;
    --text-muted: #8a8a9b;
    --grid-color: rgba(0, 243, 255, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* Custom cursor could be added here */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Base Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
}

/* Typography & Utilities */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.section-tag {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.tech-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: center;
    z-index: 900;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-glitch {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

.btn-glitch {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
    transition: all 0.3s;
}

.btn-glitch:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    background:
        linear-gradient(90deg, var(--bg-dark) 21px, transparent 1%) center,
        linear-gradient(var(--bg-dark) 21px, transparent 1%) center,
        rgba(0, 0, 0, 0);
    /* Grid lines */
    background-size: 22px 22px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.console-text {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    margin-bottom: 2rem;
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

.glitch-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    border-left: 1px solid var(--text-muted);
    padding-left: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-mono);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(0, 243, 255, 0.3);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 60%);
}

.cyber-circle::before,
.cyber-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border-style: solid;
    border-width: 2px;
}

/* Inner Ring - Cyan */
.cyber-circle::before {
    width: 320px;
    height: 320px;
    border-color: var(--primary) transparent transparent var(--primary);
    animation: rotate-right 8s linear infinite;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Outer Ring - Purple */
.cyber-circle::after {
    width: 480px;
    height: 480px;
    border-color: transparent var(--secondary) var(--secondary) transparent;
    animation: rotate-left 12s linear infinite;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.2);
}

/* New: Beautiful Reactor Core */
.cyber-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    z-index: 5;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 20%, transparent 60%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
}

.core-inner {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 243, 255, 0.8), rgba(0, 243, 255, 0.2));
    filter: blur(8px);
    animation: breath-core 3s ease-in-out infinite alternate;
    box-shadow: 0 0 40px var(--primary), inset 0 0 20px #fff;
}

.core-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 243, 255, 0.3);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spin-reactor 10s linear infinite;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.core-outer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(189, 0, 255, 0.3);
    border-left-color: transparent;
    border-right-color: transparent;
    animation: spin-reactor-reverse 7s linear infinite;
}

@keyframes rotate-right {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-left {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes breath-core {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        box-shadow: 0 0 30px var(--primary), inset 0 0 10px #fff;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 70px var(--primary), 0 0 20px var(--secondary), inset 0 0 30px #fff;
    }
}

@keyframes spin-reactor {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reactor-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* Sections Common */
.section {
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    margin-bottom: 4rem;
}

.text-right {
    text-align: right;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: white;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.tech-tags span {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

/* Expertise Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: linear-gradient(145deg, #0a0a1a, #050510);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.tech-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 243, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.card-list {
    list-style: none;
}

.card-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.card-list li::before {
    content: '>';
    color: var(--accent);
    margin-right: 10px;
    font-family: var(--font-mono);
}

/* Technical Inventory */
.tech-inventory {
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.tech-inventory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary);
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.blinking-cursor::after {
    content: '_';
    animation: blink 1s infinite;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.inventory-category h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.inventory-category ul {
    list-style: none;
    padding: 0;
}

.inventory-category li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.inventory-category li:hover {
    color: white;
    border-left-color: var(--accent);
    padding-left: 1.5rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
    margin-top: 3rem;
}

.gallery-item {
    background-color: #1a1a2e;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    background-image: linear-gradient(45deg, #1a1a2e 25%, #23233c 25%, #23233c 50%, #1a1a2e 50%, #1a1a2e 75%, #23233c 75%, #23233c 100%);
    background-size: 20px 20px;
    cursor: pointer;
}

.gallery-item.item-large {
    grid-row: span 2;
}

.gallery-item.item-wide {
    grid-column: span 4;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, black, transparent);
    opacity: 0.8;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

/* Future Projects Section */
.future-section {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(189, 0, 255, 0.03) 0%, transparent 20%);
}

.future-intro {
    text-align: right;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.hologram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hologram-card {
    background: rgba(0, 20, 40, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 2px;
    /* For inner border effect */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

a.hologram-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
    color: white;
}

a.hologram-card p {
    color: #e0e0e0;
    /* Slightly off-white for description, or white if preferred */
}

a.hologram-card:hover p {
    color: white;
}

.hologram-card:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.5);
    transform: scale(1.02);
}

.holo-content {
    background:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.holo-icon {
    font-size: 3rem;
    color: rgba(0, 243, 255, 0.7);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.5));
    transition: all 0.3s;
}

.hologram-card:hover .holo-icon {
    color: #fff;
    filter: drop-shadow(0 0 15px var(--primary));
    transform: translateY(-5px);
}

.hologram-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.status-badge {
    margin-top: auto;
    padding: 5px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    background: rgba(10, 255, 0, 0.05);
    position: relative;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: translateY(-50%);
    box-shadow: 0 0 5px var(--accent);
    animation: blink 1.5s infinite;
}

.holo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.5), transparent);
    animation: scan 3s linear infinite;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.holo-corners::before,
.holo-corners::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.holo-corners::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.holo-corners::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.hologram-card:hover .holo-corners::before,
.hologram-card:hover .holo-corners::after {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 10px var(--primary);
}

/* Contact & Footer */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

footer {
    padding: 3rem 0;
    background: #020205;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

/* Animation Classes */
.in-view {
    animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure Hero is always visible */
section,
.tech-card,
.gallery-item {
    opacity: 0;
}

.in-view {
    animation: fadeUp 0.8s forwards;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        margin-bottom: 3rem;
        max-width: 100%;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
        border-left: none;
        padding-left: 0;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        min-height: 350px;
    }

    .cyber-circle {
        width: 300px;
        height: 300px;
    }

    .cyber-circle::before {
        width: 240px;
        height: 240px;
    }

    .cyber-circle::after {
        width: 340px;
        height: 340px;
    }

    .cyber-core {
        width: 120px;
        height: 120px;
    }

    .core-inner {
        box-shadow: 0 0 20px var(--primary), inset 0 0 10px #fff;
    }

    .glitch-title {
        font-size: 3rem;
    }

    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cyber-circle {
        width: 260px;
        height: 260px;
    }

    .cyber-circle::after {
        width: 280px;
        height: 280px;
    }

    .cyber-core {
        width: 100px;
        height: 100px;
    }

    .tech-header {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        /* In a real app, we'd add a toggle. For now, hiding complex menu on tiny screens or simplifying */
    }

    .mobile-menu-toggle {
        display: block;
    }
}

#hero {
    opacity: 1;
}

#hero .cards-grid {
    opacity: 0;
    /* But sub-elements might need it */
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 0 2rem;
    }

    .glitch-title {
        font-size: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        margin-bottom: 3rem;
        width: 100%;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-width: 350px;
    }

    .cyber-circle {
        width: 100%;
        height: 100%;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .gallery-item {
        grid-column: span 4 !important;
        /* Full width on mobile */
    }

    .cards-grid,
    .hologram-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glitch-title {
        font-size: 2.5rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .stat-item {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 4K / Ultra-wide Support */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 5rem;
    }

    p {
        font-size: 1.2rem;
    }
}