body {
    background-color: #121212;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Modern Floating Navbar */
nav {
    background-color: rgba(50, 50, 50, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav li {
    display: inline-block;
    margin: 0 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem; /* Increased font size */
    font-weight: bold; /* Made font bold */
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ccc;
}

/* Hero Section with Matrix Rain */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-image {
    border-radius: 50%;
    width: 150px;
    margin-bottom: 1rem;
}

#matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Button Styling */
.button {
    display: inline-block;
    background-color: #555;
    color: #eee;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #777;
}

/* Sections Styling */
section {
    padding: 4rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ccc;
    text-align: center;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.about-text {
    flex: 2;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Core Expertise Section */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.skill {
    background-color: #333;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.skill h3 {
    margin-bottom: 0.5rem;
    color: #eee;
}

.skill p {
    color: #ccc;
}

.skill:hover {
    transform: translateY(-5px);
}

/* Professional Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project {
    background-color: #333;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project h3 {
    margin-bottom: 1rem;
    color: #eee;
}

.project p {
    color: #ccc;
}

.project:hover {
    transform: translateY(-5px);
}

/* Experience Timeline */
.timeline {
    padding: 2rem;
}

.timeline-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 3px solid #555;
    position: relative;
}

.timeline-item i {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    font-size: 1.2rem;
    color: #ccc;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    color: #eee;
    font-size: 1.5rem;
}

.timeline-item h4 {
    margin-bottom: 1rem;
    font-weight: normal;
    color: #ccc;
    font-size: 1.1rem;
}

.timeline-item ul {
    list-style: disc;
    padding-left: 2rem;
    color: #ccc;
    font-size: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1rem;
    width: 15px;
    height: 15px;
    background-color: #555;
    border-radius: 50%;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.contact-content form {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.contact-content label {
    margin-bottom: 0.5rem;
    color: #eee;
}

.contact-content input,
.contact-content textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 5px;
}

.contact-content button {
    background-color: #555;
    color: #eee;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-content button:hover {
    background-color: #777;
}

.contact-info {
    flex: 1;
    padding: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #eee;
}

.contact-info a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ccc;
}

/* Social Links */
.contact-info .social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info .social-links a {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 1rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    nav a {
        font-size: 1rem; /* Smaller font size for smaller screens */
    }

    nav li {
        margin: 0 0.75rem; /* Reduced margin for smaller screens */
    }
}
