:root {
    --accent: #00e5ff; /* Cyan Tech Color */
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(0, 229, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: #fff; font-family: 'Inter', sans-serif; overflow-x: hidden; }

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darkens the corners of the screen */
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 150%);
    pointer-events: none;
    z-index: 9998;
}

/* --- PRELOADER --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 1000; display: flex; flex-direction: column;
    justify-content: center; align-items: center; transition: 1s ease;
}

.brain-container { position: relative; width: 150px; margin-bottom: 20px; }
.brain-icon { width: 100%; filter: drop-shadow(0 0 10px var(--accent)); }
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent); box-shadow: 0 0 15px var(--accent);
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan { 0%, 100% { top: 0; } 50% { top: 100%; } }

.loading-text { font-family: monospace; letter-spacing: 3px; color: var(--accent); font-size: 0.8rem; }

/* --- MAIN INTERFACE --- */
.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
#app-interface { transition: 1.5s ease; padding: 0 5%; }

nav { height: 100px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.nav-links a { color: #fff; text-decoration: none; margin-left: 30px; font-size: 0.7rem; letter-spacing: 2px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.home { height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.home-section h1 { font-size: 2rem; font-weight: 600; letter-spacing: -2px; }
.subtitle { color: #bbb; margin-top: 10px; max-width: 500px; }

/* --- PROJECT CARDS --- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 100px 0; }
.project-card {
    background: var(--card-bg); border: 1px solid var(--border); padding: 40px;
    position: relative; transition: 0.5s;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%); /* Tech Cut Corner */
}
.project-card:hover { background: rgba(0, 229, 255, 0.05); border-color: var(--accent); transform: translateY(-10px); }
.card-num { position: absolute; top: 20px; right: 20px; font-family: monospace; color: var(--accent); opacity: 0.5; }
.view-btn { display: inline-block; margin-top: 20px; color: var(--accent); font-size: 0.7rem; text-decoration: none; border: 1px solid var(--accent); padding: 5px 15px; transition: 0.3s; }
.view-btn:hover { background: var(--accent); color: #000; }

/* --- ANIMATIONS --- */

/* Horizontal Slicing Effect */
@keyframes glitch-anim {
  0% { clip-path: inset(80% 0 1% 0); }
  20% { clip-path: inset(33% 0 33% 0); }
  40% { clip-path: inset(10% 0 70% 0); }
  60% { clip-path: inset(50% 0 10% 0); }
  80% { clip-path: inset(10% 0 10% 0); }
  100% { clip-path: inset(80% 0 1% 0); }
}

@keyframes glitch-anim2 {
  0% { clip-path: inset(10% 0 80% 0); }
  20% { clip-path: inset(50% 0 10% 0); }
  40% { clip-path: inset(80% 0 10% 0); }
  60% { clip-path: inset(10% 0 70% 0); }
  80% { clip-path: inset(33% 0 33% 0); }
  100% { clip-path: inset(10% 0 80% 0); }
}

/* Sudden Position Jitter */
@keyframes glitch-flicker {
    0% { transform: translate(0); }
    90% { transform: translate(0); }
    91% { transform: translate(-5px, 2px); }
    92% { transform: translate(5px, -2px); }
    93% { transform: translate(0); }
}

/* ------------------------------------------ HERO LAYOUT ADJUSTMENT ----------------------------------------------------- */
.home-section {
    display: flex;
    flex-direction: row;      /* Forces side-by-side back */
    justify-content: center;   /* Centers the group in the middle of your monitor */
    align-items: center;       /* Vertically aligns middle of text with middle of image */
    min-height: 100vh;
    width: 100%;
    padding: 0 8%;
    padding-top: 80px;
    gap: 100px;                /* Consistent space between text and image */
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 0 1 auto;           /* Only takes the space it needs */
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Forces all text/buttons to align strictly at the left */
    text-align: left;
}

.home-section h1 {
    font-size: 3rem;             /* Reduced slightly to fit better side-by-side */
    margin: 5px 0 15px 0;
}


/* --- IMAGE AREA (Anchored Right) --- */
.hero-image-area {
    flex: 0 1 auto;           /* Only takes the space it needs */
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-left: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(0,229,255,0.3);
    border-radius: 8px;
}

/* --- GLOBAL GLITCH EFFECT --- */
.glitch-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.glitch-img {
    display: block;
    width: 100%;
    max-width: 400px; /* Adjust size */
    height: auto;
    position: relative;
    z-index: 1;
    /* Optional: make it look more techy/monochrome */
    filter: contrast(1.1) brightness(1.1);
}

/* Creating the red and blue "ghost" layers */
.glitch-container::before,
.glitch-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: inherit;
    background-image: inherit; /* Fallback */
    z-index: 0;
}

/* The Scanline Layer */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This creates the tiny horizontal lines */
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.3) 0px,
        rgba(0, 0, 0, 0.3) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 2; /* Sits on top of the image */
    pointer-events: none; /* Allows you to still click the image below */
    opacity: 0.6;
}

