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

:root {
    --primary-color: #00D4C8;
    --primary-dark: #00a89e;
    --bg-dark: #0f1923;
    --bg-card: #1a2a3a;
    --text-light: #e8f4f8;
    --text-gray: #8aacba;
    --border-color: #1e3044;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    background-color: #0f1923;
}

/* Animated Background */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-200px) translateX(-50px);
    }
    75% {
        transform: translateY(-100px) translateX(100px);
    }
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 60px;
    box-shadow: 0 5px 20px rgba(0, 255, 156, 0.1);
}

.logo {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: #ffffff;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;  /* Space between logo and text */
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;  /* Makes it circular */
    object-fit: cover;
}

.logo:hover .logo-image {
    transform: scale(1.1);  /* Grows on hover */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    position: relative;
}

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

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

nav a:hover::after {
    width: 100%;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

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

.terminal-line {
    font-family: "Courier New", monospace;
    color: var(--primary-color);
    font-size: 48px;
    margin-bottom: 20px;
    min-height: 60px;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin: 20px 0 40px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 156, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 156, 0.5);
}

/* Sections */
section {
    padding: 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

section h3 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
}

/* About & Background Sections */
#about p, #my-background p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 900px;
    text-align: justify;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill {
    padding: 20px 25px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 156, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.skill:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.2);
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 156, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 156, 0.2);
    border-left-width: 6px;
}

.project-card h4 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.project-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.project-card .btn {
    padding: 10px 20px;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

/* Contact Section */
#contact {
    text-align: center;
}

#contact p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

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

.social-links a {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    font-size: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.5);
}

.social-links a::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    background: var(--bg-card);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.social-links a:hover::before {
    opacity: 1;
    bottom: -45px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    color: #777;
    margin-top: 60px;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 15px 30px;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.98);
        width: 100%;
        padding: 30px;
        gap: 20px;
        transition: right 0.3s ease;
        border-top: 1px solid var(--border-color);
    }

    nav ul.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .terminal-line {
        font-size: 32px;
    }

    section {
        padding: 60px 30px;
    }

    section h3 {
        font-size: 28px;
    }

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

@media (max-width: 480px) {
    .terminal-line {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 40px 20px;
    }
}

