@import url('https://fonts.googleapis.com/css2?family=Iosevka+Charon:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* ================= CSS VARIABLES ================= */
:root {
    /* Colors */
    --color-primary-background: #000000;   /* pure black */
    --color-primary-dark: #111111;         /* very dark gray */
    --color-secondary: #1a1a1a;            /* dark gray */
    --color-accent-mint: #ffffff;          /* white for highlights/buttons */
    --color-white: #ffffff;                 /* white text */
    --color-neutral-light: #333333;        /* medium dark gray */
    --color-neutral-300: #555555;
    --color-neutral-400: #777777;
    --color-neutral-200: #aaaaaa;

    /* Fonts */
    --font: "Iosevka Charon", monospace;

    /* Font Weights */
    --fw-light: 300;
    --fw-medium: 400;
    --fw-semibold: 500;
    --fw-bold: 600;
    --fw-extrabold: 700;

    /* Font Sizes */
    --fs-body: 1rem;
    --fs-heading: 2rem;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-5xl: 5rem;

    /* Border Radius */
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

/* ================= BODY ================= */
body {
    font-family: var(--font);
    color: var(--color-neutral-light);
    background-color: var(--color-primary-background);
}

.header {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    z-index: 1000;
}

.logo {
    font-weight: var(--fw-extrabold);
    color: var(--color-accent-mint);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* ================= ABOUT SECTION ================= */
.about-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    min-heigh:60vh;
    margin: 2rem auto;
    align-items: start;
    background:var(--color-primary);
    z-index: 2;
    color: var(--color-neutral-200);
}

/* About Column 2 */
.about-c2 {
    display: flex;
    flex-direction:column;
    gap: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-md);
    text-align: left;
}

.about-c2 h2 {
    font-size: 3rem;
    font-weight: var(--fw-bold);
    margin-top: var(--space-md);
}

.about-c2 p {
    font-size: 1.2rem;
    line-height: 1.8;
}
.about-c3 {
   justify-content:center;
}

.profile-pic {
    width: 75%;
    height: 75%;
    object-fit: cover;
    border-radius: 16px;
    align-item:center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ================= CONTACT SECTION ================= */
.site-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height:35vh;
}

.gmail a {
    font-size: 1rem;
    color: var(--color-accent-mint);
    font-weight: var(--fw-medium);
    letter-spacing: 0.15rem;
    text-decoration:none;
}

.social-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.social-wrapper .social {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);  /*button special*/
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.social-wrapper .social:hover {
    transform: translateY(-6px); /*special*/
    background: var(--color-accent-mint);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 80px;   
    text-decoration: none;
    color: var(--color-neutral-light);
    font-size: 0.8rem;
}

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




/* ================= PROJECTS SECTION ================= */
.site-projects {
    min-height: 100vh;
    padding: 4rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.site-projects h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}
.site-projects button a{
    text-decoration:none;
    color:var(--color-neutra-200);
    transition: all 0.2s ease;
}
.site-projects button:hover{
    color:var(--color-primary-dark);
}

.project-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
}

.img-project {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-project {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.card-text {
    color: var(--color-neutral-light);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-secondary);
    flex: 1;
}

.card-text h3 {
    font-size: 1.25rem;
    color:var(--color-accent-mint);
}

.card-text p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-right:3rem;
}
.card-keys ul{
    padding-left: 2rem;
}
.card-keys ul li{
    padding:0.25rem;
    font-size:1.1rem;
    line-height: 1.6;
}
ul li::marker {
  color: var(--color-accent-mint); 
  font-size:1.2rem;
}

.card-tags span {
    background-color: var(--color-accent-mint);
    color: var(--color-secondary);
    font-size: var(--fw-bold);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}
.card-project a{
    text-decoration:none;
    color:var(--color-accent-mint);
}
/* ================= SKILLS SECTION ================= */
.site-skills {
    background-color: var(--color-primary);
    padding: 2rem;
    color: var(--color-neutral-200);
    max-width: 1200px;
}

.site-skills h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    align-items: start;
}

/* Education */
.vision-wrapper {
    padding-top: 0;
    grid-row: 1;
    grid-column: 1;
    display: flex;
    display: flex;
    flex-direction: column;
}

.vision-wrapper h3 {
    font-weight: var(--fw-semibold);
    font-size:1.5rem;
    
}
.vision-wrapper p{
    border-left:2px solid #ffffff;
    padding-left: 0.5rem;
}

