/* Cybersecurity-themed color palette and core variables */
:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #111111;
    --text-color: #f5f5f5;
    --accent-color: #00ff88;
    --accent-secondary: #ff6b6b;
    --secondary-color: #8892b0;
    --border-color: #333;
    --transition: all 0.3s ease;
    --glow: 0 0 20px rgba(0, 255, 136, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-color) 0%, #0d1117 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
 
/* Matrix-style background effect for cybersecurity theme */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-color);
    text-shadow: var(--glow);
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

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

/* Adaptive header with blur effect and security-themed styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--accent-color);
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: var(--glow);
    font-family: 'Fira Code', monospace;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    position: relative;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
    background-color: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    position: relative;
}

.terminal-prompt {
    color: var(--accent-color);
    font-family: 'Fira Code', monospace;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-family: 'Fira Code', monospace;
}

.section-title::after {
    content: '';
    display: block;
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin-left: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.about-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.profile-pic {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

/* Creative border effect for profile image */
.profile-pic::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    z-index: 1;
    transition: var(--transition);
}

.profile-pic:hover img {
    filter: grayscale(0);
    box-shadow: var(--glow);
}

.profile-pic:hover::after {
    transform: translate(-10px, -10px);
    box-shadow: var(--glow);
}

.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

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

.project-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0f1419 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

/* Security-themed accent stripe for project cards */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: var(--accent-color);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-links a:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-family: 'Fira Code', monospace;
}

.contact {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
}

.contact .section-title {
    justify-content: center;
}

.contact .section-title::after {
    display: none;
}

.contact-description {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-family: 'Fira Code', monospace;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

footer {
    padding: 50px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.social-links a {
    font-size: 2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    text-shadow: var(--glow);
}

/* Animated security badge - shows security commitment */
.security-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 10px 15px;
    border-radius: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1000;
    animation: pulse 2s infinite;
    cursor: pointer;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Intersection Observer animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

body.loaded {
    animation: fadeInBody 0.5s ease-in;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive breakpoints for optimal viewing across devices */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profile-pic {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    /* Mobile navigation with slide-in effect */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        border-left: 1px solid var(--accent-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-matrix {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title::after {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 95%;
    }
    
    section {
        padding: 80px 0;
    }
    
    .project-card {
        height: auto;
        min-height: 350px;
    }
}
