/* --- Global Reset & Base --- */
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.header {
    margin-top: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

li a {
    text-decoration: none;
    color: black;
    font-size: 22px;
}

.social-links a {
    text-decoration: none;
    color: black;
    font-size: 24px;
    margin-left: 10px;
}

/* --- Hero Section --- */
.hero-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.img {
    border-radius: 50%;
    height: clamp(200px, 50vw, 300px);
    width: clamp(200px, 50vw, 300px);
    overflow: hidden;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(28px, 8vw, 48px);
    font-weight: bolder;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto 0px auto;
}

/* --- Buttons --- */
.action {
    display: flex;
    justify-content: center;
    gap: 15px;

}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
}

.download {
    background-color: #2b2b2b;
    color: white;
    border: none;
}

.hire {
    color: #000;
    border: 1px solid #2b2b2b;
}

.download:hover, .hire:hover {
    background-color: #444;
    color: white;
    opacity: 0.9;
}

/* --- Portfolio Grid --- */
.portfolio-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f4f4f4;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 33, 45, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
a {
    text-decoration: none;
    color: inherit;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.link-icon {
    font-size: 3rem;
    display: block;
}

.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item:hover .overlay-content { transform: translateY(0); }
.portfolio-item:hover img { transform: scale(1.1); }

/* --- Tech Stack --- */
.my-expertise {
    font-size: 18px;
    text-align: center;
    padding: 40px 0;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.tech-stack-img img {
    height: 35px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.tech-stack-img img:hover {
    filter: grayscale(0%);
}

/* --- Footer --- */
.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 100px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-container h4 {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.footer-links ul {
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bbb;
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}


@media (max-width: 768px) {
    ul { gap: 15px; }
    li a { font-size: 16px; }
    .logo h2 { font-size: 20px; }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .action {
        flex-direction: column;
        align-items: center;
    }
    .btn { width: 100%; text-align: center; }
}
/* Footer Styling */
.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 50px 20px 20px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-container h4 {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 0px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}
