* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #422b3c;
    background-image: url("./images/maininter.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(154, 63, 111, 0.45);
    outline-offset: 3px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.menu a:hover,
.menu a:focus {
    color: #9a3f6f;
    border-bottom-color: #9a3f6f;
    outline: none;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Georgia', serif;
    color: hsl(344, 73%, 61%);
    letter-spacing: -0.5px;
    cursor: pointer;
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 60px 60px 41px 127px;
}

.hero-panel {
    /* make panel visually minimal so background shows through */
    background: transparent;
    border-radius: 12px;
    padding: 30px 24px;
    max-width: 860px;
    width: 100%;
    box-shadow: none;
    border: none;
}

.hero .section-label {
    margin-bottom: 20px;
}

.hero-title {
    margin: 0 0 24px;
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #2c1730;
    line-height: 1.05;
}

.hero-text {
    margin: 0 0 32px;
    color: #5c3b52;
    font-size: 18px;
    line-height: 1.85;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 50px;
    border: 1px solid rgba(154, 63, 111, 0.24);
    background: rgba(255, 255, 255, 0.85);
    color: #9a3f6f;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.secondary-link:hover,
.secondary-link:focus {
    background: rgba(250, 224, 236, 0.95);
    color: #7f2d57;
    transform: translateY(-1px);
}

.about,
.skills,
.projects,
.contact {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 60px 60px;
    background-image: url("./images/aboutbg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about-card,
.skills-content,
.projects-content,
.contact-card,
.page-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    max-width: 760px;
    width: 100%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 182, 205, 0.25);
}

.projects-content,
.contact-card,
.page-panel {
    max-width: 880px;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.about-card h2,
.page-panel h2 {
    margin: 12px 0 24px;
    font-size: 36px;
    color: #2c1730;
    font-weight: 700;
    line-height: 1.3;
}

.section-label,
.page-title {
    display: inline-block;
    margin: 0 0 12px;
    color: #b24b78;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 600;
    padding-top: 1px;
    border-top: 2px solid rgba(255, 182, 205, 0.8);
}

.page-title {
    display: block;
    border: none;
    text-transform: none;
    font-size: 36px;
    color: #2c1730;
    font-weight: 700;
    margin: 12px 0 24px;
    letter-spacing: normal;
}

.page-text {
    display: block;
    margin: 0 0 36px;
    color: #5c3b52;
    font-size: 18px;
    line-height: 1.8;
    max-width: 720px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 32px 0;
}

.about-intro p {
    margin: 0 0 16px;
    color: #5d4150;
    font-size: 16px;
    line-height: 1.8;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 230, 240, 0.5);
    border-radius: 12px;
    border-left: 3px solid #9a3f6f;
}

.highlight-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9a3f6f;
    letter-spacing: 1px;
}

.highlight-item span:last-child {
    font-size: 15px;
    color: #5d4150;
    line-height: 1.6;
}

.about-footer p {
    margin: 24px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 182, 205, 0.4);
    color: #5d4150;
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
}

.skills-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.skill-card {
    background: rgba(255, 230, 240, 0.95);
    border: 1px solid rgba(255, 182, 205, 0.8);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(255, 192, 203, 0.15);
    transition: all 0.3s ease, transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 182, 205, 0.25);
    border-color: rgba(255, 182, 205, 1);
}

.skill-card h3 {
    margin: 0 0 12px;
    color: #8b3a5b;
    font-size: 22px;
    font-weight: 700;
}

.skill-card p {
    margin: 0;
    color: #6a3d55;
    font-size: 15px;
    line-height: 1.75;
}

@media (min-width: 900px) {
    .skills-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .skills-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.projects-grid {
    display: grid;
    gap: 24px;
    margin-top: 36px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    background: rgba(255, 240, 248, 0.96);
    border: 1px solid rgba(255, 182, 205, 0.7);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 25px rgba(255, 182, 205, 0.15);
    transition: all 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(255, 182, 205, 0.25);
    border-color: rgba(255, 182, 205, 0.9);
}

.project-card h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: #9a3f6f;
    font-weight: 700;
}

.project-card ul,
.project-card p {
    margin: 0;
    color: #4f3245;
    font-size: 15px;
    line-height: 1.8;
}

.project-card li {
    margin-bottom: 8px;
}

.contact-card h2 {
    margin: 0 0 18px;
    font-size: 34px;
    color: #2c1730;
    font-weight: 700;
}

.contact-card p {
    margin: 0 0 28px;
    color: #5c3b52;
    font-size: 16px;
    line-height: 1.75;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-details > div {
    padding: 20px;
    background: rgba(255, 230, 240, 0.5);
    border-radius: 12px;
    border-left: 3px solid #9a3f6f;
}

.contact-details h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #8b3a5b;
    font-weight: 700;
}

.contact-details p {
    margin: 0;
    color: #4f3245;
    font-size: 15px;
    line-height: 1.8;
}

.contact-details a {
    color: #9a3f6f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-details a:hover,
.contact-details a:focus {
    color: #b24b78;
    text-decoration: underline;
    outline: none;
}

.contact-signature {
    margin: 32px 0 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 182, 205, 0.4);
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 16px;
    color: #7a3a5a;
    text-align: right;
    line-height: 1.6;
}

.contact-signature-name {
    margin: 8px 0 0;
    font-size: 18px;
    color: #5b2a42;
    font-weight: 600;
}

.Connect {
    background: linear-gradient(135deg, #e48ca4, #d66b8f);
    color: white;
    text-decoration: none;
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 107, 143, 0.35);
    transition: all 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.Connect:hover,
.Connect:focus {
    background: linear-gradient(135deg, #f09bb5, #dd7a9e);
    box-shadow: 0 12px 28px rgba(212, 107, 143, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.Connect:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    nav {
        padding: 15px 24px;
        flex-direction: column;
        gap: 20px;
    }
    
    .menu {
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }
    
    .menu a {
        font-size: 16px;
    }
    
    .about,
    .skills,
    .projects,
    .contact {
        padding: 60px 24px 40px;
    }

    .about-card,
    .skills-content,
    .projects-content,
    .contact-card,
    .page-panel {
        padding: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .contact-signature {
        text-align: center;
    }
}

@media (max-width: 540px) {
    .hero,
    .about,
    .skills,
    .projects,
    .contact {
        padding: 50px 20px 40px;
    }

    .hero-panel,
    .about-card,
    .skills-content,
    .projects-content,
    .contact-card,
    .page-panel {
        padding: 28px;
    }

    .section-label,
    .page-title,
    .hero-title {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .skill-card,
    .project-card,
    .contact-details > div {
        padding: 24px;
    }
}
