@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(183, 75, 75, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 9%;
    color: white;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(183, 75, 75, 0.2);
    animation: slideDown 0.5s ease;
}

.logo img {
    width: 10px; 
    height: 10px;
    object-fit: contain;
}

.logo {
    width: 80px; 
    height: 50px;
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2.5rem;
    color: white;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px) {
    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        display: none;
        top: 5rem;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section {
    min-height: 100vh;
    padding: 6rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: #b74b4b;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
  width: 32vw;
  border-radius:
50%;
  box-shadow: 0 0 25px solid #b74b4b;
  cursor: pointer;
  transition:
0.2s linear;
  border-radius:
50%;
  animation:
float 1.5s infinite alternate;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.2) translateY(-8px);
    background-color: #b74b4b;
    box-shadow: 0 5px 25px rgba(183, 75, 75, 0.5);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 25px rgba(183, 75, 75, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(183, 75, 75, 0.8);
    }
    100% {
        box-shadow: 0 5px 25px rgba(183, 75, 75, 0.5);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: transparent;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150%;
    height: 150%;
    background-color: #b74b4b;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        margin: 2rem 4rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}
#moreText li {
    font-size: 1.6rem !important;
    line-height: 1.6;
}
.skills-section {
    padding: 50px 20px;
    text-align: center;
    background: black;
}

.skills-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    perspective: 1000px;
    padding: 2rem;
}

