:root {
    --primary: #0a192f;
    --secondary: #64ffda;
    --text: #8892b0;
    --highlight: #00ff9d;
    --dark: #020c1b;
    --light: #ccd6f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
}

.logo span {
    color: var(--light);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-subtitle {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--light);
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 18px;
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 15px 30px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.matrix-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    background: var(--dark);
}

.security-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 0 0 calc(33.333% - 20px);
    background: rgba(13, 33, 63, 0.7);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border-left: 3px solid var(--secondary);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--light);
    margin-bottom: 10px;
}

.stat-title {
    color: var(--secondary);
    font-size: 18px;
}

.skills-section {
    padding: 60px 0; /* Reduced from 100px to 60px */
}

.section-title {
    color: var(--light);
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: rgba(13, 33, 63, 0.7);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary);
}

.skill-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.skill-title {
    color: var(--light);
    font-size: 20px;
    margin-bottom: 10px;
}

.skill-description {
    font-size: 16px;
}

.animated-typing {
    border-right: 0.15em solid var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary) }
}

.binary-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.05;
    background: repeating-linear-gradient(
        0deg,
        var(--dark),
        var(--dark) 2px,
        var(--primary) 2px,
        var(--primary) 4px
    );
}

.footer {
    padding: 50px 0;
    background-color: var(--dark);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.github-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.linkedin-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text);
    margin: 0 10px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    margin: 10px 0;
}

.contact-item a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary);
}

.copyright {
    margin-top: 30px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    .nav-links {
        display: none;
    }
}

/* Terminal Effect */
.terminal-window {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    margin-top: 50px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    position: relative;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-close {
    background-color: #ff5f56;
}

.terminal-minimize {
    background-color: #ffbd2e;
}

.terminal-maximize {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    color: #ddd;
    font-size: 12px;
}

.terminal-body {
    color: #0f0;
    line-height: 1.5;
}

.terminal-prompt {
    display: flex;
    margin-bottom: 10px;
}

.terminal-prompt:before {
    content: "$";
    color: var(--secondary);
    margin-right: 10px;
}

.blinking-cursor:after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}