@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; text-decoration: none; border: none; outline: none; scroll-behavior: smooth; }

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: #fff;
    --main-color: #fcb346; /* GOLDEN YELLOW */
}

html { font-size: 62.5%; overflow-x: hidden; }
body { background: var(--bg-color); color: var(--text-color); }
section { min-height: 100vh; padding: 10rem 9% 2rem; }

.header { position: fixed; top: 0; left: 0; width: 100%; padding: 2rem 9%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.logo { font-size: 2.5rem; color: var(--text-color); font-weight: 700; }
.logo span { color: var(--main-color); }
.navbar a { font-size: 1.7rem; color: var(--text-color); margin-left: 4rem; transition: .3s; }
.navbar a:hover, .navbar a.active { color: var(--main-color); text-shadow: 0 0 10px var(--main-color); }

/* Hides the hamburger menu on desktop */
#menu-icon { display: none; }

.home { display: flex; justify-content: center; align-items: center; gap: 5rem; }
.home-content h1 { font-size: 5.6rem; font-weight: 700; }
.home-content h3 { font-size: 3.2rem; }
.home-img img { width: 25vw; border-radius: 50%; box-shadow: 0 0 3rem var(--main-color); border: 4px solid var(--main-color); }

.btn { display: inline-block; padding: 1.2rem 2.8rem; background: var(--main-color); border-radius: 4rem; box-shadow: 0 0 1rem var(--main-color); font-size: 1.6rem; color: #000; font-weight: 700; cursor: pointer; transition: .5s; }
.btn:hover { box-shadow: none; transform: scale(0.95); }

.about { display: flex; justify-content: center; align-items: center; gap: 4rem; background: var(--second-bg-color); }
.about-img img { width: 23vw; border-radius: 2rem; box-shadow: 0 0 2rem var(--main-color); }
.heading { font-size: 4.5rem; text-align: center; margin-bottom: 5rem; }
.heading span { color: var(--main-color); }

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.skills-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: .2rem solid var(--main-color);
    text-align: center;
    transition: .5s ease;
}

.skills-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 1.5rem var(--main-color);
}

.skills-box h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skills-list span {
    background: transparent;
    border: .1rem solid var(--main-color);
    padding: .8rem 1.5rem;
    border-radius: .5rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.experience-row { display: flex; flex-wrap: wrap; gap: 2rem; }
.experience-column { flex: 1 1 40rem; }
.content { padding: 2rem; background: var(--second-bg-color); border-radius: 1rem; border-left: 4px solid var(--main-color); }
.year { color: var(--main-color); font-weight: 600; margin-bottom: 1rem; }

.contact form { max-width: rem; margin: 0 auto; text-align: center; }
.contact form .input-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.contact form input, .contact form textarea { width: 100%; padding: 0.1rem; font-size: 1.6rem; background: var(--second-bg-color); color: #fff; border-radius: .8rem; margin: .7rem 0; }
.contact form textarea { grid-column: 2 / span 2; resize: none; }  

/* This targets the Typed.js text and the blinking cursor */
.multiple-text, .typed-cursor {
    color: var(--main-color) !important;
}

/* PORTFOLIO SECTION UPDATES */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced min-width */
    gap: 2rem;
}

.portfolio-box {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    height: 200px; /* Fixed height for a smaller, uniform look */
    border: 2px solid var(--main-color);
}

/* PORTFOLIO GRID */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.portfolio-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* SMALLER PROJECT BOX */
.portfolio-box {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 180px; /* Reduced Size */
    width: 100%;
    border: 2px solid var(--main-color);
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LINK BUTTON STYLE */
.project-link {
    display: inline-block;
    padding: .8rem 2.5rem;
    background: var(--main-color);
    border-radius: 2rem;
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
    transition: .3s ease;
    box-shadow: 0 0 1rem var(--main-color);
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: none;
    background: #fff;
}

/* OVERLAY ADJUSTMENT */
.portfolio-layer {
    background: linear-gradient(rgba(0,0,0,0.8), var(--main-color));
    padding: 1rem;
}

.portfolio-layer h4 { font-size: 1.8rem; color: #ffffff; }
.portfolio-layer p { font-size: 1.2rem; color: #ffffff; }

/* CENTERING THE BUTTON GROUP */
.contact-center-group {
    display: flex;
    justify-content: center; /* Centers everything horizontally */
    align-items: center;     /* Aligns icons vertically with button */
    gap: 1rem;               /* Precise spacing */
    margin-top: 1rem;
    width: 100%;
}

/* SOCIAL ICON VISIBILITY */
.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    transition: .5s ease;
}

/* Ensuring the actual icon (i tag) is visible */
.social-icon i {
    font-size: 2.5rem;
    color: var(--main-color); /* Matches your Golden Yellow theme */
}

.social-icon:hover {
    background: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.social-icon:hover i {
    color: var(--second-bg-color); /* Icon turns dark on hover for contrast */
}

/* Adjusting the button to remove bottom margins */
.contact form .btn {
    margin: 0; 
}
