/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #1a1a2e; 
    color: #e0e0e0; 
    line-height: 1.6;
    overflow-x: hidden;
}


a {
    pointer-events: auto;
}

a::after {
    content: attr(href);
    display: none;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #16213e; 
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    max-width: 1200px; 
    padding: 0 20px; /* Add horizontal padding */
}

.logo {
    font-size: 1.53em;
    font-weight: 600;
    color: #1199d3;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: auto;
}

.logo:hover {
    color: #0d7aa8;
}

.login-btn {
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
    background-color: #e94560;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 20px;
}

.login-btn:hover {
    background-color: #ba374e;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e94560;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 70px;
    z-index: 1002;
}

.profile-pic:hover {
    background-color: #ba374e;
}

.profile-menu {
    position: absolute;
    top: 60px;
    right: 70px;
    background-color: #16213e;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.profile-menu.show {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.profile-menu a:hover {
    background-color: #0f3460;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    position: absolute;
    right: 0;
    top: 60px;
    height: auto;
    max-height: calc(100vh - 60px);
    background-color: #16213e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 40%;
    transform: translateX(100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease-in-out;
    overflow-y: auto;
}

nav ul.nav-active {
    transform: translateX(0);
}

nav ul li {
    opacity: 1;
    margin: 15px 0;
}



nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.28em;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #e0b50c; 
    transform: translateY(-3px);

}


.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1001;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    transition: all 0.3s ease-in-out;
}

/* Active state for hamburger animation */
.hamburger.active .line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f3460, #1a1a2e); 
    color: #e0e0e0;
    padding-top: 80px; 
}

.hero-content {
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeInSlideUp 1s forwards;
    animation-delay: 0.5s;
}

.hero h1 {
    font-size: 2.98em;
    margin-bottom: 8.5px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.28em;
    margin-bottom: 25.5px;
    color: #b0b0b0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.highlight {
    color: #e94560; 
}

.btn {
    display: inline-block;
    background-color: #e94560;
    color: #fff;
    padding: 10px 21px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.94em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #ba374e;
    transform: translateY(-3px);
    text-decoration: none;
}


.cursor {
    display: inline-block;
    background-color: #e94560;
    width: 3px;
    height: 1.2em; /* Adjust height to match text */
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

/* Sections General Styling */
section {
    padding: 68px 0;
    text-align: center;
    position: relative;
}

section:nth-of-type(even) {
    background-color: #16213e; /* Alternate background for sections */
}

section h2 {
    font-size: 2.13em;
    margin-bottom: 34px;
    color: #e94560;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0f3460;
    border-radius: 5px;
}


.about-me p {
    max-width: 680px;
    margin: 0 auto 17px auto;
    font-size: 0.94em;
    color: #c0c0c0;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 17px;
    margin-top: 34px;
    max-width: 765px;
    margin-left: auto;
    margin-right: auto;
}

.skill-item {
    background-color: #0f3460;
    padding: 17px;
    border-radius: 7px;
    font-size: 1.02em;
    font-weight: 600;
    color: #e0e0e0;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #e94560;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 25.5px;
    margin-top: 34px;
}

.project-card {
    background-color: #16213e;
    padding: 25.5px;
    border-radius: 7px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.project-card h3 {
    color: #e94560;
    margin-top: 0;
    font-size: 1.53em;
}

.project-card p {
    color: #c0c0c0;
    font-size: 0.85em;
    margin-bottom: 17px;
}

.project-link {
    display: inline-block;
    color: #0f3460;
    background-color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-link:hover {
    background-color: #e94560;
    color: #fff;
    text-decoration: none;
    
    
}


.contact-form {
    max-width: 510px;
    margin: 34px auto 17px auto;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12.75px;
    border: 1px solid #0f3460;
    border-radius: 5px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.85em;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #e94560;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.02em;
    margin: 0 12.75px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #e94560;
    transform: translateY(-3px);
}


footer {
    background-color: #0f3460;
    color: #e0e0e0;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    margin-top: 50px;
}


@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 768px) {
    .logo {
        font-size: 1.5em;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    section h2 {
        font-size: 2em;
    }

    .skills-grid, .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3em;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.8em;
    }

    .skill-item {
        font-size: 1em;
    }

    .project-card h3 {
        font-size: 1.5em;
        text-decoration: none;
        
    }

    .social-links a {
        font-size: 1em;
        margin: 0 10px;
    }
}
#typewriter-text {
    font-weight: 600;
    color: #5e45e9;
    margin: 2%;
}
