/* Color scheme */
:root {
    --primary: #4f8cff;
    --secondary: #ffb347;
    --accent: #ff5e5e;
    --background: linear-gradient(135deg, #f7f7fa 60%, #e0e7ff 100%);
    --text: #22223b;
    --card: #fff;
    --hero-gradient: linear-gradient(90deg, #4f8cff 60%, #ffb347 100%);
    --badge-html: #e44d26;
    --badge-css: #264de4;
    --badge-js: #f7df1e;
    --badge-python: #3776ab;
    --badge-pascal: #7d5fff;
    --badge-java: #e76f00;
    --badge-vb: #6e44ff;
    --font-main: 'Poppins', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Poppins', Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    /* ...other heading styles... */
}

.background-decor {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 10%, #ffb34733 0%, transparent 60%),
                radial-gradient(circle at 90% 20%, #4f8cff22 0%, transparent 70%),
                radial-gradient(circle at 80% 80%, #ff5e5e22 0%, transparent 70%);
    opacity: 0.7;
    animation: decorMove 12s linear infinite alternate;
}

@keyframes decorMove {
    0% { background-position: 10% 10%, 90% 20%, 80% 80%; }
    100% { background-position: 20% 20%, 80% 30%, 70% 90%; }
}

header {
    background: transparent;
    text-align: center;
    margin-left: 1rem;
    margin-right: 1rem;
    z-index: 1;
}

.business-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}


/* Header bar and nickname */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(79, 140, 255, 0.1);
    padding: 0.7rem 2rem;
    margin: 1.5rem auto 0.5rem auto;
    max-width: 900px;
}

.nickname {
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.left-section {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.right-section {
    flex: 1;
    display: flex;
    justify-content: end;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-radius: 1.5rem;
    max-width: 600px;
    z-index: 2;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--secondary);
}

@media (max-width: 800px) {
    .header-bar {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.7rem 0.7rem;
    }
    .nickname {
        font-size: 1.1rem;
    }
}



main {
    max-width: 900px;
    margin: 2.5rem auto 1rem auto;
    padding: 1rem;
    z-index: 2;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--hero-gradient);
    color: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 32px rgba(79, 140, 255, 0.1);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 2rem auto 1.5rem auto;
    max-width: 700px;
    overflow: hidden;
    animation: fadeIn 1.2s;
    text-align: center;
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 16px rgba(34, 34, 59, 0.13);
    object-fit: cover;
    background: #fff;
}

.tagline {
    font-size: 1.2rem;
    margin: 0.5rem 0 1.2rem 0;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
}

.cta {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 2px solid var(--primary);
    letter-spacing: 1px;
    margin-top: 1rem;
}
.cta:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: rgb(34, 34, 59);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(255, 179, 71, 0.4);
}

section {
    background: var(--card);
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px #4f8cff11;
    margin-bottom: 2rem;
    padding: 2.2rem 2rem 2rem 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
    z-index: 2;
    animation: fadeInUp 1s;
}
section:hover {
    box-shadow: 0 6px 32px #ff5e5e22;
    transform: translateY(-4px) scale(1.01);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

h2 {
    color: var(--primary);
    margin-top: 0;
    font-size: 2rem;
    letter-spacing: 1px;
}

ul {
    padding-left: 1.2rem;
}

/* Badges for skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.2rem 0 0.5rem 0;
}
.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px #22223b11;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.2s;
}
.badge.html { background: var(--badge-html); }
.badge.css { background: var(--badge-css); }
.badge.js { background: var(--badge-js); color: #222; }
.badge.python { background: var(--badge-python); }
.badge.pascal { background: var(--badge-pascal); }
.badge.java { background: var(--badge-java); }
.badge.vb { background: var(--badge-vb); }

.skills-desc {
    margin-top: 1rem;
    color: #555;
    font-size: 1.05rem;
}

/* Education card */
.edu-card {
    background: linear-gradient(90deg, #e0e7ff 60%, #fff 100%);
    border-radius: 1rem;
    box-shadow: 0 2px 12px #4f8cff11;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    text-align: left;
}
.download-cv {
    display: inline-block;
    margin-top: 0.7rem;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.download-cv:hover {
    background: var(--secondary);
}

/* Interests list */
.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.2rem 0 0 0;
    list-style: none;
    padding: 0;
}
.interests-list li {
    background: #e0e7ff;
    color: #4f8cff;
    padding: 0.7rem 1.2rem;
    border-radius: 1.2rem;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 8px #4f8cff11;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}
.project-card {
    background: linear-gradient(120deg, #fff 70%, #ffb34722 100%);
    border-radius: 1rem;
    box-shadow: 0 2px 12px #ffb34722;
    padding: 1.2rem 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeInUp 1.2s;
}
.project-card:hover {
    box-shadow: 0 6px 24px #ff5e5e33;
    transform: translateY(-4px) scale(1.03);
}
.project-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}
.project-card a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #4f8cff22;
}

button:hover {
    background: var(--secondary);
    color: #22223b;
}

/* Contact info */
.contact-info {
    margin-top: 1.2rem;
    color: #555;
    font-size: 1rem;
}
.contact-info a {
    color: var(--primary);
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--primary);
    color: #fff;
    margin-top: 2rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 1rem 1rem 0 0;
}

.footer-nickname {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px #4f8cff11;
    width: 38px;
    height: 38px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.social-icons a:hover {
    box-shadow: 0 4px 16px #ffb34744;
    transform: scale(1.08);
}

/* This is the responsive design for smaller screen sizes like tablets and mobile devices. */

@media (max-width: 700px) {
    header {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    .hero {
        flex-direction: column;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        gap: 1rem;
    }
    .profile-pic {
        width: 80px;
        height: 80px;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    nav ul {
        gap: 1rem;
        font-size: 0.95rem;
    }
    main {
        padding: 0.5rem;
    }
    section {
        padding: 1rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
