* /*
Theme Name: Portfolio_Taamdev
Theme URI: http://example.com
Author: Tam
Author URI: http://example.com
Description: This is a custom theme for my portfolio website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/

{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        cursor: none;
    }

    :root {
        --primary: #d4af37;
        --secondary: #00ffff;
        --bg-dark: #0a0a0a;
        --bg-light: #1a1a1a;
        --text: #e0e0e0;
        --danger: #ff4444;
        --success: #44ff44;
    }

    /* SCROLLBAR */
    ::-webkit-scrollbar {
        width: 10px;
    }

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

    ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #b8941f;
    }

    body {
        font-family: 'Courier New', monospace;
        background: var(--bg-dark);
        color: var(--text);
        overflow-x: hidden;
        line-height: 1.6;
    }

    /* NAVIGATION MENU */
    #nav-menu {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
        display: flex;
        gap: 20px;
        padding: 15px 25px;
        background: rgba(26, 26, 26, 0.95);
        border: 2px solid var(--primary);
        backdrop-filter: blur(10px);
        animation: slideInRight 0.5s ease-out;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

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

    .nav-item {
        color: var(--text);
        text-decoration: none;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s;
        position: relative;
        padding: 5px 0;
        cursor: none;
    }

    .nav-item::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s;
    }

    .nav-item:hover::before,
    .nav-item.active::before {
        width: 100%;
    }

    .nav-item:hover {
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }

    .nav-item.active {
        color: var(--primary);
    }

    /* MOBILE MENU */
    #menu-toggle {
        display: none;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10001;
        background: var(--bg-light);
        border: 2px solid var(--primary);
        padding: 10px;
        color: var(--primary);
        font-size: 1.5rem;
    }

    @media (max-width: 768px) {
        #menu-toggle {
            display: block;
        }

        #nav-menu {
            flex-direction: column;
            top: 70px;
            right: 20px;
            transform: translateX(150%);
            transition: transform 0.3s;
        }

        #nav-menu.active {
            transform: translateX(0);
        }
    }

    /* CODE DECORATION LEFT SIDE */
    .code-decoration {
        position: fixed;
        left: 0;
        top: 0;
        width: 60px;
        height: 100vh;
        background: var(--bg-light);
        border-right: 1px solid var(--primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 100;
        overflow: hidden;
    }

    .line-numbers {
        color: #444;
        font-size: 0.8rem;
        line-height: 1.8;
        user-select: none;
    }

    .line-numbers span {
        display: block;
        transition: all 0.3s;
    }

    .line-numbers span:hover {
        color: var(--primary);
    }

    section {
        margin-left: 60px;
    }

    @media (max-width: 768px) {
        .code-decoration {
            display: none;
        }

        section {
            margin-left: 0;
        }
    }

    /* CUSTOM CURSOR */
    #cursor-core {
        position: fixed;
        width: 10px;
        height: 10px;
        background: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: background-color 0.2s, transform 0.2s;
        box-shadow: 0 0 15px var(--primary);
    }

    #cursor-core.hover {
        transform: translate(-50%, -50%) scale(1.8);
        background: var(--secondary);
        box-shadow: 0 0 20px var(--secondary);
    }

    #cursor-core.click {
        background: var(--danger) !important;
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 20px var(--danger) !important;
    }

    #cursor-core.hover.click {
        background: var(--danger);
        transform: translate(-50%, -50%) scale(2);
        box-shadow: 0 0 25px var(--danger);
    }

    @keyframes fade-trail {
        to {
            opacity: 0;
            transform: scale(0) translate(-50%, -50%);
        }
    }

    /* PORTFOLIO THEMED LOADING SCREEN */
    #loading-screen {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10002;
        transition: opacity 1s;
    }

    #loading-screen.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* Terminal Style Loading */
    .terminal-loader {
        width: 600px;
        max-width: 90%;
        background: #0a0a0a;
        border: 2px solid var(--primary);
        padding: 30px;
        font-family: 'Courier New', monospace;
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    }

    .terminal-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #333;
    }

    .terminal-dots {
        display: flex;
        gap: 8px;
    }

    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .dot.red {
        background: #ff5f56;
    }

    .dot.yellow {
        background: #ffbd2e;
    }

    .dot.green {
        background: #27c93f;
    }

    .terminal-title {
        color: #666;
        font-size: 0.9rem;
        margin-left: auto;
    }

    .terminal-content {
        color: var(--primary);
    }

    .loading-text {
        margin-bottom: 20px;
    }

    .loading-line {
        margin: 5px 0;
        opacity: 0;
        animation: typeIn 0.5s forwards;
    }

    .loading-line:nth-child(1) {
        animation-delay: 0.1s;
    }

    .loading-line:nth-child(2) {
        animation-delay: 0.3s;
    }

    .loading-line:nth-child(3) {
        animation-delay: 0.5s;
    }

    @keyframes typeIn {
        to {
            opacity: 1;
        }
    }

    .prompt {
        color: var(--success);
    }

    .loading-progress-bar {
        width: 100%;
        height: 20px;
        background: #1a1a1a;
        border: 1px solid #333;
        margin-top: 20px;
        position: relative;
        overflow: hidden;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        width: 0%;
        animation: loadProgress 1.2s ease-out forwards;
        animation-delay: 0.6s;
    }

    @keyframes loadProgress {
        to {
            width: 100%;
        }
    }

    .progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #000;
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 1;
    }

    /* SCAN LINES EFFECT */
    .scanlines {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(0deg,
                rgba(0, 0, 0, 0.15),
                rgba(0, 0, 0, 0.15) 1px,
                transparent 1px,
                transparent 2px);
        pointer-events: none;
        z-index: 9998;
        opacity: 0.5;
    }

    /* NOISE EFFECT */
    .noise {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9997;
        opacity: 0.03;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        animation: noise 0.2s infinite;
    }

    @keyframes noise {

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

        10% {
            transform: translate(-5%, -5%);
        }

        20% {
            transform: translate(-10%, 5%);
        }

        30% {
            transform: translate(5%, -10%);
        }

        40% {
            transform: translate(-5%, 15%);
        }

        50% {
            transform: translate(-10%, 5%);
        }

        60% {
            transform: translate(15%, 0);
        }

        70% {
            transform: translate(0, 10%);
        }

        80% {
            transform: translate(-15%, 0);
        }

        90% {
            transform: translate(10%, 5%);
        }
    }

    /* ENTRY SECTION WITH ENHANCED EFFECTS */
    #entry {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a0a 100%);
        overflow: hidden;
    }

    /* Matrix Rain Background */
    .matrix-rain {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
        opacity: 0.1;
    }

    .matrix-column {
        position: absolute;
        top: -100%;
        font-family: monospace;
        font-size: 20px;
        color: var(--primary);
        animation: matrix-fall linear infinite;
        text-shadow: 0 0 5px var(--primary);
    }

    @keyframes matrix-fall {
        to {
            top: 100%;
        }
    }

    /* Geometric Decorations */
    .geometric-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 2;
    }

    .geo-shape {
        position: absolute;
        border: 1px solid rgba(212, 175, 55, 0.1);
        animation: float 20s infinite ease-in-out;
    }

    .geo-shape:nth-child(1) {
        width: 300px;
        height: 300px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .geo-shape:nth-child(2) {
        width: 200px;
        height: 200px;
        top: 60%;
        right: 10%;
        animation-delay: 5s;
    }

    .geo-shape:nth-child(3) {
        width: 150px;
        height: 150px;
        bottom: 10%;
        left: 30%;
        animation-delay: 10s;
    }

    @keyframes float {

        0%,
        100% {
            transform: translate(0, 0) rotate(0deg);
        }

        33% {
            transform: translate(30px, -30px) rotate(120deg);
        }

        66% {
            transform: translate(-20px, 20px) rotate(240deg);
        }
    }

    .entry-decoration {
        position: absolute;
        width: 50px;
        height: 50px;
        border-style: solid;
        border-color: var(--primary);
        opacity: 0.5;
        z-index: 3;
    }

    .entry-decoration.top-left {
        top: 30px;
        left: 30px;
        border-width: 2px 0 0 2px;
        animation: pulse-corner 3s infinite;
    }

    .entry-decoration.top-right {
        top: 30px;
        right: 30px;
        border-width: 2px 2px 0 0;
        animation: pulse-corner 3s infinite 0.5s;
    }

    .entry-decoration.bottom-left {
        bottom: 30px;
        left: 30px;
        border-width: 0 0 2px 2px;
        animation: pulse-corner 3s infinite 1s;
    }

    .entry-decoration.bottom-right {
        bottom: 30px;
        right: 30px;
        border-width: 0 2px 2px 0;
        animation: pulse-corner 3s infinite 1.5s;
    }

    @keyframes pulse-corner {

        0%,
        100% {
            opacity: 0.5;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1.1);
        }
    }

    .glitch-wrapper {
        text-align: center;
        z-index: 10;
        position: relative;
    }

    /* Enhanced Glitch Title */
    .glitch-title {
        font-size: 5rem;
        font-weight: bold;
        color: var(--primary);
        position: relative;
        display: inline-block;
        animation: glitch-skew 3s infinite;
        text-shadow:
            2px 2px 0px var(--danger),
            -2px -2px 0px #00ff00,
            0 0 40px rgba(212, 175, 55, 0.5);
        letter-spacing: 2px;
    }

    @keyframes glitch-skew {

        0%,
        100% {
            transform: skew(0deg);
        }

        10% {
            transform: skew(-2deg);
        }

        20% {
            transform: skew(2deg);
        }

        30% {
            transform: skew(0deg);
        }

        40% {
            transform: skew(1deg);
        }

        50% {
            transform: skew(-1deg);
        }

        60% {
            transform: skew(0deg);
        }
    }

    .glitch-title::before,
    .glitch-title::after {
        content: attr(data-text);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .glitch-title::before {
        animation: glitch-1 2.5s infinite;
        color: var(--danger);
        z-index: -1;
    }

    .glitch-title::after {
        animation: glitch-2 2s infinite;
        color: #00ff00;
        z-index: -2;
    }

    @keyframes glitch-1 {

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

        20% {
            transform: translate(-3px, 3px);
        }

        40% {
            transform: translate(-3px, -3px);
        }

        60% {
            transform: translate(3px, 3px);
        }

        80% {
            transform: translate(3px, -3px);
        }
    }

    @keyframes glitch-2 {

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

        20% {
            transform: translate(3px, -3px);
        }

        40% {
            transform: translate(3px, 3px);
        }

        60% {
            transform: translate(-3px, -3px);
        }

        80% {
            transform: translate(-3px, 3px);
        }
    }

    /* Animated Subtitle */
    .subtitle {
        font-size: 1.2rem;
        color: #666;
        margin-top: 20px;
        letter-spacing: 5px;
        animation: flicker 4s infinite;
        position: relative;
    }

    .subtitle::before,
    .subtitle::after {
        content: '< ';
        color: var(--secondary);
        animation: blink 1s infinite;
    }

    .subtitle::after {
        content: ' />';
    }

    @keyframes blink {

        0%,
        50%,
        100% {
            opacity: 1;
        }

        25%,
        75% {
            opacity: 0;
        }
    }

    /* Contact Button */
    .contact-btn {
        margin-top: 30px;
        padding: 15px 30px;
        background: transparent;
        border: 2px solid var(--primary);
        color: var(--primary);
        font-family: 'Courier New', monospace;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        cursor: none;
        position: relative;
        overflow: hidden;
        transition: all 0.3s;
    }

    .contact-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transition: left 0.3s;
        z-index: -1;
    }

    .contact-btn:hover {
        color: var(--bg-dark);
    }

    .contact-btn:hover::before {
        left: 0;
    }

    .contact-btn i {
        margin-left: 10px;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {

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

        50% {
            transform: translateY(3px);
        }
    }

    .scroll-indicator {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.9rem;
        color: var(--primary);
        animation: bounce 2s infinite;
        z-index: 10;
    }

    /* SHARED STYLES FOR SECTIONS */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .section-title {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 50px;
        text-transform: uppercase;
        letter-spacing: 3px;
        border-bottom: 2px solid var(--primary);
        padding-bottom: 10px;
        position: relative;
    }

    .section-title::before {
        content: '> ';
        color: var(--danger);
    }

    /* ABOUT SECTION */
    #about {
        min-height: 100vh;
        padding: 100px 40px;
        background: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-hud-container {
        display: flex;
        align-items: center;
        gap: 50px;
        background: var(--bg-light);
        border: 2px solid var(--primary);
        padding: 40px;
        width: 100%;
        max-width: 1100px;
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    }

    @media (max-width: 968px) {
        .about-hud-container {
            flex-direction: column;
            padding: 30px;
        }
    }

    .hud-image-wrapper {
        flex-shrink: 0;
        width: 300px;
        height: 300px;
        position: relative;
        padding: 15px;
        border: 1px solid var(--primary);
    }

    .hud-image-wrapper::before,
    .hud-image-wrapper::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        border-color: var(--secondary);
        border-style: solid;
    }

    .hud-image-wrapper::before {
        top: -5px;
        left: -5px;
        border-width: 2px 0 0 2px;
    }

    .hud-image-wrapper::after {
        bottom: -5px;
        right: -5px;
        border-width: 0 2px 2px 0;
    }

    .hud-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(70%) contrast(120%) brightness(0.9);
    }

    .hud-info {
        flex-grow: 1;
    }

    .hud-title {
        font-size: 2rem;
        color: var(--primary);
        margin-bottom: 5px;
    }

    .hud-subtitle {
        font-size: 1.1rem;
        color: var(--secondary);
        margin-bottom: 20px;
        letter-spacing: 2px;
    }

    .hud-description {
        color: var(--text);
        margin-bottom: 30px;
    }

    .hud-requirements {
        border-top: 1px solid var(--primary);
        padding-top: 20px;
    }

    .requirements-title {
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .requirements-list {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .requirements-list li {
        color: #aaa;
        font-size: 0.9rem;
    }

    .requirements-list i {
        color: var(--secondary);
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    /* SKILLS SECTION */
    #skills {
        min-height: 100vh;
        padding: 100px 20px;
        background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        margin-top: 50px;
    }

    .skill-card {
        background: var(--bg-dark);
        border: 1px solid var(--primary);
        padding: 30px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        text-align: center;
        min-height: 280px;
    }

    .skill-card span.border {
        position: absolute;
        background-color: var(--secondary);
        box-shadow: 0 0 10px var(--secondary);
        transition: all 0.3s ease-in-out;
    }

    .skill-card .top,
    .skill-card .bottom {
        width: 0;
        height: 2px;
    }

    .skill-card .left,
    .skill-card .right {
        width: 2px;
        height: 0;
    }

    .skill-card .top {
        top: 0;
        left: 0;
    }

    .skill-card .bottom {
        bottom: 0;
        right: 0;
    }

    .skill-card .left {
        bottom: 0;
        left: 0;
    }

    .skill-card .right {
        top: 0;
        right: 0;
    }

    .skill-card:hover .top,
    .skill-card:hover .bottom {
        width: 100%;
    }

    .skill-card:hover .left,
    .skill-card:hover .right {
        height: 100%;
    }

    .skill-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
        border-color: transparent;
    }

    .skill-icon {
        font-size: 3rem;
        color: var(--primary);
        margin-bottom: 20px;
        transition: all 0.3s;
    }

    .skill-card:hover .skill-icon {
        color: var(--secondary);
        transform: scale(1.1);
    }

    .skill-name {
        font-size: 1.3rem;
        color: var(--primary);
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .skill-tech {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .skill-tech .tech-tag {
        background-color: var(--bg-light);
        color: #aaa;
        padding: 5px 10px;
        font-size: 0.8rem;
        border: 1px solid #444;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease-out;
    }

    .skill-card:hover .tech-tag {
        opacity: 1;
        transform: translateY(0);
    }

    .skill-card:hover .tech-tag:nth-child(1) {
        transition-delay: 0.1s;
    }

    .skill-card:hover .tech-tag:nth-child(2) {
        transition-delay: 0.2s;
    }

    .skill-card:hover .tech-tag:nth-child(3) {
        transition-delay: 0.3s;
    }

    .skill-card:hover .tech-tag:nth-child(4) {
        transition-delay: 0.4s;
    }

    .skill-card:hover .tech-tag:nth-child(5) {
        transition-delay: 0.5s;
    }

    /* PROJECTS SECTION WITH GLITCH EFFECT */
    #projects {
        min-height: 100vh;
        padding: 100px 20px;
        background: var(--bg-dark);
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
        margin-top: 50px;
    }

    .project-card {
        background: var(--bg-light);
        border: 2px solid var(--primary);
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .project-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
        border-color: var(--success);
    }

    /* PROJECT IMAGE GLITCH EFFECT */
    .project-image-wrapper {
        width: 100%;
        height: 250px;
        position: relative;
        overflow: hidden;
    }

    .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%) contrast(110%);
        transition: filter 0.4s ease-in-out;
        position: relative;
        z-index: 1;
    }

    .project-card:hover .project-image {
        filter: grayscale(0%) contrast(100%);
        animation: glitch-base 0.4s infinite;
    }

    @keyframes glitch-base {

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

        20% {
            transform: translate(-1px, 1px);
        }

        40% {
            transform: translate(-1px, -1px);
        }

        60% {
            transform: translate(1px, 1px);
        }

        80% {
            transform: translate(1px, -1px);
        }
    }

    /* Glitch layers */
    .project-image-wrapper::before,
    .project-image-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit;
        opacity: 0;
        z-index: 2;
        pointer-events: none;
    }

    .project-card:hover .project-image-wrapper::before {
        opacity: 0.8;
        animation: glitch-1 0.3s infinite;
        background: linear-gradient(to right,
                rgba(255, 0, 0, 0.1),
                transparent 30%,
                transparent 70%,
                rgba(255, 0, 0, 0.1));
        mix-blend-mode: screen;
    }

    .project-card:hover .project-image-wrapper::after {
        opacity: 0.8;
        animation: glitch-2 0.3s infinite reverse;
        background: linear-gradient(to right,
                rgba(0, 255, 255, 0.1),
                transparent 30%,
                transparent 70%,
                rgba(0, 255, 255, 0.1));
        mix-blend-mode: screen;
    }

    @keyframes glitch-1 {

        0%,
        100% {
            transform: translate(0);
            clip-path: inset(0 0 0 0);
        }

        10% {
            transform: translate(-2px, 0);
            clip-path: inset(20% 0 30% 0);
        }

        20% {
            transform: translate(2px, 0);
            clip-path: inset(50% 0 20% 0);
        }

        30% {
            transform: translate(0, 0);
            clip-path: inset(10% 0 60% 0);
        }

        40% {
            transform: translate(-2px, 0);
            clip-path: inset(70% 0 10% 0);
        }

        50% {
            transform: translate(2px, 0);
            clip-path: inset(30% 0 40% 0);
        }

        60% {
            transform: translate(-1px, 0);
            clip-path: inset(80% 0 5% 0);
        }

        70% {
            transform: translate(0, 0);
            clip-path: inset(0 0 0 0);
        }

        80% {
            transform: translate(2px, 0);
            clip-path: inset(40% 0 40% 0);
        }

        90% {
            transform: translate(-1px, 0);
            clip-path: inset(60% 0 20% 0);
        }
    }

    @keyframes glitch-2 {

        0%,
        100% {
            transform: translate(0);
            clip-path: inset(0 0 0 0);
        }

        15% {
            transform: translate(2px, 0);
            clip-path: inset(40% 0 30% 0);
        }

        30% {
            transform: translate(-2px, 0);
            clip-path: inset(20% 0 50% 0);
        }

        45% {
            transform: translate(1px, 0);
            clip-path: inset(60% 0 10% 0);
        }

        60% {
            transform: translate(-1px, 0);
            clip-path: inset(10% 0 70% 0);
        }

        75% {
            transform: translate(0, 0);
            clip-path: inset(50% 0 30% 0);
        }

        90% {
            transform: translate(1px, 0);
            clip-path: inset(25% 0 45% 0);
        }
    }

    /* Scanline effect for glitch */
    .project-card:hover .project-image-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        animation: scanline 2s linear infinite;
        z-index: 3;
    }

    @keyframes scanline {
        0% {
            top: -10%;
        }

        100% {
            top: 110%;
        }
    }

    .project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.5) 70%, transparent 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding: 20px;
        opacity: 0;
        transform: translateY(20%);
        transition: all 0.4s ease-in-out;
        z-index: 10;
    }

    .project-card:hover .project-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .overlay-scanline {
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--primary);
        box-shadow: 0 0 15px var(--primary);
        opacity: 0;
        transition: top 1s ease-in-out, opacity 0.5s;
    }

    .project-card:hover .overlay-scanline {
        top: 100%;
        opacity: 0.7;
        transition: top 1s ease-in-out 0.2s, opacity 0.5s 0.2s;
    }

    .project-case-id {
        color: var(--primary);
        font-size: 1rem;
        letter-spacing: 2px;
        border: 1px solid var(--primary);
        padding: 5px 10px;
        margin-bottom: 20px;
        background: var(--bg-dark);
    }

    .project-links {
        display: flex;
        gap: 15px;
    }

    .project-link-btn {
        background: transparent;
        border: 1px solid var(--success);
        color: var(--success);
        padding: 10px 15px;
        text-decoration: none;
        font-family: 'Courier New', monospace;
        font-size: 0.9rem;
        transition: all 0.3s;
    }

    .project-link-btn:hover {
        background: var(--success);
        color: var(--bg-dark);
        box-shadow: 0 0 15px var(--success);
    }

    .project-link-btn .fas,
    .project-link-btn .fab {
        margin-right: 8px;
    }

    .project-info {
        padding: 25px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .project-title {
        font-size: 1.5rem;
        color: var(--primary);
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .project-status {
        display: inline-block;
        padding: 5px 10px;
        background: var(--bg-dark);
        color: var(--success);
        font-size: 0.8rem;
        border: 1px solid var(--success);
        margin-bottom: 15px;
        animation: pulse-border 2s infinite;
        align-self: flex-start;
    }

    @keyframes pulse-border {

        0%,
        100% {
            border-color: var(--success);
        }

        50% {
            border-color: var(--primary);
        }
    }

    .project-description {
        color: #999;
        font-size: 0.95rem;
        line-height: 1.6;
        flex-grow: 1;
    }

    .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .tech-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(0, 255, 255, 0.05);
        border: 1px solid rgba(0, 255, 255, 0.2);
        border-radius: 20px;
        font-size: 0.85rem;
        color: #00ffff;
        margin: 3px;
        transition: all 0.3s ease;
        cursor: none;
    }

    .tech-tag i {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .tech-tag:hover {
        background: rgba(0, 255, 255, 0.15);
        border-color: rgba(0, 255, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    }

    .tech-tag:hover i {
        transform: rotate(360deg) scale(1.2);
    }

    /* Icon colors */
    .fa-html5 {
        color: #E34C26;
    }

    .fa-css3-alt {
        color: #1572B6;
    }

    .fa-js,
    .fa-js-square {
        color: #F7DF1E;
    }

    .fa-php {
        color: #777BB4;
    }

    .fa-node-js {
        color: #339933;
    }

    .fa-database {
        color: #4479A1;
    }

    .fa-microsoft {
        color: #239120;
    }

    .fa-git-alt {
        color: #F05032;
    }

    .fa-moon {
        color: #000080;
    }

    .fa-lightbulb {
        color: #FFD700;
    }

    /* CONTACTS SECTION */
    #contacts {
        min-height: 100vh;
        padding: 100px 20px;
        background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0a 100%);
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
        margin-top: 50px;
        margin-bottom: 60px;
        justify-content: center;
    }

    .contact-card {
        background: var(--bg-light);
        border: 2px solid var(--primary);
        padding: 40px;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        text-decoration: none;
        color: var(--text);
        display: block;
        height: 200px;
    }

    .contact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
        border-color: var(--secondary);
    }

    .contact-card .contact-icon,
    .contact-card .contact-label {
        transition: all 0.4s ease-in-out;
    }

    .contact-card:hover .contact-icon,
    .contact-card:hover .contact-label {
        transform: translateY(-15px);
    }

    .contact-icon {
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .contact-card:hover .contact-icon {
        color: var(--secondary);
    }

    .contact-label {
        font-size: 1.2rem;
        color: var(--primary);
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .contact-value {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 30px;
        color: var(--text);
        word-break: break-all;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease-in-out;
        padding: 0 10px;
    }

    .contact-card:hover .contact-value {
        opacity: 1;
        transform: translateY(0);
    }

    /* EMAIL FORM */
    .email-form-container {
        max-width: 600px;
        margin: 0 auto;
        background: var(--bg-light);
        border: 2px solid var(--primary);
        padding: 40px;
        position: relative;
    }

    .email-form-container::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: #1a1a1a;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .email-form-container:hover::before {
        opacity: 0.5;
    }

    .form-title {
        color: var(--primary);
        font-size: 1.5rem;
        margin-bottom: 30px;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .email-form {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .form-group {
        position: relative;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        background: var(--bg-dark);
        border: 1px solid #444;
        color: var(--text);
        font-family: 'Courier New', monospace;
        font-size: 1rem;
        transition: all 0.3s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }

    .form-group label {
        position: absolute;
        left: 12px;
        top: 12px;
        color: #666;
        transition: all 0.3s;
        pointer-events: none;
        background: var(--bg-dark);
        padding: 0 5px;
    }

    .form-group input:focus+label,
    .form-group input:valid+label,
    .form-group textarea:focus+label,
    .form-group textarea:valid+label {
        top: -10px;
        font-size: 0.8rem;
        color: var(--primary);
    }

    .submit-btn {
        padding: 15px 30px;
        background: transparent;
        border: 2px solid var(--primary);
        color: var(--primary);
        font-family: 'Courier New', monospace;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        cursor: none;
        position: relative;
        overflow: hidden;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transition: left 0.3s;
        z-index: -1;
    }

    .submit-btn:hover {
        color: var(--bg-dark);
    }

    .submit-btn:hover::before {
        left: 0;
    }

    .submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .form-status {
        padding: 10px;
        text-align: center;
        margin-top: 10px;
        border-radius: 4px;
        display: none;
    }

    .form-status.success {
        background: rgba(68, 255, 68, 0.1);
        border: 1px solid var(--success);
        color: var(--success);
        display: block;
    }

    .form-status.error {
        background: rgba(255, 68, 68, 0.1);
        border: 1px solid var(--danger);
        color: var(--danger);
        display: block;
    }

    /* FOOTER */
    footer {
        background: var(--bg-dark);
        padding: 40px 20px;
        text-align: center;
        border-top: 2px solid var(--primary);
        margin-left: 60px;
    }

    @media (max-width: 768px) {
        footer {
            margin-left: 0;
        }
    }

    .footer-text {
        color: #666;
        font-size: 0.9rem;
    }

    .footer-warning {
        color: var(--danger);
        margin-top: 10px;
        font-size: 0.8rem;
        animation: flicker 3s infinite;
    }

    @keyframes flicker {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
        .glitch-title {
            font-size: 3rem;
        }

        .section-title {
            font-size: 2rem;
        }

        .projects-grid,
        .skills-grid,
        .contact-grid {
            grid-template-columns: 1fr;
        }

        .loading-bar {
            width: 80%;
        }

        .terminal-loader {
            width: 90%;
            padding: 20px;
        }
    }

    /* SCROLL REVEAL ANIMATION */
    .reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.6s ease-out;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
/* ===== CLASSROOM.EXE - TAAMDEV SECRET LAB ===== */
#classroom {
    padding: 100px 0;
    background: linear-gradient(180deg, #000 0%, #001122 100%);
    position: relative;
    overflow: hidden;
}

#classroom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(90deg, #00ff4130 0px, transparent 1px, transparent 50px, #00ff4130 51px);
    animation: scan 8s linear infinite;
    pointer-events: none;
}

.classroom-subtitle {
    text-align: center;
    color: #00ff88;
    font-size: 1.1rem;
    margin-bottom: 60px;
    opacity: 0.9;
}

.classroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.classroom-card {
    background: rgba(10, 25, 30, 0.8);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.classroom-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: 0.7s;
}

.classroom-card:hover::before {
    left: 100%;
}

.classroom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px #00ff4170;
    border-color: #00ff88;
}

.classroom-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    color: #00ff41;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.classroom-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 10px 0;
    font-weight: bold;
}

.classroom-description {
    color: #00ff88;
    font-size: 0.95rem;
    line-height: 1.5;
}

.classroom-footer {
    margin-top: 20px;
    text-align: right;
}

.view-live {
    color: #00ffff;
    font-weight: bold;
    font-size: 0.9rem;
}

.classroom-card:hover .view-live {
    color: #ff00ff;
    text-shadow: 0 0 10px;
}