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

:root {
    --primary-color: #00ff41;
    --secondary-color: #008f11;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(10, 10, 10, 0.8);
    --text-color: #f0f0f0;
    --accent-color: #00aaff;
    --matrix-green: #00ff41;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

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

/* Header & Navigation */
header {
    background-color: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

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

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

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

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Sections */
.page {
    min-height: 100vh;
    display: none;
    padding: 100px 0;
    animation: fadeIn 0.5s forwards;
}

.page.active {
    display: block;
}

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

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Home Page */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.typewriter {
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    width: fit-content;
}

.typing-text {
    display: inline-block;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-item span {
    font-size: 1.05rem;
}

.hacker-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.hacker-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('/home/tamim/Desktop/test/assets/profile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 5rem;
}

/* Cards & Grids */
.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card h3 i {
    margin-right: 10px;
}

/* Increase text size in About and Contact sections */
#about .card p,
#contact .card p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Increase terminal text size in both sections */
#about .terminal-text,
#contact .terminal-text {
    font-size: 1.1rem;
}

/* Increase skill item text in About section */
#about .skill-item p {
    font-size: 1rem;
}

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

.skill-item {
    background-color: rgba(0, 143, 17, 0.1);
    border-left: 3px solid var(--secondary-color);
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.skill-item:hover {
    background-color: rgba(0, 255, 65, 0.1);
    border-left-color: var(--primary-color);
}

.skill-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.skill-item h4 i {
    margin-right: 10px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--dark-bg);
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card p {
    flex-grow: 1;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Terminal Effect */
.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: rgba(5, 5, 5, 0.95);
        width: 100%;
        text-align: center;
        transition: right 0.3s;
        border-top: 1px solid var(--primary-color);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    #about .card p,
    #contact .card p {
        font-size: 1.05rem;
    }
    
    .contact-item span {
        font-size: 0.95rem;
    }

    .hacker-image {
        width: 250px;
        height: 250px;
    }

    .profile-placeholder {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    #about .card p,
    #contact .card p {
        font-size: 1rem;
    }
    
    .contact-item span {
        font-size: 0.9rem;
    }

    .hacker-image {
        width: 200px;
        height: 200px;
    }

    .profile-placeholder {
        font-size: 3rem;
    }

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

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