@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;
}
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

/* Added: Logo container for mobile */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8em;
    color: #555;
    cursor: default;
    flex: 1;
}

.logo span {
    color: #321ace;
}

/* Added: Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #555;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.navigation {
    display: flex;
    transition: all 0.3s ease;
}

.navigation a {
    font-size: 1em;
    color: #555;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    transition: .3s;
    padding: 5px 0;
}

.navigation a:hover {
    color: rgb(232, 10, 10);
}

.btn-talk {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    background: #7d2ae8;
    border-radius: 10px;
    border: 2px solid #7d2ae8;
    font-weight: 500;
    transition: .3s;
    white-space: nowrap;
}

.btn-talk:hover {
    color: #03569e;
    background: transparent;
}

/* Home Section - LEFT ALIGNED */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('https://i.ibb.co/twMPdz5Z/Aadi2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
}

/* Home Section Content - Left Aligned */
.home .content {
    max-width: 650px;
    color: #555;
    text-align: left; /* Changed from center to left */
    margin: 0; /* Removed auto margin for left alignment */
    padding-left: 20px; /* Added left padding */
}

.home .content h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    text-align: left;
}

.home .content h2 span {
    color: #321acee8;
}

.home .content h4 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: left;
}

.home .content p {
    padding: 10px 0 30px 0;
    line-height: 1.7;
    text-align: left;
    font-size: 1.1em;
    max-width: 600px;
}

/* Home Button Group - Left Aligned */
.home .btn-group {
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.home .btn-group a {
    color: #fff;
    text-decoration: none;
    padding: 14px 35px;
    background: #7d2ae8;
    border-radius: 10px;
    border: 2px solid #7d2ae8;
    font-weight: 500;
    transition: .3s;
    display: inline-block;
    font-size: 1.05em;
}

.home .btn-group a:hover:nth-child(1) {
    color: #03569e;
    background: transparent;
}

.home .btn-group a:nth-child(2) {
    color: #03569e;
    background: transparent;
}

.home .btn-group a:hover:nth-child(2) {
    color: #fff;
    background: #7d2ae8;
}

/* Home Social Icons - Left Aligned */
.home .social-icons {
    position: relative;
    bottom: 0;
    margin-top: 30px;
    display: flex;
    justify-content: flex-start; /* Changed from center to flex-start */
    gap: 20px;
}

.home .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #321ace;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    border: 1px solid #fff;
    outline: 2px solid #7d2ae8;
    transition: .3s;
}

.home .social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
}

.home .social-icons a i {
    color: #fff;
    font-size: 1.3em;
}

/* For other sections, keep content centered */
.about .content,
.portfolio .content,
.skills .content,
.blog .content,
.contact .content {
    max-width: 1000px;
    color: #555;
    text-align: center;
    margin: 0 auto;
}

/* Mobile Responsive for Home Section */
@media (max-width: 768px) {
    .home .content {
        text-align: center; /* Center on mobile for better appearance */
        padding-left: 0;
        margin: 0 auto;
    }
    
    .home .content h2,
    .home .content h4,
    .home .content p {
        text-align: center;
    }
    
    .home .btn-group {
        justify-content: center; /* Center buttons on mobile */
    }
    
    .home .social-icons {
        justify-content: center; /* Center icons on mobile */
    }
}

/* For larger screens, keep left alignment */
@media (min-width: 769px) {
    .home .content {
        margin-left: 5%; /* Add margin from left on larger screens */
    }
}

.about {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5% 50px;
}


.content {
    max-width: 1000px;
    color: #555;
    text-align: center;
    margin: 0 auto;
}

.content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.content h2 span {
    color: #321acee8;
}

.content h4 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.content p {
    padding: 10px 0 30px 0;
    line-height: 1.6;
}

/* Video Container */
.video-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 10px;
}

/* Button Group */
.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-group a {
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    background: #7d2ae8;
    border-radius: 10px;
    border: 2px solid #7d2ae8;
    font-weight: 500;
    transition: .3s;
    display: inline-block;
}

.btn-group a:hover:nth-child(1) {
    color: #03569e;
    background: transparent;
}

.btn-group a:nth-child(2) {
    color: #03569e;
    background: transparent;
}

.btn-group a:hover:nth-child(2) {
    color: #fff;
    background: #7d2ae8;
}

