@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    text-decoration: none; border: none; outline: none;
    font-family: 'Poppins', sans-serif;
}

html { font-size: 62.5%; scroll-behavior: smooth; }

body { background-color: black; color: white; overflow-x: hidden; }

header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 2rem 9%; background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); display: flex;
    justify-content: space-between; align-items: center; z-index: 1000;
}

.logo { font-size: 3rem; color: #b74b4b; font-weight: 800; }

nav a { font-size: 1.8rem; color: white; margin-left: 4rem; transition: 0.3s; }
nav a:hover, nav a.active { color: #b74b4b; border-bottom: 2px solid #b74b4b; }

section { min-height: auto; padding: 12rem 9% 5rem; }

.heading { text-align: center; font-size: 5rem; margin-bottom: 5rem; }
span { color: #b74b4b; }

/* Home Section */
.home { display: flex; align-items: center; gap: 8rem; }
.home-content h1 { font-size: 6rem; }
.home-content h3 { font-size: 3.5rem; }
.home-content p { font-size: 1.6rem; margin: 2rem 0; line-height: 1.6; }
.home-img img { width: 30vw; border-radius: 50%; box-shadow: 0 0 25px #b74b4b; }

.social-icons a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 4.5rem; height: 4.5rem; border: 0.2rem solid #b74b4b;
    font-size: 2.2rem; border-radius: 50%; margin-right: 1.5rem;
    color: #b74b4b; transition: 0.3s;
}

.social-icons a:hover { background: #b74b4b; color: black; transform: translateY(-5px); }

.btn {
    display: inline-block; padding: 1.2rem 2.8rem;
    border: 2px solid #b74b4b; border-radius: 4rem;
    font-size: 1.6rem; color: #b74b4b; font-weight: 600;
    transition: 0.3s; margin-top: 2rem;
}

.btn:hover { background: #b74b4b; color: black; }

/* Skills Section */
.skills-container { display: flex; align-items: center; gap: 6rem; }
.large-p { font-size: 1.8rem; line-height: 1.8; color: #efefef; margin-bottom: 2rem; }
.skills-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.skills-icons img { width: 6.5rem; transition: 0.3s; }
.skills-icons img:hover { transform: scale(1.2); filter: drop-shadow(0 0 10px #b74b4b); }

/* Projects Section */
/* Updated Projects Grid for Uniformity */
/* Projects Grid - Forced 2x2 Layout */
.projects-grid {
    display: grid;
    /* This creates exactly 2 columns */
    grid-template-columns: repeat(2, 1fr); 
    gap: 4rem; /* Increased gap for better spacing in 2x2 layout */
    margin-top: 3rem;
}

.project-card {
    background: #111;
    border: 2px solid #333;
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.4s ease;
}

.project-card:hover {
    border-color: #b74b4b;
    transform: translateY(-1rem);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.3);
}

.project-img {
    width: 100%;
    height: 250px; /* Slightly taller for the 2-column layout */
    overflow: hidden;
    border-bottom: 2px solid #b74b4b;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proj-info h3 {
    font-size: 2.4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.proj-info p {
    font-size: 1.6rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Responsive: Switch to 1 column on small screens */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Certificates & Contact */
/* Updated Certificates Styling for Uniform Sizes */
/* Updated Certificates Styling */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.cert-box {
    background: #111;
    border: 2px solid #b74b4b;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all boxes are same height */
    transition: 0.4s ease;
}

.cert-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.4);
}

.cert-img {
    width: 100%;
    height: 200px; /* Locked height for all images */
    overflow: hidden;
    background-color: #000;
    border-bottom: 2px solid #b74b4b;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps the whole certificate visible inside the box */
    padding: 5px;
}

.cert-info {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
}

.cert-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cert-info p {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.view-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: #b74b4b;
    color: black;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: 0.3s;
}

.view-btn:hover {
    background: white;
    transform: scale(1.05);
}

.contact form { max-width: 60rem; margin: 0 auto; text-align: center; }
.input-box { display: flex; flex-wrap: wrap; gap: 1rem; }
.input-box input, textarea { width: 100%; padding: 1.5rem; font-size: 1.6rem; color: white; background: #111; border-radius: 1rem; border: 1px solid #333; margin: 1rem 0; }

/* Animation */
.typing-text span::before { content: ""; animation: words 12s infinite; }
@keyframes words {
    0%, 25% { content: "Data Scientist"; }
    26%, 50% { content: "ML Engineer"; }
    51%, 75% { content: "C++ Programmer"; }
    76%, 100% { content: "Data Analyst"; }
}

@media (max-width: 768px) {
    .home { flex-direction: column; text-align: center; }
    .skills-container { flex-direction: column; }
    .home-img img { width: 70vw; }
}

/* Education Styling */
.education {
    background: #0a0a0a;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-box {
    border-left: .2rem solid #b74b4b;
}

.education-content .content {
    position: relative;
    padding-left: 2rem;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: #b74b4b;
    border-radius: 50%;
}

.content {
    padding-bottom: 3rem;
}

.content .year {
    font-size: 1.5rem;
    color: #b74b4b;
    padding-bottom: .5rem;
}

.content h3 {
    font-size: 2rem;
}

.content p {
    font-size: 1.6rem;
    padding-top: .5rem;
    color: #ccc;
}

.resume-btn-container {
    text-align: center;
    margin-top: 5rem;
}

/* Footer Styling */
/* Footer Container */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 3rem 9%;
    background: #111;
    border-top: .1rem solid #b74b4b;
}

.footer-text p {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Contact and Links Column */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 1.6rem;
}

.footer-contact span i {
    color: #b74b4b;
    margin-right: 1rem;
}

/* Specific styling for the visible LinkedIn/GitHub links */
.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.f-link a {
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s ease;
}

.f-link a i {
    color: #b74b4b;
    font-size: 1.8rem;
}

.f-link a:hover {
    color: #b74b4b;
    transform: translateX(5px);
}

/* Back to Top Button */
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: #b74b4b;
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: black;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem #b74b4b;
    background: white;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .f-link a {
        justify-content: center;
    }
}



