/* ============= Variables CSS ============= */
:root {
    --primary: #0099ff;
    --primary-dark: #0066cc;
    --secondary: #00ccff;
    --dark-bg: #0a1428;
    --darker-bg: #050811;
    --card-bg: #0f1823;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #1a2f5a;
    --accent-1: #0066ff;
    --accent-2: #00ffff;
    --success: #00ccff;
    --warning: #0099ff;
    --danger: #ff1744;
    --shadow: 0 8px 32px rgba(0, 153, 255, 0.1);
    --shadow-hover: 0 16px 48px rgba(0, 153, 255, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============= Reset & Base ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Courier New', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============= Navbar ============= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.98) 0%, rgba(5, 7, 15, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 153, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 153, 255, 0.15),
        inset 0 1px 0 rgba(0, 204, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar:hover {
    border-bottom-color: rgba(0, 153, 255, 0.6);
    box-shadow: 
        0 12px 48px rgba(0, 153, 255, 0.25),
        inset 0 1px 0 rgba(0, 204, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 10px rgba(0, 153, 255, 0.4));
}

.logo i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 153, 255, 0.5));
}

.logo:hover {
    transform: scale(1.12) translateY(-3px);
    filter: drop-shadow(0 0 20px rgba(0, 153, 255, 0.8)) drop-shadow(0 0 40px rgba(0, 204, 255, 0.4));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px var(--primary);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 153, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.6);
    border-radius: 2px;
}

/* ============= Hero Section ============= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    margin-top: 0;
    overflow: auto;
    width: 100%;
}

main {
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(0,153,255,0.08)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero > * {
    position: relative;
    z-index: 10;
}

.hero-wrapper {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
    margin: 0 auto;
    z-index: 10;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 24%, rgba(0, 153, 255, 0.05) 25%, rgba(0, 153, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 153, 255, 0.05) 75%, rgba(0, 153, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(rgba(0, 153, 255, 0.03) 0%, rgba(0, 0, 0, 0.03) 2%, rgba(0, 0, 0, 0.03) 4%, rgba(0, 153, 255, 0.03) 6%);
    background-size: 50px 50px;
    opacity: 0.2;
    animation: matrix-scroll 20s linear infinite;
}

.hero-left {
    position: relative;
    z-index: 10;
    flex: 0 1 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-content {
    animation: fadeInDown 1s ease;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.2), rgba(0, 204, 255, 0.1));
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease 0.1s both;
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
}

.security-badge i {
    font-size: 14px;
}

.glitch {
    font-size: clamp(48px, 8vw, 92px);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--primary);
    text-shadow:
        0 0 10px rgba(0, 153, 255, 0.8),
        0 0 20px rgba(0, 153, 255, 0.5),
        0 0 40px rgba(0, 153, 255, 0.3),
        0 0 60px rgba(0, 153, 255, 0.2),
        -2px -2px 0 rgba(255, 0, 128, 0.3),
        2px 2px 0 rgba(0, 255, 136, 0.3);
    position: relative;
    animation: glitch 4s infinite;
    margin-bottom: 15px;
}

@keyframes glitch {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(0, 153, 255, 0.8),
            0 0 20px rgba(0, 153, 255, 0.5),
            0 0 40px rgba(0, 153, 255, 0.3);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 153, 255, 0.8),
            0 0 20px rgba(0, 153, 255, 0.5),
            0 0 40px rgba(0, 153, 255, 0.3),
            -2px -2px 0 rgba(255, 0, 128, 0.5),
            2px 2px 0 rgba(0, 255, 136, 0.5);
    }
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px rgba(0, 204, 255, 0.6),
        0 0 20px rgba(0, 204, 255, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.3s both;
    font-style: italic;
}

.security-highlights {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.35s both;
}

.security-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 6px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.security-tag:hover {
    background: rgba(0, 204, 255, 0.2);
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(0, 204, 255, 0.3);
}

.security-tag i {
    font-size: 13px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
    animation: fadeInUp 1s ease 0.4s both;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.5s both;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    color: var(--darker-bg);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(0, 153, 255, 0.6);
}

.cta-button:active {
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-button:hover {
    background: rgba(0, 153, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.4);
    transform: translateY(-3px) scale(1.03);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-right {
    position: relative;
    z-index: 10;
    flex: 0 1 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeInRight 1s ease 0.4s both;
    min-width: 0;
}

.terminal-window {
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 204, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a2e, #16213e);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: bold;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-buttons span:nth-child(1) {
    background: #ffc107;
}

.terminal-buttons span:nth-child(2) {
    background: #4caf50;
}

.terminal-buttons span:nth-child(3) {
    background: #f44336;
}

.terminal-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary);
}

.cmd {
    color: var(--secondary);
    font-weight: bold;
}

.output {
    color: var(--text-secondary);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 40px;
    background: rgba(0, 153, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.tech-stack-title {
    font-size: 16px;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 153, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 28px;
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden;
}

.tech-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    opacity: 0.85;
}

.tech-icon:hover img {
    opacity: 1;
}

.tech-icon:hover {
    background: rgba(0, 153, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
    transform: translateY(-5px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 153, 255, 0.6);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= Section Title ============= */
