/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0b0f12;
    --second-bg-color: #12181f;
    --text-color: #ffffff;
    --main-color: #00f0ff;
    /* Glowing Cyan Accent */
    --main-glow: rgba(0, 240, 255, 0.6);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

span {
    color: var(--main-color);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 7%;
    background: rgba(11, 15, 18, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-glow);
}

.navbar a {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 8px var(--main-glow);
}

/* Sections Styling with Comfortable Spacing */
section {
    padding: 4.5rem 7% 2.5rem;
}

.heading {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Home Section */
.home {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-top: 7.5rem;
}

.home-content {
    max-width: 600px;
}

.home-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h1 span {
    color: var(--main-color);
    text-shadow: 0 0 15px var(--main-glow);
}

.home-content h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0.8rem 0;
}

.home-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0c4de;
    margin-bottom: 1.8rem;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.8rem;
    height: 2.8rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--main-color);
    transition: 0.3s ease;
    box-shadow: 0 0 8px var(--main-glow);
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-3px);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

/* Profile Image Box */
.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--main-color), transparent);
    box-shadow: 0 0 35px var(--main-glow), inset 0 0 15px var(--main-glow);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* About Section */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--second-bg-color);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.about-img {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 100%;
    max-width: 300px;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-glow);
    transition: 0.3s ease;
}

.about-img img:hover {
    box-shadow: 0 0 35px var(--main-color);
    transform: scale(1.02);
}

.about-content {
    flex: 1 1 500px;
}

.about-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.tech-focus {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.tech-focus h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.focus-tags span {
    background: rgba(0, 240, 255, 0.08);
    color: var(--main-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
    transition: 0.3s;
}

.focus-tags span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 12px var(--main-color);
}

/* Timeline (Education & Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--main-color);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--main-color);
    margin-bottom: 0.3rem;
}

.timeline-content {
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.timeline-content ul {
    margin-left: 1.2rem;
    font-size: 0.88rem;
    color: #cbd5e1;
}

/* Projects Cards Layout */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.project-card {
    background: var(--second-bg-color);
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.project-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.06);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.tech-stack {
    display: block;
    font-size: 0.82rem;
    color: var(--main-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.project-card p {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--main-color);
    font-weight: 500;
    transition: 0.3s ease;
    align-self: flex-start;
}

.project-btn:hover {
    text-shadow: 0 0 8px var(--main-glow);
    transform: translateX(3px);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.skill-category h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--main-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: rgba(0, 240, 255, 0.1);
    color: #ffffff;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Contact Section & Quick Cards */
.contact-info-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--second-bg-color);
    padding: 0.9rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: 0.3s;
}

.info-card i {
    color: var(--main-color);
    font-size: 1.2rem;
}

.info-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-glow);
    transform: translateY(-3px);
}

.contact form {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact .input-box input,
.contact textarea {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 8px;
    margin: 0.4rem 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.contact .input-box input {
    width: 49%;
}

.contact textarea {
    resize: none;
}

.contact .btn {
    margin-top: 1rem;
}

/* Floating WhatsApp Button Styling & Animation */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.8);
    color: #ffffff;
}

/* Pulse animation effect */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    padding: 1.5rem 7%;
    background: var(--second-bg-color);
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .home {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        padding-top: 6rem;
    }

    .about-container {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .focus-tags {
        justify-content: center;
    }

    .social-icons,
    .btn-group {
        justify-content: center;
    }

    .img-box {
        width: 270px;
        height: 270px;
    }
}

@media (max-width: 600px) {
    .contact .input-box input {
        width: 100%;
    }

    .home-content h1 {
        font-size: 2.4rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}