/* ===========================================
   CSS STRUCTURE - TABLE OF CONTENTS
   ===========================================
   1. RESET & VARIABLES
   2. BACKGROUND EFFECTS
   3. TYPOGRAPHY
   4. LAYOUT & CONTAINERS
   5. HEADER & NAVIGATION
   6. SECTIONS
      - Home
      - Skills
      - Projects
      - Experience
      - Achievements
      - Contact
   7. COMPONENTS
      - Buttons
      - Cards
      - Forms
      - Terminal
      - Stats & Badges
   8. ANIMATIONS
   9. RESPONSIVE DESIGN
   =========================================== */

/* ========== 1. RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff88;
    --secondary: #0088ff;
    --accent: #ff0088;
    --cyan: #00ffff;
    --violet: #ff00ff;
    --orange: #ffa500;
    --darker: #050505;
    --light: #f0f0f0;
    --gray: #222222;
    --gray-light: #444444;
    --terminal-bg: #1a1a1a;
    --warning-yellow: #ffff00;
    --red :#880808;
}

/* ========== 2. BACKGROUND EFFECTS ========== */
body {
    background-color: #000000;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Matrix rain effect overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 95%, rgba(0, 255, 136, 0.05) 100%),
        linear-gradient(90deg, transparent 95%, rgba(0, 255, 136, 0.05) 100%),
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 
        100% 20px,
        20px 100%,
        30px 30px,
        30px 30px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.2;
}

/* Animated circuit board pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 136, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 90% 40%, rgba(0, 136, 255, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 50% 90%, rgba(255, 0, 136, 0.15) 0%, transparent 70%);
    background-size: 100% 100%;
    z-index: -3;
    pointer-events: none;
}

/* Binary code scrolling in the background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: rgba(0, 255, 255, 0.1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Hexagonal grid background */
.hex-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%),
        repeating-linear-gradient(60deg, 
            transparent, 
            transparent 20px, 
            rgba(0, 255, 255, 0.03) 20px,
            rgba(0, 255, 255, 0.03) 40px),
        repeating-linear-gradient(-60deg, 
            transparent, 
            transparent 20px, 
            rgba(0, 136, 255, 0.03) 20px,
            rgba(0, 136, 255, 0.03) 40px);
}

/* ========== 3. TYPOGRAPHY ========== */
code, .terminal {
    font-family: 'JetBrains Mono', monospace;
}

/* ========== 4. LAYOUT & CONTAINERS ========== */
section {
    min-height: 100vh;
    padding: 8rem 5% 5rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.heading {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--cyan), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--primary), transparent);
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--cyan);
    max-width: 600px;
    margin: 2rem auto 0;
    opacity: 0.9;
}

/* ========== 5. HEADER & NAVIGATION ========== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

.logo::after {
    content: '_';
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    transition: all 0.3s ease;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--cyan);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

/* Contact Button */
.contact-btn {
    background: linear-gradient(45deg, var(--cyan), var(--primary));
    color: var(--darker) !important;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, var(--primary), var(--violet));
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 2.4rem;
    color: var(--cyan);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
    background: rgba(0, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* ========== 6. SECTIONS ========== */

/* ===== 6.1 HOME SECTION ===== */
.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding-top: 10rem;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    color: var(--orange);
    padding: 0.8rem 1.6rem;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.home-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
}

.gradient-text {
    background: linear-gradient(45deg, var(--cyan), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--primary));
    opacity: 0.5;
}

.home-subtitle {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.home-description {
    font-size: 1.6rem;
    color: var(--light);
    margin-bottom: 3rem;
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
}

/* ===== 6.2 SKILLS SECTION ===== */
.skill-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Default title colors */
.skill-category:nth-child(1) h3 {
    color: var(--orange) !important;
}

.skill-category:nth-child(2) h3 {
    color: var(--cyan) !important;
}

.skill-category:nth-child(3) h3 {
    color: var(--violet) !important;
}

/* Default icon colors */
.skill-category:nth-child(1) h3 i {
    color: var(--orange) !important;
}

.skill-category:nth-child(2) h3 i {
    color: var(--cyan) !important;
}

.skill-category:nth-child(3) h3 i {
    color: var(--violet) !important;
}

/* Default skill bars */
.skill-category:nth-child(1) .skill-level {
    background: var(--orange);
}

.skill-category:nth-child(2) .skill-level {
    background: var(--cyan);
}

.skill-category:nth-child(3) .skill-level {
    background: var(--violet);
}

/* Default pulse effect colors */
.skill-category:nth-child(1) .skill-level::after {
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange);
}

