:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #0d1117;
    --card-bg-color: #161b22;
    --text-color: #c9d1d9;
    --highlight-color: #58a6ff;
    --border-color: #30363d;
    --gradient-bg: linear-gradient(45deg, #1f2733, #0d1117);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.6rem;
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    filter: brightness(0.2);
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Updated header styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: rgba(13, 17, 23, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.logo-jpg {
    height: 40px; /* Adjust as needed */
    width: 40px; /* Make sure width and height are the same */
    border-radius: 50%;
    object-fit: cover;
}

.navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation a {
    font-size: 1.8rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
}

.navigation a:hover,
.navigation a.active {
    color: var(--highlight-color);
}

#menu-btn {
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--highlight-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--background-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 1.5rem var(--highlight-color);
    transform: scale(1.05);
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.heading span {
    color: var(--highlight-color);
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7rem 5% 2rem;
    flex-wrap: wrap;
    gap: 5rem;
}

.home-content {
    max-width: 60rem;
    text-align: left;
    margin-top: -5rem; /* Moves content up */
}

.home-content h3 {
    font-size: 3.5rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 5.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0 2rem;
}

.home-content p {
    font-size: 1.8rem;
}

.home-content .highlight {
    color: var(--highlight-color);
}

.highlight {
    color: var(--highlight-color);
}

.home-img {
    position: relative;
    width: 40rem;
    height: 40rem;
}

#profile3D {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: none;
    animation: none;
}

/* About Section */
.about {
    padding: 10rem 5%;
}

.about-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.about-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.info-item {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex: 1 1 25rem;
}

.info-item:hover {
    transform: translateY(-1rem);
    border-color: var(--highlight-color);
}

.info-item i {
    font-size: 4rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.info-item h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

/* Skills Section */
.skills {
    padding: 10rem 5%;
    background: var(--gradient-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-box {
    background: var(--card-bg-color);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.skill-box:hover {
    transform: scale(1.05);
}

.skill-box i {
    font-size: 5rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
}

.skill-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.skill-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    margin-top: 1.5rem;
}

.skill-box ul li {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-box ul li i {
    font-size: 2rem;
    color: var(--highlight-color);
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 10rem 5%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-box {
    background: var(--card-bg-color);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.project-box:hover {
    transform: translateY(-1rem);
}

.project-box i {
    font-size: 5rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
}

.project-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.project-link {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 10px;
    margin-right: 25px;
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 10rem 5%;
    text-align: center;
    background: var(--gradient-bg);
}

.contact-content {
    max-width: 70rem;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info li {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.contact-info li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info li a:hover {
    color: var(--highlight-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 5%;
    font-size: 1.4rem;
    background: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
}

/* Animations for scroll effect */
.hidden-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show-element {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    .home {
        flex-direction: column;
        text-align: center;
    }
    .home-content {
        max-width: 100%;
    }
    .home-img {
        width: 30rem;
        height: 30rem;
    }
}

@media (max-width: 768px) {
    #menu-btn {
        display: block;
    }
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.8);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    .navigation.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .navigation a {
        display: block;
        margin: 1.5rem 0;
        font-size: 2rem;
    }
    .home-content h1 {
        font-size: 4.5rem;
    }
}
.glow-border {
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border: 1px solid var(--border-color);
}

.glow-border:hover,
.glow-border:focus {
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4), 0 0 20px rgba(88, 166, 255, 0.5);
    border-color: var(--highlight-color);
}

#contact-form input,
#contact-form textarea {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4), 0 0 20px rgba(88, 166, 255, 0.5);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #555;
    font-size: 1.4rem;
}

.info-item,
.skill-box,
.project-box {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.info-item:hover,
.skill-box:hover,
.project-box:hover {
    transform: translateY(-1rem);
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4), 0 0 20px rgba(88, 166, 255, 0.5);
}
.glow-outline {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(88, 166, 255, 0.1);
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.glow-outline:hover {
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4), 0 0 25px rgba(88, 166, 255, 0.6);
    border-color: var(--highlight-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 90rem;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.contact-form-container,
.contact-info-container {
    flex: 1 1 40rem;
    background: transparent;
    padding: 3rem;
    border-radius: 1rem;
}

.contact-form-title,
.contact-info-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--highlight-color);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

#contact-form input,
#contact-form textarea {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form input:hover,
#contact-form textarea:hover {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#contact-form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.8rem;
    background: var(--highlight-color);
    color: var(--background-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact-form .btn:hover {
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.7);
    transform: scale(1.02);
}

.contact-info-container .contact-info {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-container .contact-info li {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
}

.contact-info-container .contact-info li a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-container .contact-info li a:hover {
    text-decoration: underline;
}
#profile3D {
    outline: none !important;
    box-shadow: none !important;
}
