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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.binary-rain {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #00ff41;
    opacity: 0.5;
    animation: fall 18s linear infinite;
    will-change: transform;
    text-shadow: 0 0 5px #00ff41;
}

@keyframes fall {
    0% { 
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% { 
        opacity: 0.2;
    }
    90% { 
        opacity: 0.2;
    }
    100% { 
        transform: translateY(100vh);
        opacity: 0;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff41;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
  margin-right: 16px;
  display: block;
}

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

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff41;
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: #00ff41;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

main {
    margin-top: 60px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff41, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ff41; }
    to { text-shadow: 0 0 30px #00ff41, 0 0 40px #00ff41; }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    font-weight: bold;
}

.btn-secondary {
    background: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.btn::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;
}

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

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #00ff41;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
}

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

.skill-card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card h3 {
    color: #00ff41;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    transition: color 0.3s ease;
}

.skill-card li:hover {
    color: #00ff41;
}

.skill-card li::before {
    content: "▶ ";
    color: #00ff41;
}

.portfolio {
    background: linear-gradient(135deg, #2a2a2a, #121212);
    padding: 5rem 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    border: 1px solid #333;
    max-width: 1200px;
}

.portfolio h2 {
    color: #00ff41;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    text-align: center;
    position: relative;
}

.portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portfolio-item:hover::before {
    transform: scaleX(1);
}

.portfolio-item i {
    font-size: 3.5rem;
    color: #00ff41;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.portfolio-item:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.portfolio-item h3 {
    font-size: 1.7rem;
    color: #00ff41;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0;
    line-height: 1.5;
}

.portfolio-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #00ff41, #00cc33);
}

.timeline-item {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    position: relative;
}

.timeline-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    width: 45%;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #00ff41;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s infinite;
}

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

.contact {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 5rem 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    border: 1px solid #333;
    max-width: 1200px;
}

.contact h2 {
    color: #00ff41;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    text-align: center;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item i {
    font-size: 2rem;
    color: #00ff41;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
}

.contact-item h3 {
    color: #00ff41;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #e0e0e0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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