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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #ffffff;
    min-height: 100vh;
}

/* Particle Animation (Only on Home Page) */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 10;
}

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

.logo {
    font-size: 30px;
    color: #00ddff;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    font-weight: bold;
    padding-right: 30px;
    font-size: 18px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #00b7ff;
}

/* Sections */
section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    background: transparent;
}

.about-section,
.experience-section,
.projects-section,
.contact-section {
    background: #121212;
}

/* Home Section */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.text-content {
    flex: 1;
    padding-right: 40px;
}

.text-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #aaaaaa;
    font-weight: bold;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

.btn.primary {
    background-color: #00b7ff;
    color: #fff;
}

.btn.primary:hover {
    background-color: #00b7ff;
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid #00b7ff;
    color: #00b7ff;
}

.btn.secondary:hover {
    background-color: #00b7ff;
    color: #fff;
}

.profile-picture {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.7);
    animation: glow 2s infinite alternate;
}

.circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgb(35, 255, 248);
    }

    100% {
        box-shadow: 0 0 40px rgb(35, 255, 248);
    }
}

/* About Section */
.about-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-content .intro {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #aaaaaa;
}

.skills,
.interests {
    margin-top: 30px;
}

.skills h2,
.interests h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00b7ff;
}

.skills ul,
.interests ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.skills ul li,
.interests ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #aaaaaa;
}

/* Experience Section */
.experience-section {
    padding: 50px;
    background-color: #121212;
    color: #ffffff;
}

.experience-heading {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
    /* color: #aaaaaa;
    writing-mode: vertical-rl;
    letter-spacing: 10px;
    position: fixed;
    right: 20px; */
}

.experience-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.timeline {
    position: relative;
    width: 50px;
    display: flex;
    justify-content: center;
}

.timeline::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: -20px;
    left: 50%;
    width: 2px;
    background-color: #555;
    transform: translateX(-50%);
}

.bullet {
    width: 20px;
    height: 20px;
    background-color: #00b7ff;
    border-radius: 50%;
    border: 3px solid #121212;
    margin-top: 5px;
}

.details {
    flex-grow: 1;
    padding-left: 20px;
}

.details h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.role,
.duration,
.location {
    font-size: 1rem;
    color: #bbbbbb;
    margin-bottom: 5px;
    font-weight: bold;
}

.highlight {
    color: #00ff00;
}

.skills {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.skills img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #333;
    padding: 5px;
}

/* Projects Section */
.projects-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Contact Section */
.contact-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}


.social-icons {
    position: fixed;
    bottom: 40%;
    right: 0%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-icons .icon img {
    width: 60px;
    /* Increase the size to 60px */
    height: 60px;
    /* Increase the size to 60px */
    transition: transform 0.3s ease;
    /* Add a hover effect */
}

.social-icons .icon img:hover {
    transform: scale(1.2);
    /* Slightly enlarge the icon on hover */
}

.about-section {
    padding: 100px 20px;
    background: #121212;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 30px;
    align-items: center;
}

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

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 183, 255, 0.4);
}

.about-details {
    flex: 2;
    font-size: 1rem;
}

.about-details h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-details .intro {
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 20px;
}

.key-details {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.key-details div {
    flex: 1;
    min-width: 250px;
}

.key-details h2 {
    font-size: 1.5rem;
    color: #00b7ff;
    margin-bottom: 10px;
}

.key-details ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #aaa;
}

.key-details ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}


/* Skills Section */
.skills-section {
    padding: 60px;
    background-color: #121212;
    color: #ffffff;
    text-align: center;
}

.skills-heading {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.skills-subtitle {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 30px; */
    grid-template-columns: repeat(5, 1fr);
    /* 5 items per row */
    gap: 15px;
    /* Spacing between items */
    margin-top: 20px;
}

.skill-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.skill-item p {
    font-size: 1rem;
    color: #ffffff;
}

h2.name {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: cadetblue;
}

.ddugky-logo {
    width: 200px;
}

.company-logo {
    width: 200px;
}

/* General Section Styling */
.projects-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensures title is centered */
    text-align: center;
    padding: 1.5rem;
}

/* Centering the Section Title */
.section-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: -170px
}

/* Project Cards Layout */
.projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* Increased gap for better spacing */
    flex-wrap: wrap;
    max-width: 90%;
}

/* Individual Project Card */
.project-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 320px;
    /* Slightly increased width */
    text-align: center;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    height: 305px;
}

.project-card:hover {
    transform: scale(1.05);
    /* Hover effect for better UX */
}