.section-title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary);
    text-shadow: 
        0 0 10px rgba(0, 153, 255, 0.4),
        0 0 20px rgba(0, 153, 255, 0.2);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px auto 0;
    box-shadow: 0 0 10px var(--primary);
}

/* ============= About Section ============= */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 0, 0.05) 50%, transparent);
    min-height: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.highlight {
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.achievement:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
    transform: translateY(-5px);
}

.achievement i {
    font-size: 32px;
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    background: rgba(15, 20, 25, 0.7);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.stat-card:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.2);
    transform: translateY(-8px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ============= Skills Section ============= */
.skills {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 153, 255, 0.05) 50%, transparent);
    min-height: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 30px;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px) scale(1.02);
    background: rgba(15, 20, 25, 0.8);
}

.skill-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.skill-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.skill-level {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    transition: width 0.5s ease;
}

.skill-status {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 8px;
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

/* ============= Projects Section ============= */
.projects {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 128, 0.05) 50%, transparent);
    min-height: auto;
}

/* ============= Filter Section ============= */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border-color: var(--primary);
    color: var(--darker-bg);
    box-shadow: 0 0 35px rgba(0, 153, 255, 0.5);
    transform: scale(1.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
    max-height: none;
    backdrop-filter: blur(5px);
}

.project-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-15px) scale(1.02);
    background: rgba(15, 20, 25, 0.9);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    opacity: 1;
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    color: var(--success);
    transform: translateX(5px);
}

/* ============= Pagination ============= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 20px;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    min-width: 50px;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-1));
    border-color: var(--primary);
    color: var(--darker-bg);
    box-shadow: 0 0 35px rgba(0, 153, 255, 0.5);
    transform: scale(1.1);
}

/* ============= Certifications Section ============= */
.certifications {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.05) 50%, transparent);
    min-height: auto;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    padding: 40px 30px;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cert-card:hover {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.cert-icon {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.cert-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cert-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cert-date {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
}

/* ============= Contact Section ============= */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 0, 0.1) 50%, transparent);
    min-height: auto;
}

.contact-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.contact-method:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    background: rgba(15, 20, 25, 0.8);
}

.contact-method i {
    font-size: 36px;
    color: var(--primary);
    flex-shrink: 0;
    min-width: 36px;
}

.contact-method div {
    flex: 1;
    overflow: hidden;
}