/* Cinematic "Moving" Scanline (The bright bar that rolls down) */
.scanline-overlay::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 229, 255, 0.05) 50%,
        transparent 100%
    );
    animation: scanline-roll 4s linear infinite;
}

@keyframes scanline-roll {
    0% { top: -20%; }
    100% { top: 120%; }
}

/* Red Layer */
.glitch-container::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Cyan Layer */
.glitch-container::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

/* Applying glitch to the Brain in the Loader too */
.brain-container {
    animation: glitch-flicker 3s infinite;
}

.global-screen-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    ), 
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%; /* Creates the grid of pixels */
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
}


/* -------------------------------------------------font & label styleing--------------------------------------------------------- */

/* Identity Label at the top */
.sys-label0 {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff !important; /* Main text is now WHITE for maximum visibility */
    
    letter-spacing: 3px;
    margin-bottom: 35px;
    padding: 5px 15px;
    
    background: rgba(0, 229, 255, 0.1); /* Subtle cyan background tint */
    border-left: 3px solid var(--accent); /* Bright cyan indicator line */
    
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

/* Add a bright "Live" indicator next to the title */
.sys-label0::before {
    content: "●";
    color: var(--accent);
    font-size: 0.6rem;
    animation: blink 1.5s infinite;
}

/* The horizontal line that follows the title */
.sys-label0::after {
    content: "";
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
}

.white-text {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Role Typing Area */
.role-wrapper {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    margin-top: -5px;
    margin-bottom: 25px;
    height: 1.5rem; /* Prevents layout jump */
}

.prefix {
    color: #555;
}

.accent-text {
    color: var(--accent); /* Your cyan color */
    text-shadow: 0 0 8px var(--accent);
}

/* Blinking Cursor */
.cursor {
    color: var(--accent);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Secondary Button for Balance */
.secondary-btn {
    margin-left: 20px;
    color: #888;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    transition: 0.3s;
}

.secondary-btn:hover {
    color: #fff;
    border-color: #fff;
}



/* -------------------------------------------------------About Section------------------------------------------------------- */
.about-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;        /* Centers everything horizontally */
    justify-content: center;     /* Centers everything vertically */
    padding: 80px 5% !important; /* Flexible side padding */
    background: transparent;
}

/* The "Window" Container */
.data-frame {
    
    width: 100%;
    max-width: 1000px;          /* Professional "Dashboard" width */
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(0, 229, 255, 0.1);
    /* border-left: 3px solid var(--accent); Stronger left vertical anchor */
    position: relative;
    
    /* Simplified clip-path for a cleaner, more professional look */
    clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
    
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Top Header Bar */
.frame-header {
    background: rgba(0, 229, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.file-path {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.7;
}

.window-controls span {
    display: inline-block;
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-left: 5px;
}

/* Main Body Styling */
.frame-body {
    padding: 50px;
}

.section-title {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: #fff;
}

.bio-content {
    display: flex;
    gap: 40px;                  /* Bigger gap between numbers and text */
}

.line-numbers {
    font-family: monospace;
    color: var(--accent);
    opacity: 0.3;
    font-size: 0.9rem;
    line-height: 2;
    text-align: right;
    -webkit-user-select: none;
    user-select: none;
}

.bio-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;          /* Slightly larger for readability */
    line-height: 1.8;
    color: #ccc;
    flex: 1;                    /* Ensures text fills the frame properly */
}


.bio-text::after {
    content: '_';
    animation: blink 1s infinite;
    color: #00e5ff;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.highlight {
    color: #00e5ff; /* Matches your cyan tech color */
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: 0.3s ease;
}

.highlight:hover {
    color: #fff;
    text-shadow: 0 0 20px #00e5ff;
}

/* Bottom status bar */
.frame-footer {
    margin-top: 30px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.65rem;
    color: #555;
}

/* -----------------------------------------------------Skills Section---------------------------------------------------------- */

.skills-section {
    min-height: 100vh;           /* Forces it to take the full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;      /* Centers the whole 2x2 grid vertically */
    align-items: center;          /* Centers the whole 2x2 grid horizontally */
    padding: 80px 5% !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;                   /* Increased gap for breathing room */
    width: 100%;
    max-width: 1000px;           /* Increased to fill more screen */
}

.skill-category {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* border-left: 3px solid var(--accent); */
    padding: 45px;               /* More internal padding makes it feel premium */
    min-height: 300px;           /* Forces cards to be a uniform, large size */
    display: flex;
    flex-direction: column;
    justify-content: center;     /* Centers skill items inside the card */
    transition: all 0.4s ease;
}


.skill-category:hover {
    background: rgba(0, 229, 255, 0.02);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-10px); /* Slightly more lift */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.cat-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    letter-spacing: 2px;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.skill-item {
    margin-bottom: 30px;         /* More space between skills */
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #ccc;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 0; /* Animated via JS */
    background: linear-gradient(90deg, transparent, var(--accent));
    box-shadow: 0 0 10px var(--accent);
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

/* Add a grid pattern to the bar for a tech look */
.skill-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.5) 1px, transparent 1px);
    background-size: 4px 100%;
    z-index: 2;
}

/* --------------------------------------------------Experience Section--------------------------------------------------------- */
.experience-section {
    min-height: 100vh;           /* Forces full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;      /* Vertically centers the log */
    align-items: center;          /* Horizontally centers the log */
    padding: 80px 5% !important;
}

.terminal-frame {
    width: 100%;
    max-width: 960px;           /* Large, professional dashboard width */
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(0, 229, 255, 0.1);
    /* border-left: 3px solid var(--accent); Consistent vertical accent */
    
    /* Cleaned up clip-path for professional stability */
    clip-path: polygon(0 0, 98% 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}


.terminal-header {
    background: rgba(0, 229, 255, 0.1);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

/* Status light pulse */
.status-indicator {
    display: inline-block;
    width: 8px; height: 8px;
    background: #ff003c; /* Red dot like your image */
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #ff003c;
    animation: pulse 2s infinite;
}

.terminal-content {
    padding: 50px;               /* More room for the 'Log Entries' to breathe */
    font-family: 'JetBrains Mono', monospace;
}

.log-entry {
    display: flex;
    gap: 30px;                   /* Increased gap between logo and data */
    margin-bottom: 50px;         /* More space between different jobs */
    align-items: flex-start;
}

.log-entry.warning {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.error-text {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

.log-data {
    flex: 1;
}

.log-title {
    font-size: 1.3rem;           
    font-weight: 700;
    margin-bottom: 15px;
}

/* Timeline Graphic */
.log-line-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node {
    width: 10px; height: 10px;
    border: 2px solid var(--accent);
    background: #000;
    transform: rotate(45deg); /* Diamond shape */
}

.stem {
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin-top: 5px;
}

/* Text Styles */
.log-timestamp { color: #888; font-size: 0.85rem; margin-bottom: 5px; }
.loc { color: var(--accent); font-weight: bold; }
.log-title { font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.highlight { color: #ce9178; } /* Matching the VS Code theme color */

.log-details {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 15px;
    border-left: 1px solid #333;
}

.log-path { color: #4fc1ff; text-decoration: underline; opacity: 0.7; }
.error-text { color: #ff003c; font-weight: bold; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}


/* Logo Frame */
.logo-frame {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-right: 20px;
}

/* This filter makes the logo look like a tech HUD element */
.company-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* 1. Makes it monochrome 2. Colors it Cyan 3. Makes it glow */
    filter: grayscale(1) brightness(1.5) sepia(1) hue-rotate(140deg) saturate(5);
    transition: 0.3s ease;
}

.logo-frame:hover .company-logo-img {
    filter: brightness(2);
    transform: scale(1.1);
}

/* Techy Corners for the Logo */
.corner-top {
    position: absolute;
    top: -2px; left: -2px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.corner-bottom {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

/* --- NEW EXTENSIONS (Add to bottom) --- */

/* 1. Date Separator (>> between dates) */
.separator {
    color: var(--accent);
    padding: 0 10px;
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent);
}

/* 2. Section Labels (TASK_EXECUTION / CORE_DEPENDENCIES) */
.log-label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.8;
    margin-top: 15px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* 3. Responsibilities List */
.work-description ul {
    margin-top: 15px;
    margin-bottom: 25px;
}

.work-description li {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 6px;
    position: relative;
}

/* Bullet points as tech arrows */
.work-description li::before {
    content: ">";
    position: absolute;
    left: -15px;
    color: var(--accent);
    font-weight: bold;
}

/* 4. Technology Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tag {
    font-size: 0.6rem;
    font-family: 'Consolas', monospace;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    transition: 0.3s;
}

.tag:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent);
    border-color: #fff;
}

/* ---------------------------------------------------Project cards section----------------------------------------------------------- */
.projects-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 5% !important;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Wider cards for detail */
    gap: 40px;
    width: 100%;
    max-width: 960px;
}


.project-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(0, 229, 255, 0.1);
    /* Matching the 'Terminal' cut from previous sections */
    clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%); 
    transition: all 0.4s ease, border-color 0.4s ease;
}


.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


.project-preview {
    position: relative;
    width: 100%;
    height: 220px;           /* Standardized height for all project images */
    overflow: hidden;
    background: #000;        /* Background for when image is glitching */
    border-bottom: 1px solid var(--border);
}


.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Ensures images aren't stretched */
    filter: grayscale(0.8) contrast(1.2); /* Muted tech look by default */
    transition: 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Chromatic Aberration Glitch on Hover */
.project-card:hover .project-img {
    filter: grayscale(0) contrast(1);
    animation: glitch-flicker 0.2s infinite; /* Uses your existing flicker anim */
}

/* Creating the Glitch Layers (Red/Cyan shift) */
.project-preview::before,
.project-preview::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: inherit; /* This pulls the image from the container if set, 
                            but we will use a filter trick instead */
    z-index: 1;
    opacity: 0;
}

/* mobile view */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-preview {
        height: 200px; /* Slightly shorter for phone screens */
    }
}


/* Scanning Bar Animation */
.scan-bar {
    position: absolute;
    width: 100%; height: 2px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    z-index: 5;
    top: 0;
    animation: project-scan 3s infinite linear;
    opacity: 0.1;
}

@keyframes project-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Project Info Area */
.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.project-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    font-weight: bold;
    gap: 15px;
}

.github {
    border-color: #555 !important;
    color: #888 !important;
}

.github:hover {
    border-color: #fff !important;
    color: #fff !important;
}


/* --- CINEMATIC MODAL --- */
.play-demo {
    background: rgba(0, 229, 255, 0.1) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    font-weight: bold;
}

.play-demo:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--accent);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 20000; /* Stays above navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.modal-overlay:not(.hidden) .modal-frame {
    transform: scale(1);
}

.modal-frame {
    width: 90%;
    max-width: 900px;
    background: #050505;
    border: 0.5px solid var(--accent);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    background: rgba(0, 229, 255, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-container::before {
    content: "INITIALIZING_STREAM...";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 0.8rem;
    z-index: 1;
    animation: fadeOut 1.5s forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

#demo-video {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 70vh
}

#project-video {
    width: 100%;
    height: 100%;
}


/* Horizontal Scanning bar over the video */
.video-scanner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 10px var(--accent);
    z-index: 10;
    pointer-events: none;
    animation: modal-scan 4s linear infinite;
}


.modal-footer {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.6rem;
    color: #444;
}

/* Moving scan line over the video */
.scanner-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    opacity: 0.1;
    box-shadow: 0 0 10px var(--accent);
    animation: modal-scan 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes modal-scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.close-btn {
    background: transparent;
    border: none;
    color: #ff003c;
    cursor: pointer;
    font-weight: bold;
}

/* ------------------------------------------------------Education section----------------------------------------------------- */
.education-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;        /* Horizontally centers the timeline */
    padding: 80px 5% !important;
}

.edu-timeline {
    width: 100%;
    max-width: 960px;         /* Now it fills the same space as Skills/Experience */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Vertical Timeline Line */
.edu-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- MINIMALIST TIMELINE INDICATORS --- */

.edu-dot {
    width: 3px;              /* Much thinner than the diamond */
    height: 20px;            /* Vertical bar style */
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    border-radius: 2px;
    transition: 0.3s ease;
}

.edu-line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05); /* Very subtle line */
    margin-top: 5px;
}

/* On hover of the card, the indicator bar "powers up" */
.edu-module:hover .edu-dot {
    height: 40px;            /* Expands slightly */
    box-shadow: 0 0 20px var(--accent);
    background: #fff;        /* Turns white for high-contrast focus */
}

.edu-module {
    display: flex;
    gap: 40px;                 /* Increased gap for a more open feel */
    width: 100%;
}


/* The Academic Card */
.edu-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 45px !important; /* Premium internal padding */
    flex: 1;                   /* Forces card to fill the available width */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.edu-card:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 15px;
}

