@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Libertinus+Serif:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
    --dark-clr: #081d2c;
    --second-dark-clr: #112e42;
    --text-clr: #f1f5f9;
    --light-text-clr: #c9d9e8;
    --global-clr: #0fbbff;
    --btn-clr: #ff499e;
}

:root.light-mode {
    --dark-clr: #ffffff;
    --second-dark-clr: #f2f5f9;
    --text-clr: #1a1a1a;
    --light-text-clr: #333333;
    --global-clr: #0077ff;
    --btn-clr: #ff006e;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

html {
    overflow-x: hidden;
    line-height: calc(1em + 0.5rem);
    scroll-behavior: smooth;
}

body {
    font-family: "Jost", sans-serif;
    background: var(--dark-clr);
    color: var(--text-clr);
    line-height: 1.3;
}

/* preloader */

#preloader {
    background: #000 url(dark\ theme\ icon/loading.gif) no-repeat center;
    background-size: 15%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 1005;
}


/* all sub heading style */

.sub-heading h2 {
    padding: 20px;
    margin: 40px 20px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sub-heading h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--global-clr), var(--btn-clr));
    margin: 10px auto 0;
    border-radius: 2px;
}


/* Header */

header {
    width: 100%;
    background: var(--dark-clr);
    z-index: 1;
    padding: 1.5rem 0;
    position: fixed;
    height: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 3%;
}

nav .fa {
    display: none;
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-clr);
}

.logo span {
    color: var(--global-clr);
}

.navbar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    position: relative;
}

.navbar ul li a,
.mode-toggle {
    position: relative;
    font-size: 1.3rem;
    font-weight: 500;
    margin-left: 20px;
    color: var(--text-clr);
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--global-clr);
}

header .navbar ul li a::after {
    content: '';
    position: absolute;
    background: var(--global-clr);
    height: 3px;
    width: 0;
    left: 0;
    bottom: -2px;
    pointer-events: none;
}

header .navbar ul li a:hover::after,
header .navbar ul li a.active::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.mode-toggle {
    width: 30px;
    cursor: pointer;
}


.cvbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--btn-clr);
    color: var(--text-clr);
    padding: 12px;
    margin: 0 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--btn-clr);
    cursor: pointer;
    transition: .5s;
    white-space: nowrap;
}

.cvbtn:hover {
    box-shadow: 0 0 5px var(--btn-clr),
        0 0 10px var(--btn-clr),
        0 0 15px var(--btn-clr);
}

/* Home Section */

.hero-container {
    padding-top: 9rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* padding: 8rem 10%; */
}

.hero-image {
    height: 300px;
    width: 300px;
    min-width: 200px;
    border-radius: 50%;
    overflow: hidden;
    transition: filter 1s ease, transform 1s ease;
}

.hero-image:hover {
    filter: drop-shadow(0 0 60px var(--global-clr));
}

.hero-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.hero-content {
    max-width: 50%;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.hero-content h2 span {
    color: var(--global-clr);
}

.hero-content p {
    font-size: 1.2rem;
    margin: 2rem 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    display: inline-flex;
    font-size: 2rem;
    background: transparent;
    color: var(--global-clr);
    transition: .5s;
}

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

.hero-btn {
    display: flex;
    gap: 1.5rem;
}

.hero-btn .btn:nth-child(2) {
    background: transparent;
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2)::before {
    background-color: var(--global-clr);
}

.hero-btn .btn:nth-child(2):hover {
    color: var(--dark-clr);
}

.hero-btn .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 100%;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 0;
    color: var(--dark-clr);
    background: var(--global-clr);
    border: 2px solid var(--global-clr);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    color: var(--global-clr);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--dark-clr);
    transition: .5s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* About Section Styling */

#about {
    scroll-margin-top: 120px;
}

.about-section {
    padding: 40px 20px;
    background-color: var(--dark-clr);
    color: var(--text-clr);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.about-section p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.15rem;
    text-align: justify;
    padding: 25px 30px;
}

