/* Global Styles */
:root {
    --primary: #00ff00;
    --secondary: #00ff00;
    --dark: #000000;
    --darker: #000000;
    --light: #ffffff;
    --gray: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    z-index: 1001;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

/* Toggle Button Style */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-toggle.active {
    transform: rotate(90deg);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        height: 100vh;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s ease;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-links.active {
        top: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(-30px);
        transition: 0.3s ease;
        width: 100%;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.6s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.7s; }
}

/* Mobile Styles */
/* Mobile Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--secondary);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
  }
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 5rem;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
                url('../images/encrypt.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
}

.profile-image {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

.hero-text {
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-top: 1rem;
    /* margin-bottom: 1.5rem; */
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    height: 2.5rem;
    overflow: hidden;
}

.hero-text h2 span {
    display: block;
    animation: slide 9s infinite;
}

.hero-text h2 span:nth-child(1) {
    animation-delay: 0s;
}

.hero-text h2 span:nth-child(2) {
    animation-delay: 3s;
}

.hero-text h2 span:nth-child(3) {
    animation-delay: 6s;
}

.hero-text p {
    font-size: 1rem;
    color: var(--light);
    margin-bottom: 3rem;
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.social-links a::before {
    display: none;
}

@keyframes slide {
    0%, 33% {
        transform: translateY(0);
    }
    34%, 66% {
        transform: translateY(-100%);
    }
    67%, 100% {
        transform: translateY(-200%);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text p {
        margin: 0 auto 3rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
    display: block;
  }
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 999;
    transition: all 0.3s ease;
  }

  .nav-links.show {
    display: flex !important; /* forcefully show */
  }
}
  .nav-links.show {
    display: flex;
  }

    .hero {
        padding: 6rem 5% 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .profile-image {
        max-width: 300px;
    }

    .services-section {
        padding: 8rem 1rem 3rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .service-card {
        padding: 2rem;
    }

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .profile-image {
        max-width: 250px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.3rem;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Card Styles */
.card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary);
    color: var(--text-color);
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary);
}

@media (max-width: 1075px) {
    .hero-content {
        grid-template-columns: 1fr 1.2fr; /* Don't collapse to single column */
        gap: 4rem;
        padding: 0 5%;
    }

    .hero-text h1 {
        font-size: 3rem; /* Slightly reduce font size if needed */
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .profile-image {
        max-width: 350px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    /* Remove hamburger menu display if any */
    .hamburger {
        display: none !important;
    }

    /* Navbar stays the same */
    .navbar {
        flex-direction: row;
        padding: 1.5rem 5%;
    }
}

@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr 1.2fr; /* Don't collapse to single column */
        gap: 4rem;
        padding: 0 5%;
    }

    .hero-text h1 {
        font-size: 3rem; /* Slightly reduce font size if needed */
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .profile-image {
        max-width: 350px;
    }

    .nav-links {
        gap: 1.5rem;
    }

}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr; /* Don't collapse to single column */
        gap: 4rem;
        padding: 0 5%;
    }

    .hero-text h1 {
        font-size: 3rem; /* Slightly reduce font size if needed */
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .profile-image {
        max-width: 300px;
    }

   .navbar {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
  }

  .nav-links {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }

  .logo {
    text-align: center;
    margin: 0;
  }

  .hamburger {
    display: none !important;
  }

}




/* Services Section Styles */
.services-section {
    padding: 6rem 2rem 4rem;
    background: #000000;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1 {
    font-size: 3rem;
    color: #00ff00;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    color: #ffffff;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #00ff00;
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: #000000;
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    transform: scale(1.05);
    color: #00ff00;
}

.service-card p {
    color: #00ff00;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-features li {
    color: #ffffff;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff00;
    transition: all 0.3s ease;
}

.service-card:hover .service-features li::before {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 8rem 1rem 3rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Resume Section Styles */
.resume {
    padding: 6rem 2rem 4rem;
    background: #000000;
    min-height: 100vh;
}

.resume-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.resume-box h2 {
    font-size: 3rem;
    color: #ffffff;
}

.resume-box h2 span {
    color: #00ff00;
}

.resume-box p {
    font-size: 1.2rem;
    color: #ffffff;
}

.resume-box .desc {
    margin: 2rem 0 2.5rem;
    color: #ffffff;
}

.resume-box .resume-btn {
    width: 100%;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.1);
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-box .resume-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.resume-box .resume-btn.active {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.resume-detail {
    display: none;
}

.resume-detail.active {
    display: block;
}

.resume-box .heading {
    font-size: 2.5rem;
    text-align: left;
    color: #ffffff;
}

.resume-box .heading span {
    color: #00ff00;
}

.resume-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
    height: 35rem;
    overflow: auto;
    padding-right: 1rem;
}

.resume-list::-webkit-scrollbar {
    width: 0.7rem;
}

.resume-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 1rem;
}

.resume-list:hover::-webkit-scrollbar-thumb {
    background: #00ff00;
}

.resume-list .resume-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1.8rem 1.5rem;
    height: calc((35rem - 1.5rem) / 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.resume-list .resume-item:hover {
    transform: translateY(-5px);
    border-color: #00ff00;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.resume-item .year {
    color: #00ff00;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.resume-item h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.resume-item .company {
    position: relative;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #00ff00;
    font-size: 1.1rem;
}

.resume-item .company::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.4rem;
    background: #00ff00;
    border-radius: 50%;
    margin-left: -2rem;
}

.resume-item p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.resume-detail.skills .resume-list {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    height: auto;
    overflow: visible;
}

.resume-detail.skills .resume-item {
    position: relative;
    align-items: center;
    height: auto;
    padding: 1.2rem;
}

.resume-detail.skills .resume-item i {
    font-size: 4rem;
    color: #ffffff;
    transition: 0.5s;
}

.resume-detail.skills .resume-item:hover i {
    color: #00ff00;
    transform: scale(1.1);
}

.resume-detail.skills .resume-item span {
    position: absolute;
    top: -20%;
    background: #000000;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.6rem;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.2s;
    color: #00ff00;
    border: 1px solid #00ff00;
}

.resume-detail.skills .resume-item:hover span {
    top: -25%;
    opacity: 1;
    transform: scale(1);
}

.resume-detail.about .resume-list {
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.resume-detail.about .resume-item {
    height: auto;
    padding: 0 0 0.5rem;
    background: transparent;
}

.resume-detail.about .resume-item p {
    color: #00ff00;
    font-size: 1.2rem;
}

.resume-detail.about .resume-item p span {
    color: #ffffff;
    margin-left: 1rem;
    font-size: 1.4rem;
}

.badge-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

@media (max-width: 1200px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .resume-box h2 {
        font-size: 2.5rem;
    }

    .resume-list {
        height: auto;
        max-height: 45rem;
    }
}

@media (max-width: 1200px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .resume-box h2 {
        font-size: 2.5rem;
    }

    .resume-list {
        height: auto;
        max-height: 45rem;
    }
}

@media (max-width: 768px) {
    .resume {
        padding: 8rem 1rem 3rem;
    }

    .resume-box h2 {
        font-size: 2.2rem;
    }

    .resume-box .heading {
        font-size: 2rem;
    }

    .resume-list {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 35rem;
    }

    .resume-item {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .resume-detail.skills .resume-list {
        grid-template-columns: 1fr;
    }

    .resume-box .resume-btn {
        height: 4rem;
        font-size: 1.1rem;
    }
}

/* Skills Section Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #00ff00;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.skill-category h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category ul li {
    color: #00ff00;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff00;
}

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section Styles */
.Portfolio {
    padding: 6rem 2rem 4rem;
    background: #000000;
    min-height: 100vh;
}

.Portfolio .heading {
    text-align: center;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 4rem;
}

.Portfolio .heading span {
    color: #00ff00;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-detail {
    display: none;
}

.portfolio-detail.active {
    display: block;
}

.portfolio-box .numb {
    font-size: 6rem;
    -webkit-text-stroke: .07rem #ffffff;
    color: transparent;
    line-height: 1;
}

.portfolio-box h3 {
    font-size: 2.5rem;
    margin: .8rem 0 1.5rem;
    color: #ffffff;
}

.portfolio-box p {
    font-size: 1.2rem;
    color: #ffffff;
}

.portfolio-box .tech {
    margin: 1.5rem 0;
    color: #00ff00;
    border-bottom: .1rem solid #ffffff;
    padding-bottom: 1.5rem;
}

.portfolio-box .live-github a {
    position: relative;
    display: inline-flex;
    padding: 1rem;
    font-size: 2.2rem;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: .5s;
}

.portfolio-box .live-github a:hover {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.portfolio-box .live-github a:first-child {
    margin-right: 1.5rem;
}

.portfolio-box .live-github a:first-child i {
    transform: rotate(135deg);
}

.portfolio-box .live-github a span {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    font-size: 1.2rem;
    white-space: nowrap;
    padding: .4rem .8rem;
    border-radius: .6rem;
    pointer-events: none;
    background: #ffffff;
    color: #000000;
    opacity: 0;
    transition: .2s;
}

.portfolio-box .live-github a:hover span {
    top: -70%;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.portfolio-box .portfolio-carousel {
    width: 100%;
    height: 25rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.portfolio-carousel .img-slide {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.portfolio-carousel .img-item {
    min-width: 100%;
    height: 400px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-carousel .img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

.portfolio-box .navigation {
    text-align: right;
    margin: 1rem;
}

.portfolio-box .navigation button {
    display: inline-flex;
    padding: .3rem;
    background: rgba(255, 255, 255, 0.05);
    border: .2rem solid #00ff00;
    border-radius: .6rem;
    font-size: 3rem;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-box .navigation button:hover {
    background: rgba(0, 255, 0, 0.1);
}

.portfolio-box .navigation button.disabled {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.portfolio-box .navigation .arrow-right {
    margin-left: 1.5rem;
}

/* Responsive Design for Portfolio */
@media screen and (max-width: 1024px) {
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-box .portfolio-carousel {
        height: 35rem;
    }
}



@media screen and (max-width: 768px) {
    .portfolio-box h3 {
        font-size: 2.2rem;
    }

    .portfolio-box p {
        font-size: 1.1rem;
    }

    .portfolio-box .portfolio-carousel {
        height: 20rem;
    }

    .portfolio-carousel .img-item {
        height: 300px;
    }

    .portfolio-box .live-github a {
        padding: 0.8rem;
        font-size: 2rem;
    }

    .portfolio-box .navigation button {
        font-size: 2.5rem;
    }
}



@media screen and (max-width: 480px) {
    .portfolio-box h3 {
        font-size: 2rem;
    }

    .portfolio-box p {
        font-size: 1rem;
    }

    .portfolio-box .portfolio-carousel {
        height: 25rem;
    }

    .portfolio-box .live-github a {
        padding: 0.7rem;
        font-size: 1.8rem;
    }

    .portfolio-box .navigation button {
        font-size: 2.2rem;
    }

    .portfolio-carousel .img-item {
        height: 250px;
    }
} 

/* Books Section Design */
/* Global Styles */

    /* Section */
    .section {
      padding: 6rem 2rem 2rem;
    }

    .section-title {
      text-align: center;
      margin-bottom: 2rem;
    }

    .section-title h2 {
      font-size: 2.5rem;
      color: var(--primary);
      margin-top: 3rem;
    }

    .section-title p {
      color: #ccc;
    }

    .books-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      padding: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(30px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .book-card {
      background-color: var(--darker);
      border-radius: 10px;
      overflow: hidden;
      transition: all 0.3s ease;
      opacity: 0;
      animation: fadeInUp 1s ease forwards;
    }

    .book-card:nth-child(1) {
      animation-delay: 0.3s;
    }

    .book-card:nth-child(2) {
      animation-delay: 0.6s;
    }

    .book-card:nth-child(3) {
      animation-delay: 0.9s;
    }

    .book-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
    }

    .book-image {
      width: 100%;
      height: 300px;
      overflow: hidden;
    }

    .book-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .book-info {
      padding: 1.5rem;
    }

    .book-info h3 {
      color: var(--primary);
      margin-bottom: 0.5rem;
    }

    .book-info .author {
      color: var(--secondary);
      margin-bottom: 1rem;
    }

    .book-info .price {
      font-size: 1.2rem;
      color: var(--primary);
      margin-bottom: 1rem;
    }

    .book-info .description {
      margin-bottom: 1.5rem;
      color: #ccc;
    }

    .buy-btn {
      display: inline-block;
      padding: 0.8rem 1.5rem;
      background-color: var(--primary);
      color: var(--dark);
      text-decoration: none;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .buy-btn:hover {
      background-color: var(--secondary);
      transform: translateY(-2px);
    }

/* Contact US */

    :root {
      --primary: #00ff00;
      --secondary: #121212;
      --accent: #00cc66;
      --dark: #000000;
      --light: #ffffff;
      --gray: #888888;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', system-ui, sans-serif;
    }

    body {
      background-color: var(--dark);
      color: var(--light);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Navbar */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      padding: 1.5rem 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(5, 5, 5, 0.95);
      backdrop-filter: blur(10px);
      z-index: 1000;
      border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    }

    .logo {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--light);
    }

    .logo span {
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--light);
      text-decoration: none;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      position: relative;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-links a.active {
      color: var(--primary);
    }

    .hamburger {
      display: none;
      cursor: pointer;
    }

    /* Main Layout */
    .main-container {
      display: flex;
      min-height: 100vh;
      padding-top: 80px;
    }

    .left-section {
      flex: 1;
      padding: 4rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .right-section {
      flex: 1;
      padding: 4rem;
      background-color: var(--secondary);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    h1 {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 1.5rem;
    }

    .intro-text {
      margin-bottom: 2rem;
      max-width: 600px;
    }

    .contact-list {
      margin: 2rem 0;
    }

    .contact-item {
      display: flex;
      align-items: center;
      margin-bottom: 1.5rem;
      gap: 1rem;
    }

    .contact-item i {
      color: var(--primary);
      font-size: 1.5rem;
    }

    .contact-item-text {
      font-size: 1.1rem;
    }

    .social-links {
      display: flex;
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .social-links a {
      color: var(--light);
      font-size: 1.8rem;
      transition: color 0.3s ease;
    }

    .social-links a:hover {
      color: var(--primary);
    }

    h2 {
      font-size: 2rem;
      color: var(--light);
      margin-bottom: 2rem;
    }

    .contact-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .form-group.full-width {
      grid-column: span 2;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      color: var(--primary);
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.8rem;
      background-color: var(--dark);
      border: none;
      color: var(--light);
      border-radius: 5px;
    }

    .form-group textarea {
      height: 250px;
      resize: vertical;
      resize: none;
    }

    .submit-btn {
      display: inline-block;
      padding: 1rem 2rem;
      background-color: var(--primary);
      color: var(--dark);
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s ease;
      grid-column: span 2;
      width: fit-content;
      margin: 0 auto;
    }

    .submit-btn:hover {
      background-color: var(--accent);
      transform: translateY(-2px);
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
      .main-container {
        flex-direction: column;
      }
      
      .left-section,
      .right-section {
        padding: 2rem;
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: var(--secondary);
        padding: 1rem;
        border-radius: 10px;
      }

      .navbar.responsive .nav-links {
        display: flex;
      }

      .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }

      .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--primary);
      }

      @media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding-top: 60px;
  }

  .left-section,
  .right-section {
    padding: 2rem;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }

  .intro-text {
    text-align: center;
    margin: 1rem auto;
  }

  .contact-list {
    margin: 1.5rem 0;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .contact-form {
    grid-template-columns: 1fr; /* Form ek column mein aajaye */
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .submit-btn {
    grid-column: span 1;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .form-group textarea {
    height: 200px;
  }
}