.edu-status { color: var(--accent); }

.degree-title {
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.institution {
    font-size: 0.9rem;
    color: var(--accent);
    font-family: monospace;
    margin-bottom: 15px;
}

.edu-details {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Academic Score Display */
.edu-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.score-label {
    font-family: monospace;
    font-size: 0.7rem;
    color: #555;
}

.score-value {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 0 10px var(--accent);
}


/* ----------------------------------------------------- contact section ------------------------------------------------------------ */
.contact-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;      /* Centers vertically */
    align-items: center;          /* Centers horizontally */
    padding: 80px 5% !important;
}


/* .contact-frame {
    width: 100%;
    max-width: 1000px;         
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    
    clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%); 
    
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
} */

.contact-frame {
    width: 100%;
    max-width: 1000px;           /* Matches header width */
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(0, 229, 255, 0.1);
    
    /* Cleaned cinematic cut */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    
    -webkit-backdrop-filter: none;
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}


.uplink-form {
    padding: 60px 80px;         /* Increased padding for a premium, spacious feel */
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 3px;
    opacity: 0.8;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2); /* Subtle cyan bottom line */
    padding: 18px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    background: rgba(0, 229, 255, 0.03);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.1);
}

/* Transmit Button */
/* --- TRANSMIT BUTTON ENHANCEMENT --- */
/* Progress Bar Styling */
#status-container {
    margin-bottom: 20px;
    font-family: monospace;
}