.block-vision {
    padding-left: 1rem;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.block-vision:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Soft Skills */
.soft-wrapper {
    padding-top: 0;
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.soft-wrapper h3 {
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    text-align: center;
}

.soft-wrapper ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.soft-wrapper ul li {
    border-radius: 8px;
    padding: 0.8rem;
    font-weight: var(--fw-medium);
    transition: all 0.2s ease;
}

.soft-wrapper ul li:hover {
    background-color: var(--color-accent-mint);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* Technical Skills*/ 
.tech-wrapper {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.tech-wrapper h3 {
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    text-align: center;
}

.tech-wrapper ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.tech-wrapper ul li {
    border-radius: 8px;
    padding: 0.8rem;
    font-weight: var(--fw-medium);
    transition: all 0.2s ease;
}

.tech-wrapper ul li:hover {
    background-color: var(--color-accent-mint);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* Languages */
.lan-wrapper {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
}

.lan-wrapper h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    text-align: center;
}

.language-container {
    margin: 0 0 0.3rem;
    font-weight: var(--fw-medium);
}

.bar {
    height: 10px;
    width: 75%;
    background-color: var(--color-primary-dark);
    color: var(--color-accent-mint);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.bar div {
    width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.5rem;
    font-weight: var(--fw-extrabold);
    color: var(--color-secondary);
    border-radius: 8px;
    transition: width 0.4s ease;
    animation: fillBar 1s ease forwards;
}

.skill-sinhala,
.skill-english,
.skill-greek,
.skill-spanish {
    background-color: var(--color-accent-mint);
}

@keyframes fillBar {
    to { width: var(--progress); }
}



/* ================= FOOTER SECTION ================= */

.copyright {
    margin: 2rem;
    text-align: center;
    padding: var(--space-md) var(--space-xl);
    color: var(--color-neutral-400);
}

/* ================= TABLET BREAKPOINT (768px - 1024px) ================= */
@media (max-width: 1024px) {

    .header {
        padding: var(--space-md) var(--space-lg);
        gap: 2rem;
    }

    .background-video-content h1 {
        font-size: 3.5rem;
    }

    .about-wrapper {
        grid-template-columns: repeat(6, 1fr);
        padding: 2rem 2rem;
        gap: 1.5rem;
    }

    .about-c1 {
        grid-column: 1 / span 6;
        padding: 0;
    }

    .about-c2 {
        grid-column: 1 / span 6;
        padding: 0;
    }

    .about-c3 {
        grid-column: 1 / span 6;
        max-height: 300px;
    }
    
    .card-project {
        height: auto;
        flex: 1 1 100%;
    }

    .card-keys ul li {
        font-size: 1rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .education-wrapper {
        grid-row: auto;
        grid-column: 1;
    }

    .soft-wrapper {
        grid-row: auto;
        grid-column: 1;
    }

    .tech-wrapper {
        grid-row: auto;
        grid-column: 1;
    }

    .lan-wrapper {
        grid-row: auto;
        grid-column: 1;
    }

    .tech-wrapper ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .soft-wrapper ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= MOBILE BREAKPOINT (480px - 768px) ================= */
@media (max-width: 768px) {
    :root {
        --space-5xl: 3rem;
        --space-2xl: 1.8rem;
    }

    /* About Mobile */
    .about-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .about-c1,
    .about-c2,
    .about-c3 {
        grid-column: 1;
    }

    .about-c1 {
        padding: 0;
    }

    .items-about {
        gap: 1rem;
        padding: 0;
    }
    .about-c2 h2 {
        font-size: 1.5rem;
    }

    .about-c2 p {
        font-size: 1rem;
    }

    .about-c3 {
        max-height: 250px;
    }
     .about-c2 {
        display: flex;
        flex-direction: column;
        align-items: center;   /* center content */
        gap: 1rem;             /* spacing between elements */
    }

    .about-c2 button  {
        width: auto;           /* button adapts to text */
        white-space: nowrap;   /* prevent text wrap */
        text-align: center;    /* center text inside button */
        padding: 0.8rem 1.5rem;
        font-size: 1rem;       /* adjust for readability */
    }

    .about-c2 button a {
        display: inline-block;
        color: var(--color-neutral-200);
    }

    /* Projects Mobile */
    .site-projects {
        padding: 2rem 1rem;
    }

    .site-projects h2 {
        font-size: 1.5rem;
    }

    .project-wrapper {
        gap: 1rem;
    }

    .card-project {
        height: auto;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .img-project {
        height: 150px;
    }

    .card-text {
        padding: 1rem;
    }

    .card-text h3 {
        font-size: 1rem;
    }

    .card-text p {
        font-size: 0.9rem;
    }

    .card-keys ul li {
        font-size: 0.95rem;
        padding: 0.3rem 0;
        line-height: 1.5;
    }

    /* Skills Mobile */
    .site-skills {
        padding: 1.5rem;
    }

    .site-skills h2 {
        font-size: 1.5rem;
    }

    .skill-grid {
        gap: 1rem;
        margin: 1rem auto;
    }

    .education-wrapper h3,
    .soft-wrapper h3,
    .tech-wrapper h3,
    .lan-wrapper h3 {
        font-size: 1.2rem;
    }

    .soft-wrapper ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .soft-wrapper ul li {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .tech-wrapper ul {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 0.8rem;
    }

    .tech-wrapper ul li a img {
        max-width: 50px;
        max-height: 50px;
    }

    .block-education {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .block-education h4 {
        font-size: 1rem;
    }

    .block-education p {
        font-size: 0.85rem;
    }

    /* Contact Mobile */
    .site-contact {
        padding: 2rem 1rem;
    }

    .site-contact h3 {
        font-size: 1.5rem;
    }

    .contact-subtext {
        font-size: 1.1rem;
    }

    .social-wrapper {
        gap: 1rem;
    }

    .social-wrapper .social {
        padding: 0.6rem;
    }

    .social a {
        gap: 0.4rem;
        font-size: 0.7rem;
    }

    .social-wrapper .social img {
        width: 45px;
        height: 45px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-about p {
        font-size: 0.85rem;
    }

    .footer-projects ul li,
    .footer-socials ul li,
    .footer-nav ul li {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    /* Social Bar Mobile */
    .social-bar {
        top: 85%;
    }

    .insta-btn,
    .github-btn,
    .linkedin-btn,
    .x-btn,
    .up-arrow {
        width: 35px;
        height: 35px;
        background-size: 20px 20px;
    }
}

/* ================= SMALL MOBILE BREAKPOINT (320px - 480px) ================= */
@media (max-width: 480px) {
    :root {
        --space-5xl: 2rem;
        --space-2xl: 1.3rem;
        --space-3xl: 1.5rem;
    }

    .header {
        padding: 0.8rem 0.5rem;
    }

    .logo h2 {
        font-size: 1rem;
    }

    .nav-wrapper {
        top: 50px;
        padding: 1rem;
    }

    .header nav ul li a {
        font-size: 0.9rem;
    }

    .hero-wrapper {
        height: 50vh;
    }

    .background-video-content h1 {
        font-size: 1.5rem;
    }


    .typing-text {
        font-size: 1rem;
    }

    .about-wrapper {
        padding: 1rem;
        gap: 1rem;
    }

    .about-c1 h3 {
        font-size: 1.2rem;
    }

    .items-about {
        gap: 0.8rem;
    }

    .item-about {
        padding: 1rem;
        gap: 0.8rem;
    }

    .item-about p {
        font-size: 0.85rem;
    }

    .about-c2 h2 {
        font-size: 1.2rem;
    }

    .about-c2 p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .about-c2 button {
        width: 8em;
        height: 2.5em;
        font-size: 0.85rem;
    }

    .site-projects {
        padding: 1.5rem 0.8rem;
        min-height: auto;
    }

    .site-projects h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .project-wrapper {
        gap: 0.8rem;
    }

    .card-project {
        height: auto;
        flex: 1 1 100%;
    }

    .img-project {
        height: 120px;
    }

    .card-text {
        padding: 0.8rem;
    }

    .card-text h3 {
        font-size: 0.95rem;
    }

    .card-text p {
        font-size: 0.85rem;
    }

    .card-keys ul li {
        font-size: 0.8rem;
        padding: 0.2rem 0;
        line-height: 1.4;
    }

    .card-tags span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .project-link img {
        width: 25px;
        height: 25px;
        margin-left: 0.5rem;
    }

    .site-skills {
        padding: 1rem 0.8rem;
    }

    .site-skills h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .education-wrapper h3,
    .soft-wrapper h3,
    .tech-wrapper h3,
    .lan-wrapper h3 {
        font-size: 1rem;
    }

    .soft-wrapper ul {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .soft-wrapper ul li {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .tech-wrapper ul {
        grid-template-columns: 1fr 1fr;
        grid-gap: 0.6rem;
    }

    .tech-wrapper ul li a img {
        max-width: 40px;
        max-height: 40px;
    }

    .block-education {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .block-education h4 {
        font-size: 0.9rem;
    }

    .site-contact {
        padding: 1.5rem 0.8rem;
        min-height: auto;
    }

    .site-contact h3 {
        font-size: 1.3rem;
    }

    .contact-subtext {
        font-size: 0.95rem;
    }

    .gmail {
        font-size: 0.85rem;
    }

    .social-wrapper {
        gap: 0.8rem;
    }

    .social-wrapper .social {
        padding: 0.5rem;
    }

    .social a {
        gap: 0.3rem;
        font-size: 0.65rem;
    }

    .social-wrapper .social img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.2rem;
    }

    .site-footer {
        padding: 1.5rem 0.8rem;
    }

    .footer-grid {
        gap: 1rem;
    }

    .footer-about h3,
    .footer-projects h3,
    .footer-socials h3,
    .footer-nav h3 {
        font-size: 1rem;
    }

    .footer-about p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .footer-projects ul li,
    .footer-socials ul li,
    .footer-nav ul li {
        padding: 0.3rem;
        font-size: 0.75rem;
    }

    .copyright {
        font-size: 0.75rem;
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .insta-btn,
    .github-btn,
    .linkedin-btn,
    .x-btn,
    .up-arrow {
        width: 32px;
        height: 32px;
        background-size: 18px 18px;
        margin-bottom: 3px;
        margin-right: 3px;
    }
}