/* Full width for skills section */
.skills {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f4f7ff;
    box-shadow: 0 2px 24px rgba(74,107,255,0.04);
    z-index: 1;
}

.skills .container {
    max-width: 1400px;
}

@media screen and (max-width: 1200px) {
    .skills .container {
        max-width: 100vw;
        padding: 0 10px;
    }
}
/* Custom Skills Flex and My Skills Box */
.skills-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.my-skills-box {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 107, 255, 0.07);
    padding: 32px 24px;
    min-width: 220px;
    max-width: 300px;
    margin-top: 20px;
    flex: 1 1 220px;
}

.my-skills-box h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 18px;
    text-align: center;
}

.my-skills-list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--dark-color);
}

.my-skills-list li {
    background: #e9ecef;
    border-radius: 6px;
    padding: 8px 14px;
    transition: background 0.2s;
    font-weight: 500;
}
.my-skills-list li:hover {
    background: var(--primary-color);
    color: #fff;
}

@media screen and (max-width: 991px) {
    .skills-flex {
        flex-direction: column;
        gap: 30px;
    }
    .my-skills-box {
        margin-top: 0;
        max-width: 100%;
    }
}
/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background-color: #3a5bef;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.2);
}

.small-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

#navbar.sticky {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
}

#navbar.sticky .logo {
    color: var(--dark-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

#navbar.sticky .nav-link {
    color: var(--dark-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

#navbar.sticky .bar {
    background-color: var(--dark-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.cta-buttons {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 30% 10%;
    overflow: hidden;
    margin: 0 auto;
    border: 5px solid var(--primary-color);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-weight: 600;
    color: var(--dark-color);
}

.info-value {
    color: var(--secondary-color);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    height: 200px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

/* Image overlay for portfolio items */
.portfolio-img {
    position: relative;
}

.img-overlay {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.portfolio-item:hover .img-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(74,107,255,0.18);
    transform: translateY(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overlay-btn:hover {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(74,107,255,0.28);
}

/* Make overlay button accessible on small screens */
@media screen and (max-width: 576px) {
    .img-overlay {
        background: rgba(0,0,0,0.55);
    }
    .overlay-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.portfolio-links {
    display: flex;
    gap: 10px;
}

/* Skills Section */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}



.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.3);
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.contact-form {
   text-align: center;
     background-color: #fff; 
    padding: 80px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
}
 

.contact-email {
    margin-bottom: 12px;
    font-size: 0.98rem;
    color: var(--dark-color);
}

.contact-email a {
    color: var(--primary-color);
    margin-left: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #3a5bef;
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-link {
        color: var(--dark-color);
        font-size: 1.2rem;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        flex: 1 1 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
}