#status-container.hidden { display: none; }

.status-text {
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.2s;
}

/* Button Glow Effect */
.transmit-btn {
    position: relative;
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

.transmit-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.2);
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

/* Shimmer animation on hover */
.btn-glow-layer {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.transmit-btn:hover .btn-glow-layer {
    left: 100%;
}

/* mobile view */
@media (max-width: 768px) {
    .uplink-form {
        padding: 40px 20px;
    }
    .contact-frame {
        clip-path: none; /* Better for mobile touch area */
    }
}


/* -----------------------------------------------------Footer Style------------------------------------------------------------ */
.tech-footer {
    width: 100%;
    /* Removed the 100px margin-top to close the gap */
    margin-top: 20px; 
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Fading top border to match the section dividers */
    border-top: 1px solid rgba(0, 229, 255, 0.05); 
    background: transparent;
}

.relays-container {
    display: flex;
    align-items: center; /* Locks label and chips on the same vertical line */
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

.relays-prefix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444; /* Dimmed technical grey */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.link-chips {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 12px;
    justify-content: center;
}

.chip {
    text-decoration: none;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 2px solid #333; /* The "Inactive" indicator */
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.chip-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    margin: 0 6px;
    letter-spacing: 1px;
}

.chip-bracket {
    color: #333;
    font-weight: bold;
    transition: 0.3s;
}

/* --- THE PROFESSIONAL HOVER --- */

.chip:hover {
    background: rgba(0, 229, 255, 0.05);
    border-left: 2px solid var(--accent); /* Lights up the indicator */
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-3px); /* Subtle lift instead of horizontal shift */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.chip:hover .chip-text {
    color: #fff;
    text-shadow: 0 0 8px var(--accent);
}

.chip:hover .chip-bracket {
    color: var(--accent);
}

/* Footer Bottom Info */
.footer-legal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #222; /* Very subtle so it doesn't compete for attention */
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.6;
}

/* mobile view */
@media (max-width: 768px) {
    .relays-container {
        flex-direction: column;
        gap: 20px;
    }
    .link-chips {
        gap: 10px;
    }
    .chip {
        padding: 8px 12px;
    }
}
/*------------------------------------------------------- Navbar effects----------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 5, 5, 0.8); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    z-index: 10000;
    
    /* Centering the container */
    display: flex;
    justify-content: center; 
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1300px; /* Your defined width */
    margin: 0 auto;
    display: flex;
    /* This is the standard way to push items to opposite ends */
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo-bracket {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.logo-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}


.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    /* THE TRICK: This pushes the links as far right as possible */
    margin-left: auto; 
    /* Ensure no fixed width is stopping it */
    width: auto;
}

