* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --accent-primary: #ff6b00;
    --accent-secondary: #ff8c00;
    --accent-tertiary: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 107, 0, 0.2);
    --glass-border-hover: rgba(255, 107, 0, 0.4);
    --shadow-glow: rgba(255, 107, 0, 0.3);
    --shadow-deep: rgba(0, 0, 0, 0.8);
    --grid-color: rgba(255, 107, 0, 0.05);
    --mouse-x: 50%;
    --mouse-y: 50%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* HUD-style corner indicators on viewport */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background-image: 
        /* Top-left corner */
        linear-gradient(90deg, var(--accent-primary) 0%, transparent 2px),
        linear-gradient(0deg, var(--accent-primary) 0%, transparent 2px),
        /* Top-right corner */
        linear-gradient(90deg, transparent calc(100% - 2px), var(--accent-primary) 100%),
        linear-gradient(0deg, var(--accent-primary) 0%, transparent 2px),
        /* Bottom-left corner */
        linear-gradient(90deg, var(--accent-primary) 0%, transparent 2px),
        linear-gradient(0deg, transparent calc(100% - 2px), var(--accent-primary) 100%),
        /* Bottom-right corner */
        linear-gradient(90deg, transparent calc(100% - 2px), var(--accent-primary) 100%),
        linear-gradient(0deg, transparent calc(100% - 2px), var(--accent-primary) 100%);
    background-size: 40px 2px, 2px 40px, 40px 2px, 2px 40px, 40px 2px, 2px 40px, 40px 2px, 2px 40px;
    background-position: 
        top left, top left,
        top right, top right,
        bottom left, bottom left,
        bottom right, bottom right;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: -2;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.06) 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.04) 0%, transparent 70%),
        radial-gradient(circle at 40% 20%, rgba(255, 107, 0, 0.03) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

/* Glass Card Effect - Tactical */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-deep),
                0 0 0 1px rgba(255, 107, 0, 0.15) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    cursor: crosshair;
    isolation: isolate;
}

/* Corner brackets for tactical look - only on non-project cards */
.glass-card:not(.project-card)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.glass-card:not(.project-card)::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.glass-card:not(.project-card):hover::before,
.glass-card:not(.project-card):hover::after {
    opacity: 0.8;
}

/* Gradient overlay removed - was causing unwanted glow effects */

/* Base hover state - entire border gets slightly brighter */
.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.35);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 12px 40px var(--shadow-deep),
                0 0 0 1px rgba(255, 107, 0, 0.35) inset;
}

/* Navigation - Tactical */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(255, 107, 0, 0.1) inset,
                0 0 20px rgba(0, 0, 0, 0.5);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-primary) 20%,
        var(--accent-primary) 80%,
        transparent 100%
    );
    opacity: 0.3;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    text-transform: uppercase;
    position: relative;
    font-family: monospace;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
    font-family: monospace;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a::before {
    content: '>';
    position: absolute;
    left: -1rem;
    opacity: 0;
    color: var(--accent-primary);
    font-family: monospace;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.nav-links a:hover::before {
    opacity: 0.6;
    transform: translateX(0);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* HUD-style corner indicators */
.hero-content::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
    opacity: 0.5;
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    position: relative;
    text-transform: uppercase;
    display: inline-block;
    padding: 0 1.5rem;
}

.hero-title::before {
    content: '[';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 2.2em;
    font-weight: 100;
    opacity: 0.7;
    line-height: 1;
    height: 1em;
}

.hero-title::after {
    content: ']';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 2.2em;
    font-weight: 100;
    opacity: 0.7;
    line-height: 1;
    height: 1em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0 2rem;
}

.hero-subtitle::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: monospace;
    opacity: 0.3;
    font-size: 0.8em;
}

.hero-subtitle::after {
    content: '//';
    position: absolute;
    right: 0;
    color: var(--accent-primary);
    font-family: monospace;
    opacity: 0.3;
    font-size: 0.8em;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--shadow-glow),
                0 0 0 1px rgba(255, 107, 0, 0.3) inset;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--shadow-glow),
                0 0 0 1px rgba(255, 107, 0, 0.5) inset;
    background: var(--accent-secondary);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.3;
    position: relative;
}

.glass-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.glass-card p:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
}


/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    text-align: left;
    padding: 2rem;
    position: relative;
}

/* Technical overlay on project cards */
.project-card.glass-card::before {
    content: 'PROJECT';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.625rem;
    color: var(--accent-primary);
    font-family: monospace;
    opacity: 0.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 2;
    border: none;
    width: auto;
    height: auto;
}

.project-card.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--accent-primary) 20%,
        var(--accent-primary) 80%,
        transparent 100%
    );
    opacity: 0.1;
    border: none;
    width: 1px;
    height: 100%;
}

.project-icon {
    margin-bottom: 1.25rem;
    display: block;
    opacity: 0.8;
}

.project-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.65;
    font-size: 0.875rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.project-link:hover {
    gap: 1rem;
    color: var(--accent-secondary);
}

.project-link span {
    transition: transform 0.3s ease;
}

.project-link:hover span {
    transform: translateX(5px);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 0;
    color: var(--accent-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: monospace;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    position: relative;
}

.project-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-tertiary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Contact Section */
.contact-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    position: relative;
}

.contact-item::before {
    content: '→';
    position: absolute;
    left: 0.75rem;
    color: var(--accent-primary);
    font-family: monospace;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.contact-item:hover::before {
    opacity: 0.8;
    transform: translateX(0);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--shadow-deep);
}

.contact-icon {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-tertiary);
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: monospace;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 1px;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    opacity: 0.3;
}

.footer::after {
    content: 'SYSTEM ONLINE';
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-size: 0.625rem;
    color: var(--accent-tertiary);
    opacity: 0.4;
    letter-spacing: 0.15em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 5rem 1.25rem 2.5rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .glass-card {
        padding: 1.75rem 1.25rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title::before {
        left: -0.25rem;
        font-size: 2em;
    }
    
    .hero-title::after {
        right: -0.25rem;
        font-size: 2em;
    }
    

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .hero-subtitle::before,
    .hero-subtitle::after {
        display: none;
    }
    
    .nav-links a::before {
        display: none;
    }
    
    .contact-item::before {
        display: none;
    }
    
    body::after {
        display: none;
    }
    
    .hero-content::before,
    .hero-content::after {
        display: none;
    }

    .glass-card {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}