.contact-method h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-method p {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============= Footer ============= */
.footer {
    padding: 40px 0;
    background: rgba(5, 7, 15, 0.8);
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: default;
}

.footer-link:hover {
    color: var(--success);
}

/* ============= Responsive Design ============= */
@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 40px;
    }

    .hero-left,
    .hero-right {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .glitch {
        font-size: clamp(36px, 6vw, 64px);
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .nav-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
        gap: 5px;
    }

    .logo i {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 60px 15px 40px;
    }

    .hero-wrapper {
        gap: 30px;
        padding: 20px 0;
    }

    .hero-left,
    .hero-right {
        flex: 0 1 100%;
    }

    .glitch {
        font-size: clamp(32px, 7vw, 48px);
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .security-highlights {
        gap: 8px;
    }

    .security-tag {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        padding: 14px 30px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .container {
        padding: 0 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .achievements,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .achievement {
        padding: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 150px;
        font-size: 48px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .project-info p {
        font-size: 13px;
    }

    .filter-section {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 45px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .cert-card {
        padding: 30px 20px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }

    .contact-method i {
        font-size: 32px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
    }

    section {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 55px;
    }

    .nav-container {
        height: 55px;
        padding: 0 10px;
    }

    .logo {
        font-size: 16px;
    }

    .hero {
        padding: 55px 10px 30px;
    }

    .hero-wrapper {
        gap: 20px;
    }

    .glitch {
        font-size: clamp(28px, 8vw, 42px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .security-highlights {
        gap: 6px;
        margin-bottom: 15px;
    }

    .security-tag {
        padding: 5px 8px;
        font-size: 10px;
    }

    .hero-buttons {
        gap: 10px;
        margin-bottom: 30px;
    }

    .cta-button,
    .secondary-button {
        padding: 12px 25px;
        font-size: 13px;
    }

    .hero-stats {
        gap: 10px;
        margin-bottom: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 150px;
    }

    .container {
        padding: 0 12px;
    }

    .skill-card,
    .project-card,
    .cert-card {
        padding: 15px;
    }

    .skill-icon {
        font-size: 36px;
    }

    .skill-card h3 {
        font-size: 16px;
    }

    .skill-card p {
        font-size: 12px;
    }

    .project-image {
        height: 120px;
        font-size: 36px;
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 16px;
    }

    .project-info p {
        font-size: 12px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 40px;
    }

    .cert-card {
        padding: 20px 15px;
    }

    .cert-icon {
        font-size: 36px;
    }

    .cert-card h3 {
        font-size: 16px;
    }

    .contact-method {
        padding: 15px;
    }

    .contact-method i {
        font-size: 28px;
    }

    .contact-method h3 {
        font-size: 14px;
    }

    .contact-method p {
        font-size: 12px;
    }

    .footer {
        padding: 20px 0;
        font-size: 11px;
    }

    section {
        padding-top: 55px;
    }
}

/* ============= Legal Pages ============= */
.legal-page {
    padding: 100px 0;
    min-height: calc(100vh - 60px);
    background: linear-gradient(180deg, transparent, rgba(0, 153, 255, 0.03) 50%, transparent);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-page h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.3);
    animation: fadeInDown 0.6s ease;
}

.last-update {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease 0.1s both;
}

.legal-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(15, 20, 25, 0.5);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.legal-section:hover {
    background: rgba(15, 20, 25, 0.7);
    border-left-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.15);
}

.legal-section h2 {
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
}

.legal-section p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.legal-section li {
    color: var(--text-primary);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.legal-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 153, 255, 0.3);
}

.legal-section a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

strong {
    color: var(--secondary);
}

/* ============= Tech Stack Section ============= */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 40px;
    background: rgba(0, 153, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.tech-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(0, 153, 255, 0.2);
    padding: 15px;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    background: rgba(0, 153, 255, 0.1);
    border-color: rgba(0, 153, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.2);
    transform: translateY(-5px);
}

.tech-logo img {
    height: 60px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    background: transparent;
}

.tech-logo:hover img {
    opacity: 1;
}

.tech-logo[title]:after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