.skill {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(183, 75, 75, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 0;
    animation: skillFadeIn 0.6s ease-out forwards;
}

@keyframes skillFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill:hover {
    transform: translateZ(20px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 15px 35px rgba(183, 75, 75, 0.2);
    border-color: rgba(183, 75, 75, 0.3);
}

.skill img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(183, 75, 75, 0.2);
}

.skill:hover img {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 767px) {
    .skills {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
}
/* Certificates Section */
.certificates-section {
    padding: 50px 20px;
    text-align: center;
    background: black;
}

.certificates-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.certificates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1000px;
}

.certificate {
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(183, 75, 75, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.certificate:hover {
    transform: translateZ(20px) scale(1.02);
    box-shadow: 0 15px 35px rgba(183, 75, 75, 0.2);
    border-color: rgba(183, 75, 75, 0.3);
}

.certificate img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate:hover img {
    transform: scale(1.05);
}

.certificate img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.certificate:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(41, 36, 36, 0.8);
}
@media (max-width: 767px) {
    .certificates {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }}

/* Projects Section */
.projects-section {
    padding: 50px 20px;
    background: black;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1000px;
}

.project {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(183, 75, 75, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.project:hover {
    transform: translateZ(30px);
    box-shadow: 0 20px 40px rgba(183, 75, 75, 0.2);
    border-color: rgba(183, 75, 75, 0.3);
}

.project img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover img {
    transform: scale(1.05);
}

.project img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.project button {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 2rem;
    background-color: rgba(183, 75, 75, 0.1);
    color: #fff;
    border: 2px solid #b74b4b;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150%;
    height: 150%;
    background-color: #b74b4b;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.project button:hover {
    color: white;
}

.project button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.project button:hover {
    background: #ff3333;
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }}
    
/* Contact Section */
.contact-section {
    padding: 50px 20px;
    background: black;
    text-align: center;
    position: relative;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form {
    max-width: 60rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid rgba(183, 75, 75, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: formAppear 0.6s ease-out;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(183, 75, 75, 0.2);
    border-radius: 1rem;
    margin: 0.7rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: rgba(183, 75, 75, 0.5);
    box-shadow: 0 0 15px rgba(183, 75, 75, 0.2);
    transform: translateY(-2px);
}

.contact-form button {
    margin-top: 2rem;
    cursor: pointer;
    background: transparent;
    color: #b74b4b;
    font-weight: 500;
    border-radius: 2rem;
    padding: 1.2rem 3rem;
    border: 2px solid #b74b4b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150%;
    height: 150%;
    background-color: #b74b4b;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.contact-form button:hover {
    color: white;
}

.contact-form button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.contact-form button:hover {
    background: #845c54;
}

footer {
    background: #111;
    color: whitesmoke;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 0.7px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
}


.contact-section {
    padding: 60px 20px;
    background: linear-gradient(to right, #000000, #1a1a1a);
    text-align: center;
    position: relative;
    color: white;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(183, 75, 75, 0.4);
    box-shadow: 0 8px 20px rgba(183, 75, 75, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 4rem;
    animation: fadeIn 1s ease-out forwards;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #b74b4b;
    transition: 0.4s ease;
    color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 10px #b74b4b;
    background-color: rgba(255, 255, 255, 0.1);
}
#scrollToTopBtn {
    background-color: #b74b4b;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#scrollToTopBtn:hover {
    background-color: #ff3333;
    transform: scale(1.1);
}
/* Animations */
@keyframes float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#response-message {
    display: none;
    color: white;
    background-color: #b74b4b;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 4rem 5% 3rem;
    }

    .home .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 3rem;
    }

    .home-content p {
        font-size: 1.4rem;
    }

    .social-icons a {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
}



/* Theme Toggle Button */
.theme-toggle-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatButton 3s ease-in-out infinite;
}

@keyframes floatButton {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.theme-toggle {
    background-color: rgba(183, 75, 75, 0.1);
    border: 2px solid #b74b4b;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.3);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #FFD700;
    transform: scale(1.1) rotate(180deg);
    background-color: #b74b4b;
    box-shadow: 0 0 30px rgba(183, 75, 75, 0.5);
}

body.light-mode .theme-toggle {
    background-color: rgba(183, 75, 75, 0.1);
    color: #b74b4b;
    border-color: #b74b4b;
}

body.light-mode .theme-toggle:hover {
    color: #FFD700;
    background-color: #b74b4b;
}

@media (max-width: 768px) {
    .theme-toggle-container {
        right: 20px;
        bottom: 20px;
    }
    .theme-toggle {
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}





/* Light Mode */
body.light-mode {
    background-color: #fdf5e6;
    color: #333;
}



body.light-mode .home {
    background-color: #fdf5e6;
    color: #333;
}

body.light-mode .logo {
    background-image: url(logoo.png);
    background-size: cover;
    background-position: center;
  
}

body.light-mode .logo img {
    background-image: url(logoo.png);
    background-size: cover;
    background-position: center;
    
}

body.light-mode .btn {
    size: 150px;
    background-color: #fdf5e6;
    border-color: #333;
    color: #333;
}

body.light-mode .btn:hover {
    background-color: #b74b4b;
    color: white;
}

body.light-mode .social-icons a {
    border-color: #333;
    color: #333;
}

body.light-mode .social-icons a:hover {
    background-color: #b74b4b;
    color: white;
}

body.light-mode header {
    background-color: #fff0e5;
    color: black;
}
body.light-mode nav a {
    background-color: #fff0e5;
    color: black;
}

body.light-mode nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

body.light-mode .skill {
    background-color: #fff0e5;
    color: black;
}

body.light-mode .skills-section {
    background-color: #fff0e5;
    color: black;
}

body.light-mode .projects-section {
    background-color: #fff0e5;
    color: black;
}

body.light-mode .project {
    background-color: #fff0e5;
    color: black;
}

body.light-mode .project img {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

body.light-mode .project button {
    background-color: #d0a77c;
}

body.light-mode .certificates-section {
    background-color: #fff0e5;
    color: black;
}

body.light-mode .contact-section {
    background-color: #fff0e5;
    color: black;
}

body.light-mode .certificate {
    background-color: #fff0e5;
    color: black;
    border: none;
    box-shadow: 0 8px 20px rgba(183, 75, 75, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(183, 75, 75, 0.2);
}

body.light-mode .certificate img {
    box-shadow: none;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

body.light-mode .contact-form {
    background: #faebd7;
}

body.light-mode .contact-form input, body.light-mode .contact-form textarea {
    background: #e2bc95;
    border-color: #ccc;
    color: #333;
}

body.light-mode .contact-form button {
    background: #e2bc95;
    border-color: #b74b4b;
    color: white;
}

body.light-mode .contact-form button:hover {
    background: #845c54;
}

body.light-mode footer {
    background: #d0a77c;
}

body.light-mode .theme-toggle {
    color: #333;
}

body.light-mode .theme-toggle:hover {
    color: #FFD700;
    transform: scale(1.1) rotate(180deg);
    background-color: #b74b4b;
    box-shadow: 0 0 30px rgba(183, 75, 75, 0.5);
}

/* Dark Mode (default) */
body {
    background-color: black;
    color: white;
}

.logo {
    background-image: url(logo-dark.png); /* Update to your dark mode logo */
    background-size: cover;
    background-position: center;
    color: #b74b4b;
}

.logo img {
    background-image: url(logo-dark.png); /* Update to your dark mode logo */
    background-size: cover;
    background-position: center;
    color: #b74b4b;
}

.btn {
    background-color: black;
    border-color: #b74b4b;
    color: #b74b4b;
}

.btn:hover {
    background-color: #b74b4b;
    color: black;
}

.social-icons a {
    border-color: #b74b4b;
    color: #b74b4b;
}

.social-icons a:hover {
    background-color: #b74b4b;
    color: white;
}

header {
    background-color: black;
    color: white;
}

.skill {
    background-color: black;
    color: white;
}

.skills-section {
    background-color: black;
    color: white;
}

.projects-section {
    background-color: black;
    color: white;
}

.project {
    background-color: black;
    color: white;
}

.project img {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.project button {
    background-color: #e60000;
}

.certificates-section {
    background-color: black;
    color: white;
}

.contact-section {
    background-color: black;
    color: white;
}

.certificate img {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.contact-form {
    background: #222;
}

.contact-form input, .contact-form textarea {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}

.contact-form button {
    background: #b74b4b;
    border-color: #b74b4b;
    color: white;
}

.contact-form button:hover {
    background: #845c54;
}

footer {
    background: #b74b4b;
}

/* Theme toggle styles are already defined above */
