:root {
    --bg: #0b0f10;
    --fg: #e6f2ef;
    --muted: #8aa39b;
    --accent: #00ff99;
    --accent-hover: #00cc7a;
    --card-bg: #1a1f20;
    --card-border: #2a2f30;
    --navbar-bg: rgba(11, 15, 16, 0.95);
    --shadow: 0 8px 32px rgba(0, 255, 153, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 255, 153, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--fg), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 153, 0.1);
    transition: all 0.3s ease;
}

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

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--fg);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

./* Remove old matrix-bg styles */
.matrix-bg {
    display: none; /* Hide old matrix background */
}

/* Global matrix background will be handled by JavaScript */
#global-matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1; 
}

/* Optimize sections for matrix background */
.section {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    z-index: 2;
}

/* Hero logo container */
.hero-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-logo img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.navbar {
    position: relative;
    z-index: 1000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Sections */
.section {
    padding: 100px 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for sections that should be visible by default */
.section:first-of-type {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure all sections are visible by default */
.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Only apply animations when JavaScript adds the visible class */
.section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.125rem;
    /* Lighten the biography text color for better contrast */
    color: #cdded6;
    margin-bottom: 2rem;
}

.about-details h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-details ul {
    list-style: none;
    margin-bottom: 2rem;
}

.about-details li {
    padding: 0.5rem 0;
    color: var(--muted);
    position: relative;
    padding-left: 1.5rem;
}

.about-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-badge {
    background: var(--card-bg);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--card-border);
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.award-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.award-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.award-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 700;
    font-size: 1.25rem;
}

.award-company {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
}

.award-impact {
    background: var(--accent);
    color: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.award-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
    display: block;
}

.award-year {
    color: var(--muted);
    font-size: 0.875rem;
}

.award-note {
    color: var(--muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    text-align: center;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-badge {
    background: var(--card-bg);
    color: var(--fg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: rgba(0, 255, 153, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 153, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--accent);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--fg);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.social-links h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--muted);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.back-to-top.visible {
    display: flex;
}

/* Toast */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--navbar-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .section {
        padding: 60px 0;
    }

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

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .award-card,
    .project-card {
        padding: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg: #000000;
        --fg: #ffffff;
        --accent: #00ff00;
        --card-border: #ffffff;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .toast {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }
} 

/* Loading Screen Animations */
@keyframes title {
    0% {
        opacity: 0;
        right: 130px;
    }
    48% {
        opacity: 0;
        right: 130px;
    }
    52% {
        opacity: 1;
        right: 30px;
    }
    70% {
        opacity: 1;
        right: 30px;
    }
    100% {
        opacity: 0;
        right: 30px;
    }
}

@keyframes fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes bg {
    0% {
        background-color: #306f99;
    }
    50% {
        background-color: #19470f;
    }
    90% {
        background-color: #734a10;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    10% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    20% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    40% {
        opacity: 0;
        right: -21px;
    }
    45% {
        opacity: 1;
        right: 80px;
    }
    50% {
        opacity: 0;
        right: -21px;
    }
    51% {
        right: -21px;
    }
    55% {
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    65% {
        opacity: 1;
    }
    70% {
        opacity: 0;
    }
    75% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    85% {
        opacity: 1;
    }
    90% {
        opacity: 0;
        right: -21px;
    }
    95% {
        opacity: 1;
        right: 80px;
    }
    96% {
        right: -21px;
    }
    100% {
        opacity: 0;
        right: -21px;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -80px;
    margin-top: -40px;
}

.bg {
    padding: 30px 30px 30px 0;
    background: #306f99;
    animation: bg 1.5s linear infinite;
    box-shadow: inset 0 0 45px 30px black;
}

.loading {
    position: relative;
    text-align: right;
    text-shadow: 0 0 6px #bce4ff;
    height: 20px;
    width: 150px;
}

.loading span {
    display: block;
    text-transform: uppercase;
    position: absolute;
    right: 30px;
    height: 20px;
    width: 200px;
    line-height: 20px;
}

.loading span:after {
    content: "";
    display: block;
    position: absolute;
    top: -2px;
    right: -21px;
    height: 20px;
    width: 16px;
    background: #eaf7ff;
    box-shadow: 0 0 15px #bce4ff;
    animation: blink 3.4s infinite;
}

.loading span.title {
    animation: title 3.4s linear infinite;
}

.loading span.text {
    animation: title 3.4s linear 1.7s infinite;
    opacity: 0;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* ... existing styles ... */


/* Simple Glitch Effect for ViSec Title */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--fg), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    position: relative;
    cursor: pointer;
}

.hero-title:hover {
    animation: simpleGlitch 0.5s ease-in-out;
}

@keyframes simpleGlitch {
    0% { transform: translate(0); }
    25% { transform: translate(-3px, 3px); }
    50% { transform: translate(3px, -3px); }
    75% { transform: translate(-3px, -3px); }
    100% { transform: translate(0); }
}

/* Simple Counter Animation */
.award-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
    display: block;
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.award-amount.show {
    opacity: 1;
    transform: translateY(0);
}

/* Particle-line Canvas Background */
#nokey {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #000;
    pointer-events: none;
}

html, body {
    height: 100%;
}