.nav-link {
     font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; /* Small technical font size */
    color: #888; /* Dull grey by default */
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent);
}

/* --- SCROLLED STATE (Add via JS) --- */
nav.scrolled {
    height: 60px;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------- MOBILE NAVIGATION LOGIC -------------------------------------------------------- */

/* --- ENHANCED MOBILE VIEW --- */

@media (max-width: 768px) {
    /* 1. Ensure the Nav stays fixed and clean */
    nav {
        height: 60px; /* Smaller for mobile */
        padding: 0 20px;
    }

    .nav-logo {
        font-size: 0.9rem;
        z-index: 1100; /* Stays above the menu */
    }

    /* 2. THE HAMBURGER (More precise tech look) */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        z-index: 1100;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 2px;
        background-color: var(--accent);
        box-shadow: 0 0 8px var(--accent);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform-origin: center;
    }

    /* 3. THE SYSTEM OVERLAY (The Menu) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98); /* Deep cinematic black */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    /* 4. MOBILE MENU LINKS (JetBrains Mono style) */
    .nav-link {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.1rem !important;
        color: #fff;
        letter-spacing: 5px;
        text-decoration: none;
        opacity: 0;
        transform: translateX(20px);
        transition: 0.4s ease;
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateX(0);
        /* Staggered entrance animation for links */
        transition-delay: calc(0.1s * var(--i)); 
    }

    /* 5. HAMBURGER TO X TRANSITION */
    #mobile-menu.is-active .bar:nth-child(2) { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    #mobile-menu.is-active .bar:nth-child(1) { 
        transform: translateY(7px) rotate(45deg); 
    }
    #mobile-menu.is-active .bar:nth-child(3) { 
        transform: translateY(-7px) rotate(-45deg); 
    }
}



/*///////////////////////////////////////////////// Section styling //////////////////////////////////////////////////////*/
/* --- UNIVERSAL SECTION FRAMEWORK --- */

section {
    width: 100%;
    /* This is the key: At least one full screen height */
    min-height: 100vh; 
    
    /* 100px padding at top ensures titles are below fixed Navbar */
    padding: 100px 10% 80px 10% !important; 
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Title stays at the top */
    align-items: flex-start;
    
    position: relative;
    border-bottom: 1px solid rgba(0, 229, 255, 0.05);
    overflow: hidden;
}

