@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --bg-color: #000;
  --text-color: #ecf0f1;
  --primary-color: #015dc0;
  --accent-color: #6ed0ff;
  --card-border-color: #556a7f;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 70px;
}

.initial {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0 0 1em 0;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

header {
    background-color: var(--bg-color);
    padding: 0 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.08);
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color);
}

header h1 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    line-height: 1;
    font-size: 2.2rem;
    font-weight: 700;
}

header h1 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

header nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

header nav ul {
    font-size: 1.2rem;
    display: flex;
    gap: 30px;
    margin: 0;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    padding: 0;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

header nav ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-resume-button {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-resume-button:hover {
    background-color: rgba(110, 208, 255, 0.1);
    color: var(--accent-color);
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    background-color: transparent;
    margin-bottom: 80px;
    padding: 60px 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

section h2, section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

section p {
     color: var(--text-color);
}

#hero {
    text-align: left;
    padding: 0px 40px;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
    box-shadow: none;
    margin-bottom: 80px;
    padding-bottom: 60px;
}

.hero-intro-text{
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.6rem;
    color: #fff;
    max-width: 800px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-social-links {
    display: flex;
    gap: 25px;
    font-size: 2.5rem;
}

.hero-social-links a {
    color: var(--text-color);
    transition: transform 0.2s ease, color 0.3s ease;
}

.hero-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    text-decoration: none;
}

.fa-github { color: #f5f5f5; }
.fa-envelope { color: #EA4335; }
.fa-file-alt { color: #0077B5; }

/* --- About Section Styles --- */

#about {
    padding-bottom: 60px;
    margin-bottom: 80px;
}

.section-heading {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.section-heading span {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 10px;
    font-weight: normal;
}

.section-heading::after {
    content: '';
    display: block;
    height: 1px;
    width: 200px;
    background-color: var(--card-border-color);
    margin-left: 20px;
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text-column {
    flex: 2;
    max-width: 600px;
}

.about-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 8px;
    border: 5px solid var(--accent-color);
}

.about-technologies {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    background-color: #333;
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 3px solid #555;
}

.about-paragraph {
    line-height: 1.6;
    font-size: 1.5rem;
    color: var(--text-color);
}

#about .about-paragraph span {
    color: var(--accent-color);
    font-weight: bold;
}
#about .about-paragraph a span {
    color: var(--accent-color);
}

/* --- Projects Section --- */

#projects {
     margin-bottom: 80px;
     padding-bottom: 60px;
}

#projects h3 {
     display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    padding: 0 20px;
    margin-top: 20px;
}

.project-card {
    border: none;
    padding: 40px;
    margin-bottom: 30px;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-color);
}

.project-card h4 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1.3rem;
    margin-bottom: 1em;
}

.projects-grid .project-card:last-child {
    border-bottom: none;
}

.project-thumbnail {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--card-border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
}

.project-thumbnail:hover {
    transform: translateY(-5px);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.project-tech-stack span {
    background-color: #333;
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #555;
    font-weight: bold;
}


.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
    border: 1px solid #555;
}

.button:hover {
    background-color: #444;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #777;
}

/* --- Contact Section --- */

#contact {
    margin-bottom: 80px;
    padding: 60px 20px;
    text-align: center;
}

#contact h3 {
    display: none;
}

#contact p {
    font-size: 1.3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

#contact a {
     font-size: 1.2rem;
     color: var(--accent-color);
}

/* --- Footer --- */

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin-top: 40px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.08);
}

/* --- Media Queries --- */

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    header {
        height: auto;
        flex-direction: column;
        padding: 10px 0;
    }

    header h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding-left: 0;
    }

    header nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
        gap: 15px;
    }

    section {
        padding: 40px 20px;
        margin-bottom: 60px;
    }

    .section-heading::after {
        width: 100px;
    }

    .about-container {
        flex-direction: column-reverse;
        gap: 30px;
        align-items: center;
    }

    .about-text-column {
        max-width: 100%;
        text-align: center;
    }
     .about-technologies {
        justify-content: center;
    }

    .about-image-column {
       width: 80%;
    }

    .profile-picture {
        width: 250px;
    }


    #hero {
        padding: 60px 20px;
        min-height: calc(100vh - 120px);
         margin-bottom: 60px;
         padding-bottom: 40px;
    }

    .hero-intro-text {
        font-size: 1rem;
    }

    .hero-name {
        font-size: 2.8rem;
        letter-spacing: 0px;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-social-links {
        font-size: 2rem;
        gap: 15px;
    }

    .projects-grid {
       grid-template-columns: 1fr;
       padding: 0;
    }
    .project-card {
        padding: 20px;
    }

    #contact {
         padding: 40px 20px;
    }

    #contact p {
        font-size: 1rem; /* Slightly smaller on mobile */
    }

    #contact a {
         font-size: 1rem; /* Slightly smaller on mobile */
    }
}

/* --- Typing Effect Cursor --- */

.typing-text::after {
    content: '';
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
    margin-left: 5px;
}

.typing-text.typed-finished::after {
    content: '_';
    width: auto;
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }

}