/* image section */

#skill {
    scroll-margin-top: 120px;
}

/* Container section styling */
.skills {
    padding: 0px 20px 40px 20px;
    background: linear-gradient(135deg, var(--second-dark-clr), var(--second-dark-clr));
    border-radius: 20px;
    max-width: 1200px;
    margin: auto;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* .skills h2 {
    padding-top: 75px;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    color: var(--text-clr);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
} */

.skills p {
    width: 100%;
    text-align: center;
    color: var(--light-text-clr);
    font-size: 1.1rem;
    margin-top: -1rem;
    padding-top: 20px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Each skill card */
.skills figure {
    width: 120px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
}

/* Hover effect for interaction */
.skills figure:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Image styling */
.skills img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

/* Optional hover zoom for image */
.skills figure:hover img {
    transform: scale(1.1);
}

/* Caption styling */
.skills figcaption {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-top: 5px;
}

/* Education Section Styling */

#Education {
    scroll-margin-top: 120px;
}


.work {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, var(--dark-clr));
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.grid_item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    max-width: 320px;
    height: 420px;
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    background: var(--second-dark-clr);
    border: 1px solid var(--second-dark-clr);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
    cursor: pointer;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.img_container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .img_container img {
    transform: scale(1.1);
}

.card_container {
    padding: 20px;
    text-align: center;
    color: var(--text-clr);
}

.card_container h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--global-clr);
}

.card_container p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-clr);
}

/* Project Section */

#projects {
    scroll-margin-top: 120px;
}


.project {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
    background: var(--dark-clr);
}

.project div {
    background: var(--second-dark-clr);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
}

.project dl {
    margin-bottom: 1.5rem;
}

.project dt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--global-clr);
    margin-bottom: 0.5rem;
}

.project dd {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--light-text-clr);
}

.project button {
    margin: 0.5rem 0.5rem 0 0;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project button a {
    color: var(--text-clr);
    text-decoration: none;
    display: block;
}

.project button:first-of-type {
    background: var(--btn-clr);
    box-shadow: 0 0 8px var(--btn-clr);
}

.project button:first-of-type:hover {
    background: transparent;
    border: 2px solid var(--btn-clr);
}

.project button:last-of-type {
    background: var(--global-clr);
    box-shadow: 0 0 8px var(--global-clr);
}

.project button:last-of-type:hover {
    background: transparent;
    border: 2px solid var(--global-clr);
}


/* Contact Section */

#contacts {
    scroll-margin-top: 120px;
}

#contacts p {
    text-align: center;
    font-size: 20px;
    color: var(--light-text-clr);
}

.contact {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--second-dark-clr);
    border-radius: 15px;
    max-width: 600px;
    margin: 3rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-clr);
    text-align: start;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    resize: none;
    transition: 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--global-clr);
    outline: none;
    box-shadow: 0 0 8px var(--global-clr);
}

.contact button {
    background: var(--btn-clr);
    color: var(--text-clr);
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact button:hover {
    background: var(--global-clr);
    transform: translateY(-2px);
}

/* Footer Section */

footer {
    background: var(--dark-clr);
    color: var(--text-clr);
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 2px solid var(--global-clr);
    font-family: 'Poppins', sans-serif;
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

footer h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--global-clr);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

footer ul li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

footer ul li i {
    color: var(--global-clr);
    font-size: 1.2rem;
}

footer ul li:hover {
    color: var(--global-clr);
    cursor: pointer;
}

footer a {
    color: var(--text-clr);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer a:hover {
    color: var(--global-clr);
    text-decoration: underline;
}

footer ul li:hover {
    color: var(--global-clr);
    cursor: pointer;
}

.whatsapp img {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    cursor: pointer;
    z-index: 1000;
}


/* Optional: Responsive styling */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }

    footer p {
        font-size: 1rem;
    }

    footer h4 {
        font-size: 1.2rem;
    }
}