:root {
    --bg-color: #ecf0f3;
    --text-primary: #3c3e41;
    --text-secondary: #878e99;
    --accent-color: #64108e;
    --accent-hover: #450764;
    --button-bg: #9f37d3;
    --button-hover: #5f1087;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
    --project-bg: #d5dbdf;
    --project-shadow: #aeb7c6;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 5px 5px 15px var(--shadow-dark);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

nav ul li a:hover {
    font-size: 16px;
    color: var(--accent-color);
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.logo a:hover {
    color: var(--accent-color);
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

.hero-intro { flex: 1.5; }
.hero-image { flex: 1; }

.social-box a,
.img-card {
    background: var(--bg-color);
    box-shadow: 7px 7px 15px var(--shadow-dark), -7px -7px 15px var(--shadow-light);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: var(--text-primary);
}

.social-box a:hover {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    color: var(--accent-color);
}

.welcome-tag {
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
}

h1 {
    font-size: 3.5rem;
    margin: 10px 0;
    font-weight: 700;
}

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

h2.typing-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 1.2em;
}

#typing-text {
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-footer {
    display: flex;
    gap: 100px;
    margin-top: 50px;
}

.hero-footer p {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-box {
    display: flex;
    gap: 20px;
}

.social-box a {
    width: 55px;
    height: 55px;
    font-size: 18px;
    text-decoration: none;
}

.img-card { padding: 15px; }
.img-card img {
    width: 100%;
    border-radius: 10px;
}

.hero-image > .hire-me-button,
.hero-image > .cert-button {
    display: none;
}

section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

section.active-section {
    display: block;
    opacity: 1;
}

.project {
    display: none;
    background: var(--project-bg);
    box-shadow: 7px 7px 15px var(--project-shadow), -7px -7px 15px var(--shadow-light);
    border-radius: 10px;
    padding: 20px 20px 20px 30px;
    margin-bottom: 30px;
}

.project.active-project { display: block; }

.projectsbutton,
.hire-me-button,
.cert-button {
    padding: 10px 20px;
    background-color: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.projectsbutton:hover,
.hire-me-button:hover,
.cert-button:hover {
    background-color: var(--button-hover);
}

.hire-me-button,
.cert-button {
    margin-top: 20px;
    margin-right: 15px;
    border-radius: 12px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 7px 7px 15px var(--shadow-dark), -7px -7px 15px var(--shadow-light);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover { transform: translateY(-10px); }

.project-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.project-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.project-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    background: var(--bg-color);
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}

.playbutton {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--accent-color);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 5px 5px 10px var(--shadow-dark);
    transition: 0.3s;
}

.playbutton:hover {
    background: var(--accent-hover);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

form button {
    padding: 10px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover { background-color: var(--accent-hover); }

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-color);
    box-shadow: inset 5px 5px 20px var(--shadow-dark), inset -5px -5px 15px var(--shadow-light);
    margin-top: 50px;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        width: 180px;
        background: var(--bg-color);
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 5px 5px 15px var(--shadow-dark);
        display: none;
    }

    nav ul.active { display: flex; }

    .hero-image .hire-me-button,
    .hero-image .cert-button {
        display: inline-flex;
        width: 39%;
        background: var(--bg-color);
        box-shadow: 7px 7px 15px var(--shadow-dark), -7px -7px 15px var(--shadow-light);
        color: var(--text-primary);
    }

    .hero-image .hire-me-button:hover,
    .hero-image .cert-button:hover {
        box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
        color: var(--accent-color);
    }

    #typing-text { border-right: 2px solid var(--accent-color); }
}