/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Background */
body {
    background: url("Portfolio_Bg.jpg") no-repeat center center/cover;
    height: 100vh;
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #272222; /* Red */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

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

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: rgb(239, 9, 9);
}
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* moves content to the left */
    padding-left: 8%; /* gives spacing from left edge */
    background-color: rgba(0, 0, 0, 0.6); /* overlay for visibility */
    color: white;
}

.hero-content {
    text-align: left; /* align text to left */
    max-width: 580px;
    transform: translateY(60px); /* moves content slightly lower */
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: #ff3333;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff3333;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s;
}

.btn:hover {
    background-color: white;
    color: #ff3333;
    transform: scale(1.05);
}
/* Projects Section */
.projects {
    background-color: black;
    color: white;
    padding: 80px 8%;
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    gap: 30px;
}


/* Project Card */
.project-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.3);
}

.project-image {
    width: 100%;
    height: 220px; /* increased from 180px */
    object-fit: cover;
    border-bottom: 2px solid #ff3333;
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    color: white;
    margin-bottom: 8px;
}

.project-info p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Tech Stack Buttons */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-btn {
    background-color: #ff3333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* GitHub Link */
.github-link {
    display: inline-block;
    color: #ff3333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: white;
}
html {
    scroll-behavior: smooth;
}


/* Contact Section */
.contact {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 80px 8%;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #ccc;
}

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

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #ff3333;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: 0.3s;
    font-size: 1rem;
}

.contact-btn i {
    font-size: 1.2rem;
}

.contact-btn:hover {
    background-color: white;
    color: #ff3333;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #000;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }
}

@media (max-width: 700px) {
    .projects-container {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }
}