/* Image inside Project Cards */
.project-card img {
    width: 70px;
    /* Adjusted size */
    height: auto;
    margin-bottom: 15px;
}

/* Project Card Headings */
.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Sidebar Icons */
.sidebar {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon {
    padding: 10px;
}

.about-me {
    text-align: center;
    padding-right: 300px;
}

.certificate-section {
    background-color: #121212;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

.certificate-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.certificate-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

.certificate-card {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

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

.certificate-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay p {
    margin: 0.5rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1c1c1c;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content form input,
.modal-content form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555555;
    border-radius: 4px;
    background: #333333;
    color: #ffffff;
}

.modal-content form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #00b74a;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.modal-content form button:hover {
    background-color: #008e39;
}

/* Show modal when active */
.modal.show {
    display: flex;
}

#certificateDetails {
    margin-top: 1rem;
    color: white;
    text-align: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.certificate-section .section-title-certificate {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: -300px;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    /* Black background */
    color: white;
}

/* Contact Section */
.contact-section {
    padding: 50px;
    text-align: center;
    /* Center-align the heading */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Stack heading and container vertically */
    align-items: center;
    justify-content: center;
}

.section-title-contact {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    /* Add space below the heading */
    color: white;
}

.container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    /* Center-align the container */
    margin-top: 20px;
}

/* Left Text Section */
.text-section {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.text-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.text-section p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    flex: 1;
    max-width: 500px;
    background-color: #1a1a1a;
    /* Dark gray */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
}

.contact-form h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #333;
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    /* Light gray placeholder */
}

.form-group textarea {
    resize: none;
    height: 100px;
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    background-color: #28a745;
    /* Green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.submit-btn:hover {
    background-color: #218838;
    transition: background-color 0.3s ease;
}

/* Mobile First Approach - Base styles for small screens */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    /* Adjustments for tablets */
    .hero-content {
        flex-direction: row;
    }

    .about-container {
        flex-direction: row;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    /* Adjustments for desktops */
    .skills-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .projects-container {
        flex-direction: row;
    }

    .container {
        flex-direction: row;
    }
}

/* Extra small devices (phones, 600px and down) */
@media (max-width: 600px) {

    /* Specific mobile adjustments */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .buttons {
        justify-content: center;
    }

    .circle {
        width: 250px;
        height: 250px;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile */
    }

    .about-container {
        flex-direction: column;
    }

    .about-image img {
        width: 200px;
        height: 200px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-container {
        flex-direction: column;
    }

    .container {
        flex-direction: column;
    }

    .social-icons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
    }

    .social-icons .icon img {
        width: 40px;
        height: 40px;
    }
}


@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .about-me {
        font-size: 2rem !important;
        padding-right: 0 !important;
        text-align: center;
    }

    .intro {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .key-details h2 {
        font-size: 1.3rem !important;
    }

    .key-details ul li {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .certificate-section {
        padding: 50px 20px !important;
    }

    .section-title-certificate {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        font-size: 2.5rem !important;
    }

    .certificate-container {
        flex-direction: column;
        align-items: center;
    }

    .certificate-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {

    /* Center align all section titles */
    .section-title,
    .skills-heading,
    /* .experience-heading, */
    .section-title-contact {
        text-align: center;
        margin-top: 0 !important;
        font-size: 2.5rem;
    }

    /* Adjust hero section */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .buttons {
        justify-content: center;
    }

    /* Adjust about section */
    .about-container {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 30px;
    }

    /* Fix experience section */
    .experience-item {
        flex-direction: column;
    }

    .timeline {
        display: none;
    }

    .details {
        padding-left: 0;
    }
}


@media (max-width: 768px) {
    .experience-heading {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
    }

    .experience-item {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .timeline {
        display: none;
    }

    .details {
        padding-left: 0;
    }

    .details h2 {
        font-size: 1.3rem !important;
    }

    .role,
    .duration,
    .location {
        font-size: 0.9rem !important;
    }

    .skills img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 50px 20px;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        max-width: 350px;
        margin-bottom: 30px;
    }

    .project-card:last-child {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-top: 0 !important;
        margin-bottom: 30px !important;
    }
}

/* Certificate Modal Fix */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
}

#certificateDetails {
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    text-align: center;
    overflow-y: auto;
    max-height: 20vh;
}

.close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 600px) {
    .certificate-card {
        width: 100%;
    }

    #certificateDetails {
        padding: 10px;
        font-size: 0.9rem;
    }
}


/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 0;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Hide regular nav links on mobile */
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}