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

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Smooth page loading animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
}

header {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    z-index: 1001;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    padding: 0.1rem 0;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    padding-left: 170px;
}

.nav-links a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #5a3ff6;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #5a3ff6;
}

.nav-links a:hover::after {
    width: 100%;
}



.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #2d3748;
    cursor: pointer;
    z-index: 1001;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding-left: 150px;
    margin-right: -10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-links i {
    font-size: 1.2rem;
    color: #2d3748;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #5a3ff6;
}

.social-links a:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 6rem 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.left-content, .right-content {
    flex: 1;
    max-width: 400px;
}

.center-content {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.center-content::before {
    content: '<div>\a    <img>\a        <h1>Hello World</h1>\a    </img>\a</div>';
    position: absolute;
    white-space: pre;
    font-family: monospace;
    color: rgba(49, 130, 206, 0.1);
    font-size: 1.2rem;
    z-index: -1;
    transform: scale(1.5);
}

.center-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 20%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
    100% {
        transform: translateX(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
    line-height: 1.2;
}

.right-content h1 {
    color: #5a3ff6;
}

.hero p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 2rem;
}

.about-buttons {
    display: flex;
    gap: 1.5rem;
}

.about-buttons a {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-resume {
    border: 1px solid #5a3ff6;
    color:#5a3ff6;
    background-color: transparent;
}

.btn-biography {
    border: 1px solid #5a3ff6;
    color:#5a3ff6;
}

.btn-resume:hover {
    background-color: #5a3ff6;
    color: white;
}

.btn-biography:hover {
    background-color:#5a3ff6;
    color: white;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

 /* Skills Section  */
.skills-section {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.skills-heading {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
}

.skills-content-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-developer-box,
.skills-brandist-box {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills-category-heading {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skills-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.skills-item-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.skills-item-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #e2e8f0;
}

.skills-item-tag i {
    font-size: 1.1rem;
    margin-right: 8px;
}

.skills-item-tag .fa-html5 {
    color: #E34F26;
}

.skills-item-tag .fa-css3-alt,
.skills-item-tag .fa-css3 {
    color: #1572B6;
}

.skills-item-tag .fa-js {
    color: #F7DF1E;
}

.skills-item-tag .fa-react {
    color: #61DAFB;
}

.skills-item-tag .fa-node-js {
    color: #339933;
}

.skills-item-tag .fa-pencil-ruler {
    color: #FF6B6B;
}

.skills-item-tag .fa-desktop {
    color: #4CAF50;
}

.skills-item-tag .fa-bullseye {
    color: #9C27B0;
}

.skills-item-tag .fa-chart-line {
    color: #FF9800;
}

.skills-item-tag .fa-search {
    color: #2196F3;
}

.skills-item-tag .fa-shopping-cart {
    color: #FF5722;
}

 /* project section */
.projects {
    padding: 80px 5%;
    background-color: #f8f9fa;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    font-weight: 300; 
}

.projects h2::before,
.projects h2::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background-color: rgba(74, 85, 104, 0.2);
}

.projects h2::before {
    width: 230px;
    left: 0;
}

.projects h2::after {
    width: 230px;
    right: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12cm, 1fr)); 
    gap: 2rem;
    justify-items: center;
    padding: 2rem 0; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.project-card {
    width: 14cm;
    height: 10cm;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff; 
    transition: all 0.4s ease-in-out;
    position: relative;
    cursor: pointer; 
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease;
}

/* Project card overlay */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(138, 43, 226, 0.7); 
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Project details container */
.project-card::after {
    content: attr(data-project-name);
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    width: 90%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 1px;
    line-height: 1.2;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -70%);
}

/* Project technologies */
.project-tech {
    position: absolute;
    top: 48%; 
    left: 50%;
    transform: translate(-50%, 0);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.5em 1.2em;
    
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
    text-align: center;
    margin-top: 0; 
    font-weight: 500;

    pointer-events: none;

}

/* Project card hover effects */
.project-card:hover {
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); 
    border: 1px solid rgba(49, 130, 206, 0.3); 
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -80%);
}

.project-card:hover img {
    transform: scale(1.05); 
}