.skill-category:nth-child(2) .skill-level::after {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.skill-category:nth-child(3) .skill-level::after {
    background: var(--violet);
    box-shadow: 0 0 10px var(--violet);
}

/* Programming category */
.skill-category:nth-child(1):hover .skill-level {
    background: linear-gradient(90deg, var(--orange), var(--primary));
}

.skill-category:nth-child(1):hover {
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2);
}

.skill-category:nth-child(1):hover h3,
.skill-category:nth-child(1):hover h3 i {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Cybersecurity category */
.skill-category:nth-child(2):hover .skill-level {
    background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.skill-category:nth-child(2):hover {
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.skill-category:nth-child(2):hover h3,
.skill-category:nth-child(2):hover h3 i {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Database & App category */
.skill-category:nth-child(3):hover .skill-level {
    background: linear-gradient(90deg, var(--violet), var(--primary));
}

.skill-category:nth-child(3):hover {
    border-color: var(--violet);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.skill-category:nth-child(3):hover h3,
.skill-category:nth-child(3):hover h3 i {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Base styles */
.skill-category {
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--cyan), var(--violet));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.skill-category h3 i {
    transition: all 0.3s ease;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-item span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.skill-bar {
    height: 8px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.skill-level::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Update pulse effect colors on hover */
.skill-category:nth-child(1):hover .skill-level::after {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.skill-category:nth-child(2):hover .skill-level::after {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.skill-category:nth-child(3):hover .skill-level::after {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyan);
    padding: 0.8rem 1.6rem;
    border-radius: 20px;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ===== 6.3 PROJECTS SECTION ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Project 1 - Cyan on hover */
.project-card:nth-child(1):hover {
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.project-card:nth-child(1):hover h3,
.project-card:nth-child(1):hover .project-tech {
    color: var(--cyan);
}

.project-card:nth-child(1):hover .project-icon {
    background: linear-gradient(45deg, var(--cyan), #00ccff);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.project-card:nth-child(1):hover .project-features span {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Project 2 - Violet on hover */
.project-card:nth-child(2):hover {
    border-color: var(--violet);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.3);
}

.project-card:nth-child(2):hover h3,
.project-card:nth-child(2):hover .project-tech {
    color: var(--violet);
}

.project-card:nth-child(2):hover .project-icon {
    background: linear-gradient(45deg, var(--violet), #cc00ff);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

.project-card:nth-child(2):hover .project-features span {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--violet);
    color: var(--violet);
}

/* Project 3 - Green on hover */
.project-card:nth-child(3):hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
}

.project-card:nth-child(3):hover h3,
.project-card:nth-child(3):hover .project-tech {
    color: var(--primary);
}

.project-card:nth-child(3):hover .project-icon {
    background: linear-gradient(45deg, var(--primary), #00cc66);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.project-card:nth-child(3):hover .project-features span {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Project 4 - Orange on hover */
.project-card:nth-child(4):hover {
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.3);
}

.project-card:nth-child(4):hover h3,
.project-card:nth-child(4):hover .project-tech {
    color: var(--orange);
}

.project-card:nth-child(4):hover .project-icon {
    background: linear-gradient(45deg, var(--orange), #ffb347);
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.5);
}

.project-card:nth-child(4):hover .project-features span {
    background: rgba(255, 165, 0, 0.2);
    border-color: var(--orange);
    color: var(--orange);
}

.project-card {
    background: rgba(255, 165, 0, 0.05);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 12px;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--cyan), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--darker);
    font-size: 2.4rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: rotate(360deg);
}

.project-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.project-icon:hover::before {
    left: 100%;
}

.project-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--cyan);
    transition: all 0.3s ease;
}

.project-tech {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-desc {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-features span {
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.project-features span:hover {
    transform: translateY(-2px);
}

/* ===== 6.4 EXPERIENCE SECTION ===== */
.timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--primary));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.timeline:hover::before {
    background: linear-gradient(to bottom, var(--primary), var(--violet));
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    transition: all 0.3s ease;
}

/* First timeline item - Green on hover */
.timeline-item:nth-child(1):hover .timeline-content::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--orange), 0 0 10px var(--primary), 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-item:nth-child(1):hover .timeline-date {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.timeline-item:nth-child(1):hover .timeline-badge {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
    color: var(--orange);
}

.timeline-item:nth-child(1):hover .timeline-content h3,
.timeline-item:nth-child(1):hover .company {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.timeline-item:nth-child(1):hover .responsibilities span {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
    color: var(--orange);
}

/* Second timeline item - Violet on hover */
.timeline-item:nth-child(2):hover .timeline-content::before {
    background: var(--violet);
    box-shadow: 0 0 0 3px var(--violet), 0 0 10px var(--violet), 0 0 20px rgba(255, 0, 255, 0.5);
}

.timeline-item:nth-child(2):hover .timeline-date {
    color: var(--warning-yellow);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.timeline-item:nth-child(2):hover .timeline-badge {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--violet);
    color: var(--warning-yellow);
}

.timeline-item:nth-child(2):hover .timeline-content h3,
.timeline-item:nth-child(2):hover .company {
    color: var(--warning-yellow);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.timeline-item:nth-child(2):hover .responsibilities span {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--violet);
    color: var(--warning-yellow);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-date {
    width: 80px;
    padding-right: 1rem;
    text-align: right;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.timeline-content {
    flex: 1;
    padding-left: 3rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--violet);
    border: 4px solid var(--darker);
    box-shadow: 0 0 0 3px var(--cyan), 0 0 10px var(--cyan);
    transition: all 0.3s ease;
}

.timeline-badge {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyan);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.timeline-badge:hover {
    transform: scale(1.05);
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.company {
    font-size: 1.6rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.details {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.responsibilities {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.responsibilities span {
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.3rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.responsibilities span:hover {
    transform: translateY(-2px);
}

/* Third timeline item */
.timeline-item:nth-child(3):hover .timeline-content::before {
    background: var(--violet);
    box-shadow: 0 0 0 3px var(--violet), 0 0 10px var(--violet), 0 0 20px rgba(255, 0, 255, 0.5);
}

.timeline-item:nth-child(3):hover .timeline-date {
    color: var(--orange);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.timeline-item:nth-child(3):hover .timeline-badge {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--violet);
    color: var(--orange);
}

.timeline-item:nth-child(3):hover .timeline-content h3,
.timeline-item:nth-child(3):hover .company {
    color: var(--orange);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.timeline-item:nth-child(3):hover .responsibilities span {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--violet);
    color: var(--orange);
}

/* Fourth timeline item */
.timeline-item:nth-child(4):hover .timeline-content::before {
    background: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan), 0 0 10px var(--cyan), 0 0 20px rgba(0, 255, 255, 0.5);
}

.timeline-item:nth-child(4):hover .timeline-date {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-item:nth-child(4):hover .timeline-badge {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent);
    color: var(--cyan);
}

.timeline-item:nth-child(4):hover .timeline-content h3,
.timeline-item:nth-child(4):hover .company {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.timeline-item:nth-child(4):hover .responsibilities span {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent);
    color: var(--cyan);
}

/* ===== 6.5 ACHIEVEMENTS SECTION ===== */
.cyber-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Specific icon colors */
.cyber-header i.fa-bug,
.cyber-header i.fa-tools,
.cyber-header i.fa-certificate,
.cyber-header i.fa-desktop {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Title icons change on hover */
.cyber-card:hover .cyber-header i.fa-bug,
.cyber-card:hover .cyber-header i.fa-tools,
.cyber-card:hover .cyber-header i.fa-certificate,
.cyber-card:hover .cyber-header i.fa-desktop {
    color: var(--orange) !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}

/* Subtitle icons */
.tool-item i.fa-terminal,
.tool-item i.fa-search,
.tool-item i.fa-bomb,
.cyber-stat i.fa-flag,
.cyber-stat i.fa-clock,
.contact-header i.fa-user-secret {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

/* Green decorative section icons */
.green-stat i.fa-shield-alt,
.green-stat i.fa-code,
.green-stat i.fa-chart-line,
.green-stat i.fa-users {
    color: var(--cyan) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Green decorative boxes */
.green-stat:hover {
    transform: translateY(-5px);
    border-color: var(--violet) !important;
    box-shadow: 0 10px 20px rgba(255, 0, 255, 0.3) !important;
    background: rgba(255, 0, 255, 0.1) !important;
}

.green-stat:hover h4 {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

.green-stat:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* But icons stay cyan on hover */
.green-stat:hover i.fa-shield-alt,
.green-stat:hover i.fa-code,
.green-stat:hover i.fa-chart-line,
.green-stat:hover i.fa-users {
    color: var(--cyan) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Main card */
.cyber-card.main-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4);
}

.cyber-card.main-card:hover .cyber-header h3 {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}

/* Security Tools card */
.cyber-card:nth-child(2):hover {
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.cyber-card:nth-child(2):hover .cyber-header h3,
.cyber-card:nth-child(2):hover .tool-item strong {
    color: var(--orange) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Keep subtitle icons violet even on hover */
.cyber-card:nth-child(2):hover .tool-item i.fa-terminal,
.cyber-card:nth-child(2):hover .tool-item i.fa-search,
.cyber-card:nth-child(2):hover .tool-item i.fa-bomb {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

.cyber-card:nth-child(2):hover .tool-item {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.15);
}

/* Certifications card */
.cyber-card:nth-child(3):hover {
    border-color: var(--violet);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.cyber-card:nth-child(3):hover .cyber-header h3 {
    color: var(--orange) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

/* Individual cert items */
.cyber-card:nth-child(3) .cert-item:nth-child(1):hover {
    border-color: var(--violet) !important;
}

.cyber-card:nth-child(3) .cert-item:nth-child(1):hover h5 {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

.cyber-card:nth-child(3) .cert-item:nth-child(2):hover {
    border-color: var(--primary) !important;
}

.cyber-card:nth-child(3) .cert-item:nth-child(2):hover h5 {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}

.cyber-card:nth-child(3) .cert-item:nth-child(3):hover {
    border-color: var(--violet) !important;
}

.cyber-card:nth-child(3) .cert-item:nth-child(3):hover h5 {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

.cyber-card:nth-child(3):hover .cert-item {
    border-color: rgba(255, 0, 255, 0.3);
}

/* Hardware & IT card */
.cyber-card:nth-child(4):hover {
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.cyber-card:nth-child(4):hover .cyber-header h3 {
    color: var(--orange) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Hardware & IT list items */
.cyber-card:nth-child(4) li:hover::before {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

/* Keep cyber stats icons violet */
.cyber-card.main-card:hover .cyber-stat i.fa-flag,
.cyber-card.main-card:hover .cyber-stat i.fa-clock {
    color: var(--violet) !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

.cyber-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cyber-card:hover {
    transform: translateY(-5px);
}

.cyber-card.main-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 136, 255, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.cyber-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cyber-header i {
    font-size: 2.4rem;
    transition: all 0.3s ease;
}

.cyber-header h3 {
    font-size: 2rem;
    color: var(--cyan);
    transition: all 0.3s ease;
}

.cyber-content h4 {
    font-size: 1.8rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.cyber-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.cyber-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.cyber-content li {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cyber-content li:hover {
    color: var(--orange);
    transform: translateX(5px);
}

.cyber-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    text-shadow: 0 0 5px var(--cyan);
    transition: all 0.3s ease;
}

.cyber-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cyber-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cyber-stat:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
}

.cyber-stat i {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.cyber-stat span {
    font-size: 1.4rem;
    color: var(--cyan);
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.tool-item i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tool-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.tool-item p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cert-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-item:hover {
    padding-left: 10px;
    border-color: var(--cyan) !important;
}

.cert-item h5 {
    font-size: 1.6rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.cert-item p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cert-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* GREEN DECORATIVE ELEMENTS AFTER ACHIEVEMENTS */
.achievements-decoration {
    position: relative;
    margin-top: 6rem;
    padding: 3rem 0;
}

.green-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(10px);
}

.green-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.green-stat i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.green-stat h4 {
    font-size: 1.6rem;
    color: var(--cyan) !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.green-stat p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* TryHackMe icon */
.fab.fa-tryhackme {
    position: relative;
    transition: all 0.3s ease;
}

.fab.fa-tryhackme::after {
    content: '🐛';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fab.fa-tryhackme:hover::after {
    opacity: 1;
}

/* ===== 6.6 CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-header i {
    font-size: 2.4rem;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.contact-header h3 {
    font-size: 2rem;
    color: var(--cyan);
}

.contact-card p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.contact-card ul {
    list-style: none;
}

.contact-card li {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.contact-card li:hover {
    color: var(--violet);
    transform: translateX(5px);
}

.contact-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 5px var(--primary);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

/* Contact links - different colors on hover */
.contact-link:nth-child(1):hover {
    border-color: var(--red);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    color: var(--red);
}

.contact-link:nth-child(1):hover i {
    color: var(--red);
}

.contact-link:nth-child(2):hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
    color: var(--primary);
}

.contact-link:nth-child(2):hover i {
    color: var(--primary);
}

.contact-link:nth-child(3):hover {
    border-color: var(--violet);
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.2);
    color: var(--violet);
}

.contact-link:nth-child(3):hover i {
    color: var(--violet);
}

.contact-link i {
    font-size: 2rem;
    color: var(--cyan);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2);
}

.contact-link span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--cyan);
    transition: color 0.3s ease;
}

.contact-link:hover span {
    color: inherit;
}

/* ========== 7. COMPONENTS ========== */

/* ===== 7.1 BUTTONS ===== */
.home-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.btn {
    padding: 1.4rem 3rem;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--cyan), var(--violet));
    color: var(--darker);
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, var(--primary), var(--orange));
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== 7.2 CARDS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-item:hover::before {
    transform: translateX(100%);
}

.stat-item:hover {
    transform: translateY(-7px);
    border-color: var(--orange);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2.4rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--cyan);
    opacity: 0.8;
}

/* ===== 7.3 FORMS ===== */
.contact-form {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-form:hover {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.3);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 1px, transparent 1px),
        linear-gradient(0deg, transparent 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.contact-form h3 {
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-form h3::before {
    content: '>_';
    color: var(--violet);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.8rem 1.6rem 0.8rem 4rem;
    background: rgba(5, 5, 5, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--cyan);
    font-size: 1.6rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 255, 255, 0.6) !important;
    opacity: 1 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0.5 !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    background: rgba(5, 5, 5, 0.95);
    transform: translateY(-2px);
    color: var(--primary);
}

/* VIOLET ICONS */
.contact-form input[type="text"] {
    background: rgba(5, 5, 5, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff00ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") no-repeat 1.5rem center !important;
    background-size: 2rem !important;
}

.contact-form input[type="text"]:focus {
    background: rgba(5, 5, 5, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") no-repeat 1.5rem center !important;
}

.contact-form input[type="email"] {
    background: rgba(5, 5, 5, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff00ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 1.5rem center !important;
    background-size: 2rem !important;
}

.contact-form input[type="email"]:focus {
    background: rgba(5, 5, 5, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 1.5rem center !important;
}

.contact-form textarea {
    background: rgba(5, 5, 5, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff00ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") no-repeat 1.5rem 1.4rem !important;
    background-size: 2rem !important;
    min-height: 150px;
    resize: vertical;
    padding-top: 1.2rem !important;
}

.contact-form textarea:focus {
    background: rgba(5, 5, 5, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") no-repeat 1.5rem 1.4rem !important;
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: rgba(0, 255, 255, 0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    background: transparent;
    padding: 0 0.5rem;
    opacity: 0.8;
    z-index: 3;
    font-weight: 400;
}

.input-group.focused .floating-label,
.textarea-wrapper.focused .floating-label,
.contact-form input:focus + .floating-label,
.contact-form input:not(:placeholder-shown) + .floating-label,
.contact-form textarea:focus + .floating-label,
.contact-form textarea:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 1.2rem;
    color: var(--violet);
    background: var(--darker);
    padding: 0 0.8rem;
    transform: translateY(0);
    opacity: 1;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.textarea-wrapper .floating-label {
    top: 1.8rem;
    transform: translateY(0);
}

.textarea-wrapper.focused .floating-label,
.contact-form textarea:focus + .floating-label,
.contact-form textarea:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    transform: translateY(0);
}

.input-group.focused input,
.textarea-wrapper.focused textarea {
    background-position: 1.5rem center !important;
}

.char-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 1.2rem;
    color: rgba(0, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
    z-index: 3;
}

.textarea-wrapper.focused .char-counter {
    color: rgba(0, 255, 136, 0.8);
}

.form-message {
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.form-message.error {
    background: rgba(255, 0, 136, 0.1);
    border: 1px solid rgba(255, 0, 136, 0.3);
    color: var(--accent);
}

.form-message i {
    font-size: 1.6rem;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.btn-submit {
    background: linear-gradient(45deg, var(--cyan), var(--primary));
    color: var(--darker);
    border: none;
    padding: 1.4rem 3rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(45deg, var(--violet), #00ffff);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(10px);
}

.btn-submit.loading {
    background: linear-gradient(45deg, #00cc77, #0088cc);
    cursor: wait;
}

/* Form Notification Styles */
.form-notification {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.form-notification-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    border-left: 4px solid #00b09b;
}

.form-notification-error {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    border-left: 4px solid #ff416c;
}

.form-notification-info {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: white;
    border-left: 4px solid #2193b0;
}

.form-notification i:first-child {
    font-size: 20px;
}

.form-notification span {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 5px;
}

.notification-close:hover {
    opacity: 1;
}

/* Floating Label Fix */
.input-group, .textarea-wrapper {
    position: relative;
}

.input-group.filled .floating-label,
.textarea-wrapper.filled .floating-label {
    transform: translateY(-25px) scale(0.85);
    color: var(--primary);
    font-weight: 600;
}

/* Form Loading State */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== 7.4 TERMINAL ===== */
.home-img {
    position: relative;
}

.home-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--cyan), var(--primary));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(20px);
}

.profile-card {
    position: relative;
    z-index: 2;
}

.terminal {
    background: var(--terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 255, 0.2);
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.terminal-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.terminal-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
    transition: transform 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
    font-size: 1.4rem;
}

.terminal-body {
    padding: 3rem 2rem;
    position: relative;
}

.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(transparent 95%, rgba(0, 255, 255, 0.05) 100%),
        linear-gradient(90deg, transparent 95%, rgba(0, 255, 255, 0.05) 100%);
    background-size: 100% 20px, 20px 100%;
    pointer-events: none;
    opacity: 0.1;
}

.command {
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 1rem;
}

.command::before {
    content: '>_';
    position: absolute;
    left: -1.5rem;
    color: var(--primary);
}

.output {
    color: var(--light);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    padding-left: 1rem;
    border-left: 2px solid var(--cyan);
    position: relative;
}

.output::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--cyan);
    filter: blur(1px);
}

.output-highlight {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

/* ===== 7.5 BADGES ===== */
.cyber-badge {
    display: inline-block;
    background: rgba(255, 165, 0, 0.1);
    color: var(--orange);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

.cyber-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 165, 0, 0.1), 
        transparent);
    transform: translateX(-100%);
    pointer-events: none;
}

/* Apply orange pulse to existing timeline-badge */
.timeline-badge.cyber-badge {
    animation: badgePulse 2s infinite ease-in-out;
}

.timeline-badge.cyber-badge:hover {
    background: rgba(255, 165, 0, 0.25);
    border-color: var(--orange);
    transform-origin: center;
}

/* Specific application for cyber achievement badges */
.cyber-card .timeline-badge {
    animation: badgePulse 2s infinite ease-in-out;
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: var(--orange);
}

.cyber-card .timeline-badge:hover {
    background: rgba(255, 165, 0, 0.25);
    border-color: var(--orange);
    transform-origin: center;
}

/* ========== 8. ANIMATIONS ========== */
/* Background Animations */
@keyframes circuitGlow {
    0%, 100% {
        opacity: 0.5;
        background-position: 0% 0%;
    }
    50% {
        opacity: 0.8;
        background-position: 100% 100%;
    }
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* UI Element Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glitch Animations */
@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    10% {
        transform: translate(2px, -1px);
    }
    30% {
        transform: translate(-2px, 1px);
    }
    50% {
        transform: translate(-2px, -2px);
    }
    70% {
        transform: translate(2px, 2px);
    }
    90% {
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-3 {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    5% {
        transform: translate(-1px, 1px);
        opacity: 0.8;
    }
    15% {
        transform: translate(1px, -1px);
        opacity: 0.9;
    }
    25% {
        transform: translate(2px, 0);
        opacity: 0.7;
    }
    35% {
        transform: translate(-2px, 1px);
        opacity: 0.8;
    }
    45% {
        transform: translate(1px, -2px);
        opacity: 0.9;
    }
    55% {
        transform: translate(-1px, 2px);
        opacity: 0.7;
    }
    65% {
        transform: translate(2px, 1px);
        opacity: 0.8;
    }
    75% {
        transform: translate(-2px, -1px);
        opacity: 0.9;
    }
    85% {
        transform: translate(1px, 2px);
        opacity: 0.7;
    }
}

/* Scanline Animation */
@keyframes scanline {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Badge Pulse Animations */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(255, 165, 0, 0.3),
            0 0 10px rgba(255, 165, 0, 0.2),
            inset 0 0 5px rgba(255, 165, 0, 0.1);
        border-color: rgba(255, 165, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(255, 165, 0, 0.5),
            0 0 25px rgba(255, 165, 0, 0.3),
            inset 0 0 8px rgba(255, 165, 0, 0.2);
        border-color: rgba(255, 165, 0, 0.7);
        transform: scale(1.02);
    }
}

@keyframes badgePulseFast {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(255, 165, 0, 0.5),
            0 0 15px rgba(255, 165, 0, 0.4),
            0 0 30px rgba(255, 165, 0, 0.2);
        border-color: rgba(255, 165, 0, 0.6);
        transform: scale(1);
    }
    20% {
        box-shadow: 
            0 0 12px rgba(255, 165, 0, 0.7),
            0 0 25px rgba(255, 165, 0, 0.5),
            0 0 40px rgba(255, 165, 0, 0.3);
        border-color: rgba(255, 165, 0, 0.9);
        transform: scale(1.03);
    }
    40% {
        box-shadow: 
            0 0 10px rgba(255, 165, 0, 0.6),
            0 0 20px rgba(255, 165, 0, 0.4),
            0 0 35px rgba(255, 165, 0, 0.25);
        border-color: rgba(255, 165, 0, 0.8);
        transform: scale(1.01);
    }
    60% {
        box-shadow: 
            0 0 15px rgba(255, 165, 0, 0.8),
            0 0 30px rgba(255, 165, 0, 0.6),
            0 0 50px rgba(255, 165, 0, 0.4);
        border-color: rgba(255, 204, 0, 1);
        transform: scale(1.04);
    }
    80% {
        box-shadow: 
            0 0 9px rgba(255, 165, 0, 0.65),
            0 0 18px rgba(255, 165, 0, 0.45),
            0 0 32px rgba(255, 165, 0, 0.3);
        border-color: rgba(255, 165, 0, 0.85);
        transform: scale(1.02);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    50%, 100% {
        transform: translateX(100%);
    }
}

@keyframes shineFast {
    0% {
        transform: translateX(-100%);
    }
    25%, 100% {
        transform: translateX(100%);
    }
}

@keyframes bugCrawl {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, -5px) rotate(90deg);
    }
    50% {
        transform: translate(10px, 0) rotate(180deg);
    }
    75% {
        transform: translate(5px, 5px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Apply animations to elements */
body::after {
    animation: circuitGlow 10s ease-in-out infinite alternate;
}

.matrix-column {
    animation: matrixRain 20s linear infinite;
}

.logo::after {
    animation: blink 1s infinite;
}

.command::before {
    animation: blink 1s infinite;
}

nav a.active::after {
    animation: pulseDot 1.5s infinite;
}

.heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: scanline 3s linear infinite;
    z-index: 1;
    opacity: 0.7;
}

.cyber-badge {
    animation: badgePulse 2s infinite ease-in-out;
}

.cyber-badge:hover {
    animation: badgePulseFast 0.6s infinite ease-in-out;
}

.cyber-badge::before {
    animation: shine 3s infinite;
}

.cyber-badge:hover::before {
    animation: shineFast 1.5s infinite;
}

.fab.fa-tryhackme::after {
    animation: bugCrawl 3s infinite linear;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch-3 8s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyan);
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    opacity: 0.8;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--violet);
    animation: glitch-2 4s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    opacity: 0.8;
}

/* Different glitch speeds */
.logo.glitch-text {
    animation-duration: 12s;
}

.logo.glitch-text::before {
    animation-duration: 5s;
}

.logo.glitch-text::after {
    animation-duration: 7s;
}

.heading.glitch-text {
    animation-duration: 10s;
}

.heading.glitch-text::before {
    animation-duration: 4s;
}

.heading.glitch-text::after {
    animation-duration: 6s;
}

/* Hover effect for glitch text */
.glitch-text:hover {
    animation: glitch-3 0.5s infinite linear;
}

.glitch-text:hover::before {
    animation: glitch-1 0.3s infinite linear;
}

.glitch-text:hover::after {
    animation: glitch-2 0.4s infinite linear;
}

/* Active glitch state */
.glitch-active {
    animation: glitch-3 0.3s infinite linear !important;
}

.glitch-active::before {
    animation: glitch-1 0.2s infinite linear !important;
}

.glitch-active::after {
    animation: glitch-2 0.25s infinite linear !important;
}

/* Hover glitch state */
.glitch-hover {
    animation: glitch-3 0.5s infinite linear;
}

.glitch-hover::before {
    animation: glitch-1 0.3s infinite linear;
}

.glitch-hover::after {
    animation: glitch-2 0.4s infinite linear;
}

/* ========== 9. RESPONSIVE DESIGN ========== */

/* Tablet and Medium Screens (1024px and below) */
@media (max-width: 1024px) {
    .home {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .home-buttons {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cyber-card.main-card {
        grid-column: span 1;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .green-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile and Small Screens (768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 1rem;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(0, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        height: calc(100vh - 80px);
        justify-content: center;
        align-items: center;
        display: flex !important;
        z-index: 999;
        overflow-y: auto;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav a {
        width: 90%;
        max-width: 300px;
        text-align: center;
        padding: 1.5rem 2rem;
        font-size: 1.8rem;
        margin: 0.5rem auto;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        border-radius: 8px;
        display: block;
    }

    nav a:hover {
        background: rgba(0, 255, 136, 0.1);
        border-color: rgba(0, 255, 136, 0.3);
        color: var(--primary);
    }

    nav a.contact-btn {
        margin-top: 1rem;
        order: 6;
    }

    nav.active a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.1s * var(--i, 0));
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    /* Typography Adjustments */
    .heading {
        font-size: 3.5rem;
    }

    .home-title {
        font-size: 3.8rem;
    }

    /* Form Adjustments */
    .form-group {
        grid-template-columns: 1fr;
    }

    /* Timeline Adjustments */
    .timeline::before {
        left: 15px;
    }

    .timeline-content::before {
        left: -8px;
    }

    .timeline-date {
        width: 80px;
    }

    .timeline-content {
        padding-left: 3rem;
    }
    
    .green-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Screens (480px and below) */
@media (max-width: 480px) {
    .heading {
        font-size: 3rem;
    }

    .home-title {
        font-size: 3.2rem;
    }

    .home-buttons {
        flex-direction: column;
    }

    .project-grid,
    .skill-container,
    .cyber-container {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    nav a {
        width: 90%;
    }
}

/* Additional fix for floating labels */
.input-group.focused .floating-label,
.textarea-wrapper.focused .floating-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
    background: var(--darker);
    padding: 0 0.8rem;
    transform: translateY(0);
    opacity: 1;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.input-group.focused input,
.textarea-wrapper.focused textarea {
    background-position: 1.5rem center !important;
}

/* ========== FOOTER ========== */
footer {
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 4rem 5%;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo:hover {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.footer-copyright {
    font-size: 1.2rem;
    color: var(--cyan);
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    opacity: 0.8;
}