:root {
    --accent: #21897E;
    --dark: #6457a6;
    --primary: #7D7ABC;
    --text: #22223b;
    --heading: #4a4e69;
    --highlight: #eb8a90;
    --light: #f0f4fa;
    --light-bg: #f5faff;
    --hover-bg: #e0ecff;
    --border: #c9d6ff;
    --bg-gradient: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
}

/* Base styles */
body {
    background: var(--bg-gradient);
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    line-height: 1.7;
    min-height: 100vh;
}

/* Header styles */
header {
    background: linear-gradient(90deg, var(--primary) 60%, var(--dark) 100%);
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(34,34,59,0.08);
    position: relative;
}

/* Hero section */
.hero {
    padding: 2rem 0 1.5rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.hero h1 {
    margin: 0.5rem 0 0 0;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--lightt);
    text-shadow: 0 2px 8px rgba(34,34,59,0.07);
}
.subtitle {
    font-size: 1.2rem;
    color: var(--light);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(34,34,59,0.06);
}


/* Navigation styles */
nav {
    background: var(--dark);
    padding: 1rem 0 0.7rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    transition: color 0.2s, border-bottom 0.2s, background 0.2s, box-shadow 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 22px;
    border-bottom: 2px solid transparent;
    display: inline-block;
    position: relative;
}
nav a:hover{
    color: var(--highlight);
    text-decoration: none;
    transform: translateY(-2px) scale(1.04);
    transition: 0.2s ease-in-out;
}
nav a i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    vertical-align: middle;
}
@media (max-width: 600px) {
    nav a {
        margin: 0 0.5rem;
        font-size: 1rem;
        padding: 0.4rem 0.7rem;
    }
}

/* Main content area */
main {
    max-width: 950px;
    margin: 2.5rem auto 2rem auto;
    padding: 2.2rem 2rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(34, 34, 59, 0.10);
}

/* Section headings */
h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text);
    position: relative;
    display: inline-block;
    padding-left: 2.2rem;
    padding-right: 1.2rem;
    background: linear-gradient(90deg, #e0ecff 60%, #fff 100%);
    border-radius: 0 18px 18px 0;
    box-shadow: 0 2px 8px rgba(34,34,59,0.06);
    border-left: 5px solid var(--accent);
}
h2 i {
    color: var(--accent);
    margin-right: 0.7rem;
    font-size: 1.2em;
    vertical-align: middle;
}
h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}
ul {
    padding-left: 1.2rem;
}
li {
    margin-bottom: 1.2rem;
}

/* About Highlights */
.about-highlights {
    display: flex;
    gap: 2rem;
    margin: 2rem 0 1.5rem 0;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-highlights > div {
    background: var(--light);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    flex: 1 1 180px;
    min-width: 160px;
    margin: 0.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34,34,59,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-highlights > div:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 24px rgba(34,34,59,0.13);
    background: var(--hover-bg);
}
.about-highlights i {
    font-size: 2.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}
.about-highlights h4 {
    margin: 0.5rem 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--text);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0 2rem 0;
}
.skills-grid div {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.08rem;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(34,34,59,0.06);
    transition: background 0.2s, color 0.2s;
}
.skills-grid div i {
    font-size: 1.7rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
    display: block;
}
.skills-grid div:hover {
    background: var(--hover-bg);
    color: var(--accent);
}

/* Project cards/list */
.projects-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.projects-list article {
    background: var(--light);
    border-radius: 10px;
    padding: 1.3rem 1.2rem 1.1rem 1.2rem;
    box-shadow: 0 1px 4px rgba(34, 34, 59, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.projects-list article:hover {
    box-shadow: 0 6px 24px rgba(34, 34, 59, 0.13);
    transform: translateY(-4px) scale(1.02);
    background: var(--hover-bg);
}
.projects-list h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.18rem;
}
.projects-list ul {
    margin: 0.5rem 0 0.5rem 1.2rem;
    padding: 0;
}
.projects-list li {
    margin-bottom: 0.3rem;
    font-size: 0.98rem;
}
.projects-list a.btn {
    display: inline-block;
    margin-top: 0.7rem;
    background: var(--dark);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(34,34,59,0.08);
}
.projects-list a.btn:hover {
    background: var(--accent);
    transform: scale(1.07);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
    margin: 1.5rem auto 0 auto;
    background: var(--light-bg);
    padding: 1.5rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(34,34,59,0.08);
}
.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border 0.2s;
    resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--accent);
    outline: none;
}
.contact-form button.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.contact-form button.btn:hover {
    background: var(--dark);
    transform: scale(1.05);
}

/* Simple Download CV button style */
.download-cv {
    margin: 1.5rem 0 1rem 0;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.7rem 1.8rem;
    box-shadow: 0 2px 8px rgba(34,34,59,0.08);
    display: inline-block;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    text-align: center;
    width: auto;
}
.download-cv i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}
.download-cv:hover, .download-cv:focus {
    background: #005f8a;
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    color: #888;
    font-size: 1rem;
    margin-top: 2rem;
    background: transparent;
    border-top: 1px solid var(--light);
    letter-spacing: 0.5px;
}
footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--text);
    text-decoration: underline;
}
.footer-social {
    margin-top: 0.7rem;
}
.footer-social a {
    color: var(--text);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
    display: inline-block;
}
.footer-social a:hover {
    color: var(--accent);
    transform: scale(1.2) rotate(-8deg);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to top button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(34,34,59,0.15);
    font-size: 1.3rem;
    transition: background 0.2s, transform 0.2s;    
    cursor: pointer;
    z-index: 1000;
}
#backToTop:hover,
#backToTop:focus {
    background: var(--accent);
    transform: scale(1.12);
    outline: none;
}   

/* Testimonials */
.testimonial-container {
    max-width: 600px;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    min-height: 120px;
}
.testimonial {
    background: var(--light-bg);
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem 1.2rem 1.2rem 2rem;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(34,34,59,0.08);
    font-style: italic;
    position: relative;
    color: var(--text);
}
.testimonial p {
    font-size: 1rem;
    margin: 0 0 0.7rem 0;
}
.testimonial footer {
    font-size: 0.95rem;
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
    margin-top: 0.5rem;
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
}
.testimonial-controls button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(34,34,59,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-controls button:hover,
.testimonial-controls button:focus {
    background: var(--dark);
    transform: scale(1.12);
    outline: none;
}

/* Responsive design */
@media (max-width: 900px) {
    main {
        padding: 1.2rem 0.5rem;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .about-highlights {
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    main {
        padding: 0.7rem 0.2rem;
    }
    nav a {
        margin: 0 0.5rem;
        font-size: 1rem;
        padding: 0.4rem 0.7rem;
    }
    h1 {
        font-size: 1.4rem;
    }
    h2 {
        font-size: 1.1rem;
        padding-left: 1.2rem;
        padding-right: 0.7rem;
    }
    .projects-list {
        grid-template-columns: 1fr;
    }
    .about-highlights {
        flex-direction: column;
        gap: 0.7rem;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-img {
        width: 90px;
        height: 90px;
    }
    .download-cv {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1.2rem;
    }
}