/* Project buttons */
.project-buttons {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.project-card:hover .project-buttons {
    opacity: 1;
    transform: translateY(0);
}

.project-btn-demo, .project-btn-github {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: white;
    color: #5a3ff6;
    border: none;
    cursor: pointer;
}

.project-btn-demo:hover, .project-btn-github:hover {
    background-color: #5a3ff6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}


.project-card:hover .project-tech {
    opacity: 1;
}

.viewmore-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem,;
    padding: 10px;
}
.view-more{
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    border: solid 1px;
    border-radius: 8px;
    padding: 10px 40px;
    color: #5a3ff6;
    text-decoration: none;
    text-align: center;
    background: #fff;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.view-more:hover {
    background:#5a3ff6;
    color: #fff;
    box-shadow: 0 4px 16px rgba(33,150,243,0.1), 0 1.5px 5px rgba(33,150,243,0.14);
    border-color:#5a3ff6;
    text-decoration: none;
    transform: translateY(-3px) scale(1.04);
}

/* Blog Section */
.blogs {
    padding: 80px 5%;
    background-color: #f8f9fa;
}

.blogs h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    font-weight: 300;
}

.blogs h2::before,
.blogs h2::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background-color: rgba(74, 85, 104, 0.2);
}

.blogs h2::before {
    width: 230px;
    left: 0;
}

.blogs h2::after {
    width: 230px;
    right: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 0.7rem;
}

.blog-desc {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.blog-readmore {
    color: #5a3ff6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-readmore:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 80px 5% 60px 5%;
    text-align: center;
}

.contact-title {
    color: #5a3ff6;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.contact-subtitle {
    color: rgb(56, 53, 53);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 200;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
}

.contact-field.full-width {
    flex: 2 1 100%;
    width: 100%;
}

.contact-field label {
    color: #5a3ff6;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #5a3ff6;
    background: transparent;
    font-size: 1.1rem;
    color: #4a3fc4;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom: 1px solid #5a3ff6;
}

.contact-submit {
    margin: 2.5rem auto 0 auto;
    padding: 1rem 0;
    width: 320px;
    background: #fff;
    color: #5a3ff6;
    border: 1px solid #5a3ff6;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 100;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

.contact-submit .arrow {
    font-size: 1.3em;
    margin-left: 0.5em;
    transition: transform 0.2s;
}

.contact-submit:hover {
    background: #5a3ff6;
    color: #fff;
    border-color: #5a3ff6;
    box-shadow: 0 4px 16px rgba(90,63,246,0.08), 0 1.5px 5px rgba(90,63,246,0.14);
    transform: translateY(-3px) scale(1.04);
}

.contact-submit:hover .arrow {
    transform: translateX(6px);
}



/* Responsive Styles */
@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2% 3rem 2%;
        min-height: unset;
    }
    .left-content, .right-content, .center-content {
        max-width: 100%;
        flex: unset;
    }
    .center-content img {
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    /* Mobile Navigation Styles */
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-container.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .social-links {
        padding-left: 0;
        margin-right: 0;
        margin-top: 2rem;
    }
    
    /* Project and Blog Grid Styles */
    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .project-card {
        width: 100%;
        height: 250px;
        min-width: unset;
        max-width: 100%;
    }
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    nav {
        padding: 0.8rem 2%;
    }
    .hero {
        padding: 2.5rem 2% 2rem 2%;
    }
    .center-content img {
        max-width: 220px;
    }
    
    /* Mobile Navigation Adjustments */
    .nav-container {
        width: 80%;
    }
    
    .mobile-nav-toggle {
        font-size: 1.3rem;
    }
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    .about-image img {
        width: 180px;
        height: 180px;
    }
    .skills-content-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .project-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    .project-card, .blog-card {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        height: 220px;
    }
    .blog-card img {
        height: 120px;
    }
    .contact-form {
        padding: 0 0.5rem;
    }
    .contact-row {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-submit {
        width: 100%;
        min-width: unset;
    }
    .left-content h1 {
        margin-top: 3.5rem;
        font-size: 2rem;
        display: block;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .hero h1 {
        font-size: 2rem;
    }
    .about-title, .skills-heading, .projects h2, .blogs h2, .contact-title {
        font-size: 1.5rem;
    }
    .center-content img {
        max-width: 120px;
    }
    .project-card, .blog-card {
        height: 160px;
    }
    
    /* Mobile Navigation Adjustments */
    .nav-container {
        width: 70%;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    .blog-card img {
        height: 70px;
    }
}