/* Social Icons */
.social-icons {
    position: relative;
    bottom: 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #321ace;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    border: 1px solid #fff;
    outline: 2px solid #7d2ae8;
    transition: .3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons a i {
    color: #fff;
    font-size: 1.2em;
}

/* Portfolio / Projects */
.portfolio {
    position: relative;
    width: 100%;
    display: flex;
    margin-top: 80px;
    text-align: center;
    align-items: center;
    padding: 80px 5% 50px;
    justify-content: center;
}

.portfolio .content {
    text-align: center;
    color: #555;
    width: 100%;
}

.portfolio .content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.portfolio .content h2 span {
    color: #321ace;
}

.portfolio .content h4 {
    font-size: 1.8em;
    margin-bottom: 30px;
}

/* Project Grid */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

/* Project Card */
.project-card {
    flex-basis: calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #321ace;
    text-align: center;
}

.project-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.project-card a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    background: #7d2ae8;
    border-radius: 5px;
    transition: 0.3s;
    align-self: center;
    display: inline-block;
}

.project-card a:hover {
    background: #03569e;
    color: #fff;
}

/* Blog Section */
.blog {
    position: relative;
    width: 100%;
    background: #f9f9f9;
    text-align: center;
    padding: 80px 5% 50px;
}

.blog .content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #555;
}

.blog .content h2 span {
    color: #321ace;
}

.blog .content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

/* Blog Card */
.blog-card {
    flex-basis: calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
    text-align: center;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.3em;
    color: #321ace;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    background: #7d2ae8;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-block;
}

.blog-card a:hover {
    background: #03569e;
}

/* Skills Section */
.skills {
    color: black;
    padding: 80px 5% 50px;
    text-align: center;
}

.skills-container {
    max-width: 800px;
    margin: auto;
}

.skills h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.skills h2 span {
    color:  #321ace;
}

/* Individual Skill */
.skill {
    margin-bottom: 20px;
    text-align: left;
}

.skill h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-bar {
    background: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    line-height: 40px;
    text-align: right;
    padding-right: 10px;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    animation: loadSkill 2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Different Colors for Each Skill */
.html-css { width: 85%; background: #ff5722; }
.javascript { width: 75%; background: #f7df1e; color: #000; }
.python { width: 90%; background: #4B8BBE; }
.mysql { width: 85%; background: #00758F; }
.bootstrap { width: 80%; background: #563D7C; }

/* Animation */
@keyframes loadSkill {
    from { width: 0; }
    to { width: inherit; }
}

/* Contact Section */
.contact {
    position: relative;
    width: 100%;
    padding: 80px 5% 50px;
    background: #f9f9f9;
    text-align: center;
}

.contact .content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #555;
}

.contact .content h2 span {
    color: #321ace;
}

.contact .content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    justify-content: center;
    padding: 0;
    align-items: center;
    margin-top: 30px;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.contact-form .input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .input-group input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    min-height: 150px;
    outline: none;
    margin-bottom: 20px;
}

.btn-submit {
    color: #fff;
    background: #7d2ae8;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: #5a1bb3;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #7d2ae8, #321ace);
    color: #fff;
    padding: 30px 5%;
    text-align: center;
}

footer .navigation-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

footer .navigation-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

footer .social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

footer .social-buttons a {
    text-decoration: none;
}

footer .social-buttons button {
    background: none;
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 1.5em;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

footer .social-buttons .linkedin {
    background: #0077b5;
}

footer .social-buttons .whatsapp {
    background: #25d366;
}

footer .social-buttons .instagram {
    background: #e4405f;
}

/* Button Hover Effects */
footer .social-buttons button:hover {
    transform: scale(1.1);
}

footer .social-buttons .linkedin:hover {
    background: #005983;
}

footer .social-buttons .whatsapp:hover {
    background: #1ab143;
}

footer .social-buttons .instagram:hover {
    background: #c13584;
}

footer p {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .project-card, .blog-card {
        flex-basis: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    
    .content h2 {
        font-size: 2.2em;
    }
    
    .content h4 {
        font-size: 1.6em;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide navigation by default on mobile */
    .navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Show navigation when mobile menu is open */
    .navigation.mobile-open {
        display: flex;
    }
    
    .navigation a {
        margin-right: 0;
        margin-bottom: 10px;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .navigation a:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .btn-talk {
        display: none; /* Hide Let's Talk button on mobile */
    }
    
    .home, .about, .portfolio, .skills, .blog, .contact {
        padding: 70px 5% 40px;
    }
    
    .home {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .about {
        margin-top: 60px;
        min-height: auto;
    }
    
    .portfolio {
        margin-top: 60px;
    }
    
    .content h2 {
        font-size: 2em;
    }
    
    .content h4 {
        font-size: 1.4em;
    }
    
    .project-card, .blog-card {
        flex-basis: 100%;
        max-width: 100%;
        min-height: auto;
        height: auto;
    }
    
    .project-card {
        min-height: 450px;
    }
    
    .blog-card {
        min-height: 450px;
    }
    
    .contact-form .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-group a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    footer .navigation-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
}