/* Ensure the Hero section doesn't have a top line */
#home {
    border-top: none;
    min-height: 100vh;
}

/* --- THE SECTION HEADLINE (PROFESSIONAL & VISIBLE) --- */

.section-header {
    width: 100%;
    max-width: 1100px;          /* Same width as the frame for perfect alignment */
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-index {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: bold;
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 8px;
}

.header-label {
    color: #444; /* Dim prefix */
    font-size: 0.8rem;
    letter-spacing: 3px;
}

.white-text {
    color: #fff; /* High visibility for the actual section name */
    font-weight: 700;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.2), transparent);
}

#contact {
    justify-content: center; /* Centers the form in the 100vh block */
}

/* --- MOBILE ADJUSTMENTS --- */

@media (max-width: 768px) {
    section {
        padding: 80px 5% 50px 5% !important; /* Smaller gaps for phones */
    }

    .section-header {
        margin-bottom: 30px;
    }
    
    .header-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}


/* ----------------------------------------------------Mobile Adjustments------------------------------------------------------ */
/* --- THE MASTER MOBILE ALIGNMENT FIX --- */

@media (max-width: 768px) {

    /* Preloader */
    #loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 1000; display: flex; flex-direction: column;
    justify-content: center; align-items: center; transition: 1s ease;
    }

    .brain-container { position: relative; width: 150px; margin-bottom: 20px; }
    .brain-icon { width: 100%; filter: drop-shadow(0 0 10px var(--accent)); }
    .scan-line {
        position: absolute; top: 0; left: 0; width: 100%; height: 2px;
        background: var(--accent); box-shadow: 0 0 15px var(--accent);
        animation: scan 2s infinite ease-in-out;
    }

    /* 1. Global Section Reset */
    section {
        padding: 80px 6% 40px 6% !important; /* Balanced side gaps */
        min-height: auto !important;         /* Allow sections to grow with content */
        height: auto !important;
        display: flex;
        flex-direction: column !important;   /* Force everything to stack vertically */
        align-items: center !important;      /* Center everything horizontally */
        justify-content: flex-start !important;
        overflow: hidden;
    }

    /* Name styleing */
    /* 1. Remove the container styling */
    .sys-label0 {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 10px !important;
    }

    /* 2. REMOVE THE LINES (The vertical one on left and horizontal on right) */
    .sys-label0::before,
    .sys-label0::after {
        display: none !important;
        content: none !important;
    }

    /* 3. Ensure "FULLNAME:" and "MAHESH BABU N" are on the same line */
    .sys-label0 {
        flex-direction: row !important; 
        gap: 8px;
        font-family: 'JetBrains Mono', monospace;
    }

    /* 4. Formatting the text to look clean */
    .sys-label0 .white-text {
        white-space: nowrap; /* Forces name to stay on one line */
        letter-spacing: 1px;
        font-size: 0.75rem;
    }


    /* 2. Hero Section Alignment */
    .home-section {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        padding-top: 120px !important;
        gap: 0; /* We will use margins for better control */
    }

    .hero-content {
        width: 100%;
       display: contents;
        flex-direction: column;
        align-items: center !important; /* Center text and buttons */
        text-align: center !important;
        margin-bottom: 40px;
    }

    .home-section h1 {
        display: none;
    }

    .hero-image-area {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .glitch-container {
        width: 280px !important; /* Smaller size for mobile screens */
        height: 280px !important;
    }



    /* 3. About Section Fix */
    .data-frame {
        width: 100% !important;
        max-width: none;
        clip-path: none !important;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.01);
    }

    .bio-content {
        /* 2. Smaller, tighter padding for the actual text area */
        padding: 15px 12px !important; 
        gap: 0 !important;
        display: block !important; /* Simple block layout for mobile */
    }

    .line-numbers {
        display: none; 
    }

    .bio-text {
        font-size: 0.92rem; /* Slightly smaller to fit more words per line */
        text-align: left;
        line-height: 1.5;
        color: #ccc;
        margin: 0;
        width: 100%;
    }


    /* 4. Skills Grid Fix (1 column) */
    .skills-grid {
        grid-template-columns: 1fr !important; /* Switch from 2x2 to 1x1 */
        width: 100%;
        gap: 20px;
    }

    .skill-category {
        padding: 25px !important;
        min-height: auto !important;
    }

    /* 5. Experience Section Fix */
    .terminal-frame {
        width: 100% !important;
        clip-path: none !important;
    }

    .terminal-content {
        padding: 20px !important;
    }

    .log-entry {
        flex-direction: column !important; /* Stack logo above description */
        align-items: flex-start;
        gap: 15px;
    }

    /* 6. Projects Section Fix */
    /* 1. Fix the Parent Section: This is the critical alignment anchor */
    /* --- 1. THE CINEMATIC CONTAINER --- */
    .projects-section {
        padding: 60px 20px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-grid {
        display: flex;
        flex-direction: column;
        gap: 45px; /* Significant gap between project modules */
        width: 100%;
        max-width: 400px;
    }

    /* --- 2. THE TACTICAL MODULE (CARD) --- */
     .project-card {
        width: 100% !important;
        background: rgba(10, 10, 10, 0.9) !important;
        border: 1px solid rgba(0, 229, 255, 0.1) !important;
        
        /* A sharp technical cut on top-right and bottom-left */
        clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
        
        /* Thick left border for a "Data Folder" look */
        /* border-left: 4px solid var(--accent) !important; */
        
        display: flex;
        flex-direction: column;
        padding: 0 !important; /* Reset padding to control internal spacing */
        overflow: hidden;

        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        border: 1px solid rgba(0, 229, 255, 0.1) !important; /* Dull by default */
        position: relative;
    }

    .project-card:hover {
        /* Make the border line bright */
        border-color: var(--accent) !important;
        
        /* Create the "Holographic Glow" around the shape */
        /* drop-shadow works perfectly with angled clip-paths */
        /* filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6)); */
        
        /* Professional lift effect */
        transform: translateY(-8px);
        
        /* Subtle internal background glow */
        background: rgba(0, 229, 255, 0.03) !important;
    }

    .project-card:hover .project-img {
        filter: brightness(1) contrast(1);
        opacity: 1;
    }

    /* THE HUD CORNER BRACKETS */
    .project-card::before, .project-card::after {
        content: "";
        position: absolute;
        width: 20px; height: 20px;
        border: 2px solid var(--accent);
        z-index: 10;
        pointer-events: none;
    }
    .project-card::before { top: -5px; left: -5px; border-right: none; border-bottom: none; }
    .project-card::after { bottom: -5px; right: -5px; border-left: none; border-top: none; }


    /* Moving Scanline Animation */
    .project-preview {
        width: 100% !important;
        aspect-ratio: 1.85 / 1 !important; /* Cinematic ratio */
        border-bottom: 1px solid var(--accent);
        position: relative;
    }

    @keyframes mobile-scan {
        0% { top: -10%; }
        50% { top: 110%; }
        100% { top: -10%; }
    }

    .project-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        filter: brightness(0.8) contrast(1.2);
    }

    /* --- 4. TEXT CONTENT REFINEMENT --- */
    .project-info {
        padding: 30px 20px !important;
        text-align: center;
    }

    .project-preview::after {
        height: 3px;
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
        animation: mobile-scan 3s linear infinite;
    }

    .project-title {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.2rem;
        letter-spacing: 2px;
        color: #fff;
        margin-bottom: 15px;
    }

    .project-desc {
        font-size: 0.85rem;
        line-height: 1.6;
        color: #888;
        margin-bottom: 25px;
        /* Subtle vertical line next to description */
        border-left: 1px solid rgba(0, 229, 255, 0.2);
        padding-left: 15px;
    }

    /* --- 5. TECH TAGS & BUTTONS --- */
    .tech-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 35px !important; /* CRITICAL GAP before buttons */
    }

    .tag {
        background: rgba(0, 229, 255, 0.05) !important;
        border: 1px solid rgba(0, 229, 255, 0.3) !important;
        font-size: 0.6rem !important;
        color: var(--accent) !important;
        padding: 4px 8px !important;
        border-radius: 0; /* Modern sharp corners */
    }

    .project-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }


    .view-btn1 {
        width: 100% !important;
        text-align: center;
        padding: 15px 0 !important;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.75rem !important;
        font-weight: bold;
        letter-spacing: 2px;
        margin: 0 !important;
    }
    
    .github0 {
        background: transparent !important;
        border: 1px solid #444 !important;
        color: #aaa !important;
    }

    .view-btn1:not(.github0) {
        background: var(--accent) !important;
        color: #000 !important;
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    }

    /* 1. --------------Fix the Header/Badge (FULLNAME)----------- */
    .sys-label0 {
        order:2;
        width: 100% !important;
        max-width: 320px;
        padding: 10px 15px !important;
        justify-content: center;
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
        background: rgba(0, 229, 255, 0.05) !important;
    }

    /* 2. Fix SOFTWARE_ENGINEER Clipping */

    /* 3. Fix Active Roles Clipping */
    .role-wrapper {
        font-size: 0.85rem !important;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 15px !important;
        order: 3; 
    }

    /* 4. Subtitle Spacing */
    .subtitle {
        font-size: 0.7rem !important;
        line-height: 1.5;
        padding: 0 10%;
        margin-bottom: 10px !important;
        color: #888;
        max-width: 100%;
        order: 4; 
    }

    /* 5. Uniform Buttons */
    .cta-group {
        display: flex;
        flex-direction: column !important; /* Stack vertically */
        align-items: center;
        width: 100%;
        order: 5; 
        gap: 10px;
        padding-bottom: 50px;
    }

    .view-btn, .secondary-btn {
        width: 100% !important;
        max-width: 280px;
        text-align: center;
        padding: 15px !important;
        margin: 0 !important;
        display: block;
        font-size: 0.75rem !important;
    }

    /* Make both buttons look like professional system buttons */
    .secondary-btn {
        border: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        text-decoration: none;
        background: rgba(255,255,255,0.02);
    }

    /* 6. Profile Photo Gap */
    .hero-image-area {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        order: 1; 
        margin-bottom: 30px !important; 
    }

    .glitch-container {
        width: 250px !important;
        height: 250px !important;
    }


    /* --------------------Education Section-------------------------- */
    .education-section {
        padding: 60px 20px !important;
        display: flex;
        flex-direction: column;
        align-items: center;         /* Centers the timeline horizontally */
    }

    .edu-timeline {
        width: 100%;
        max-width: 960px;         /* Now it fills the same space as Skills/Experience */
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Vertical Timeline Line */
    .edu-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* --- MINIMALIST TIMELINE INDICATORS --- */

    .edu-dot {
        display:none;
    }

    .edu-line {
        display: none;
    }

    .edu-module {
        width: 100%;
        max-width: 350px;           /* Perfect width for phone screens */
        justify-content: center;     /* Centers the card inside the module */
        gap: 0 !important;
        margin-bottom: 35px;
    }

    /* The Academic Card */
    .edu-card {
        width: 100% !important;
        margin: 0 auto !important;   /* THE MAGIC FIX for centering */
        padding: 25px 20px !important;
        
        /* Remove the angled cut for stable mobile alignment */
        clip-path: none !important; 
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.01);
        
        text-align: center;          /* Optional: Centers text inside the card */
        display: flex;
        flex-direction: column;
        align-items: center;         /* Centers the contents inside the card */
    }

    .edu-card:hover {
        border-color: var(--accent);
        background: rgba(0, 229, 255, 0.05);
    }

    .edu-header {
            width: 100%;
            justify-content: center !important;
            gap: 10px;
            margin-bottom: 15px;
        }

    .edu-status { color: var(--accent); }

    .degree-title {
        font-size: 0.8rem;
        color: #fff;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }

    .institution {
        font-size: 0.9rem;
        color: var(--accent);
        font-family: monospace;
        margin-bottom: 15px;
    }

    .edu-details {
        color: #888;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Academic Score Display */
    .edu-footer {
            width: 100%;
            justify-content: center !important;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 15px;
        }

    .score-label {
        font-family: monospace;
        font-size: 0.7rem;
        color: #555;
    }

    .score-value {
        font-family: 'Orbitron', sans-serif;
        color: #fff;
        font-size: 1rem;
        text-shadow: 0 0 10px var(--accent);
    }


    /* --------------------------------------------Experience Section-------------------------------------------------- */

    .terminal-content {
        padding: 20px 15px !important;
    }

    /* 2. Soften the Dates/Timestamps */
    .log-timestamp {
        font-size: 0.65rem !important; /* Smaller and more technical */
        color: #666 !important;         /* Dimmer color */
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .separator {
        font-size: 0.6rem;
        opacity: 0.5;
    }

    /* 3. Refine the Role Title */
    .log-title {
        font-size: 0.95rem !important; /* Significantly smaller */
        line-height: 1.4;
        font-weight: 700;
        margin-bottom: 15px;
        color: #eee;
    }

    .log-title .highlight {
        font-size: 1rem;
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.3); /* Softer glow */
    }

    /* 4. Soften the Work Description */
    .work-description .log-label {
        font-size: 0.6rem;
        margin-bottom: 8px;
        opacity: 0.5;
    }

    .work-description ul {
        padding-left: 12px; /* Less indentation */
    }

    .work-description li {
        font-size: 0.8rem !important; /* Smaller, easier to read */
        line-height: 1.6;             /* More space between lines */
        color: #999 !important;       /* Greyer, softer text */
        margin-bottom: 8px;
    }

    .work-description li::before {
        font-size: 0.7rem;
        left: -12px;
        opacity: 0.6;
    }

    /* 5. Minimalist Tech Tags */
    .tech-dependencies .log-label {
        font-size: 0.6rem;
        margin-top: 15px;
        opacity: 0.5;
    }

    .tech-tags {
        gap: 5px;
        margin-top: 8px;
    }

    .tag {
        font-size: 0.55rem !important; /* Tiny technical labels */
        padding: 2px 6px !important;
        background: transparent !important;
        border: 1px solid rgba(0, 229, 255, 0.2) !important;
        color: var(--accent) !important;
        border-radius: 2px;
    }

    /* 6. Professional Logo Size */
    .logo-frame {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }

}