/* 1. General Page Setup */
html {
    scroll-behavior: smooth;
}

body {
    /*font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;*/
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
    line-height: 1.6;


    font: inherit;
    vertical-align: baseline;
    line-height: 1;
    /*padding: 0;*/
    border: 0;
    /*margin: 0;*/
    min-height: 100%;
    font-size: 100%;
    font-family: 'Avenir Next',Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

a {
    vertical-align: baseline;
    background-color: transparent;
    cursor: pointer;
    margin: 0px;
    padding: 0px;
    border-width: 0px;
    border-style: initial;
    border-color: initial;
    border-image: initial;
    font: inherit;
}


/* 2. Header & Navigation */
.main-header {
    background-color: white;
    padding-top: 60px;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.main-header h1 {
    margin: 0;
    /*font-size: 2.5rem;*/
    color: #131516;;
    text-transform: uppercase;

    font-family: Cormorant;
    font-weight: 300;
    font-style: normal;
    font-size: 28px;
    letter-spacing: .14em;
    line-height: .8em;
}

.degree {
    margin: 10px 0;

    font-size: 11px;
    font-family: Cormorant;
    font-style: normal;
    letter-spacing: .14em;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #131516;
    -webkit-box-ordinal-group: 3;
    padding-left: 20px;
    padding-right: 20px;
}

.superpower {
    font-family: Cormorant;
    font-weight: 300;
    font-size: 0.7rem;
    margin-bottom: 10px;
    font-style: italic;
    letter-spacing: .014em;
    line-height: .8em;
    color: #7853fe;
    -webkit-box-ordinal-group: 3;
    padding-left: 20px;
    padding-right: 20px;
}

.contact {
    /*font-family: Cormorant;*/
    /*font-weight: 300;*/
    /*font-size: 0.7rem;*/
    /*margin-bottom: 20px;*/
    /*font-style: italic;*/
    /*letter-spacing: .014em;*/
    /*line-height: .8em;*/
    color: #7853fe;
    /*-webkit-box-ordinal-group: 3;*/
    /*padding-left: 20px;*/
    /*padding-right: 20px;*/
}

.vision-statement {
    font-family: Cormorant;
    font-weight: 300;
    font-size: 0.8rem;
    text-align: justify;
    /*margin-bottom: 20px;*/
    /*font-style: italic;*/
    letter-spacing: .014em;
    line-height: 1.1em;
    /*color: #7853fe;*/
    -webkit-box-ordinal-group: 3;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-shadow: 2px 2px 2px #b6b6b6;
}

.nav-menu {
    /*margin-bottom: 25px;*/
    margin-top: 25px;
}

.nav-menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #7853fe;
    /*font-weight: bold;*/
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: #7853fe; /* Your custom purple */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-links a>img {
    height: 18px;
    width: auto;
    display: inline-block;
}

/* 3. Hero Section (Skills Grid) */
/*.hero {*/
/*    !*background: linear-gradient(to bottom, #ffffff, #ededf2);*!*/
/*    !*padding: 80px 20px;*!*/
/*    background: linear-gradient(65deg, #ffffff, #ededf2);*/

/*    padding: 0 20px;*/
/*    overflow: hidden;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/

/*.hero-container {*/
/*    display: grid;*/
/*    grid-template-columns: 1fr 1fr;*/
/*    max-width: 1100px;*/
/*    margin: 0 auto;*/
/*    gap: 50px;*/
/*    align-items: center;*/
/*    min-height: 250px; !* Fixed height to help with bottom alignment *!*/
/*}*/

/*!* Hero Left: Bottom Aligned Image *!*/
/*.hero-left {*/
/*    display: flex;*/
/*    align-items: flex-end; !* Aligns content to bottom edge *!*/
/*    justify-content: center;*/
/*    height: 100%;*/
/*    min-height: 400px;*/
/*}*/

.hero {
    /*background: linear-gradient(to bottom, #ffffff, #ededf2);*/
    background: linear-gradient(65deg, #ffffff, #ededf2);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    /* No fixed height here - let the content define it */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    gap: 40px;
    /* Height auto ensures no extra empty space at the bottom */
    height: auto;
    padding-top: 30px;
}

.hero-left {
    display: flex;
    align-items: flex-end; /* Keeps the fixed box at the bottom edge */
    justify-content: center;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers skills vertically relative to the 500px image */
    padding: 40px 0;
}


.profile-bg-container {
    /* FIXED SIZE for stable animations */
    width: 250px;
    height: 250px;

    background-image: url('images/portrait_gta.png');
    background-size: 250px 250px;
    background-position: center bottom;
    /*border-radius: 20px 20px 0 0;*/
    position: relative; /* Keep this for the animated objects! */
    /*box-shadow: 0 -5px 15px rgba(0,0,0,0.05);*/
}

@keyframes photo-object-floating {
    0% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(20px);
    }
}

.profile-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Added the missing column-title style here */
.column-title {
    grid-column: span 1;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    color: #222;
    font-size: 0.75rem;
}

/*.skill-card {*/
/*    background: white;*/
/*    padding: 15px;*/
/*    border-radius: 8px;*/
/*    text-align: center;*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
/*    font-size: 11px;*/

/*    !* Smooth transition for all properties *!*/
/*    !*transition: all 0.3s ease;*!*/
/*    !*cursor: default;*!*/
/*    !*border: 1px solid transparent; !* Prevents "jumping" when a border is added on hover *!*!*/
/*}*/

.skill-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /*text-shadow: 2px 2px 2px rgba(182, 182, 182, 0.5);*/


    /* Flexbox for perfect centering */
    display: flex;
    align-items: center;      /* Vertical centering */
    justify-content: center;   /* Horizontal centering */

    /* Ensure the card has a consistent height for the centering to be visible */
    min-height: 30px;

    /* Smooth transitions */
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;

    /* Typography */
    font-size: 11px;
    /*font-weight: 500;*/
}

/*.skill-card:hover {*/
/*    background-color: #7853fe; !* Your signature purple *!*/
/*    color: white;              !* Make text readable against purple *!*/
/*    transform: translateY(-5px); !* Lift the card up slightly *!*/
/*    box-shadow: 0 8px 20px rgba(120, 83, 254, 0.3); !* Purple-tinted shadow *!*/
/*}*/


.yellow-highlight:hover {
    background-color: #FF9300; /* Your signature purple */
    color: #000000;              /* Make text readable against purple */
    transform: translateY(-5px); /* Lift the card up slightly */
    box-shadow: 0 8px 20px rgba(255, 147, 0, 0.3); /* Purple-tinted shadow */
}

.red-highlight:hover {
    background-color: #ff2f92; /* Your signature purple */
    color: #ffffff;              /* Make text readable against purple */
    transform: translateY(-5px); /* Lift the card up slightly */
    box-shadow: 0 8px 20px rgba(255, 47, 146, 0.3); /* Purple-tinted shadow */
}

.purple-highlight:hover {
    background-color: #7853fe; /* Your signature purple */
    color: #ffffff;              /* Make text readable against purple */
    transform: translateY(-5px); /* Lift the card up slightly */
    box-shadow: 0 8px 20px rgba(120, 83, 254, 0.3); /* Purple-tinted shadow */
}

.
/* 4. Projects Section */
/*.projects {*/
/*    padding: 80px 20px;*/
/*    max-width: 1100px;*/
/*    margin: 0 auto;*/
/*}*/

.projects {
    padding: 80px 20px;
    max-width: 1200px; /* Slightly wider to accommodate more flexible cards */
    margin: 0 auto;
}

.projects h2 {
    text-align: center;
    margin-bottom: 20px;

    font-size: 20px;
    letter-spacing: 0em;
    font-family: Cormorant;
    font-style: normal;
    line-height: 0.8em;
    text-transform: uppercase;
    color: rgb(19, 21, 22);
    -webkit-box-ordinal-group: 3;
    order: 0;
    padding-left: 10px;
}

/*.projects-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(3, 1fr);*/
/*    gap: 30px;*/
/*}*/

.projects-grid {
    display: grid;
    /* This is the magic line for flexibility */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.column-header {
    text-align: center;
    margin-bottom: 25px;
}

.column-name {
    font-weight: bold;
    font-size: 0.8rem;

}

.column-subtitle {
    font-style: italic;
    font-size: 0.7rem;
    /*color: #666;*/
    font-family: Cormorant;
    font-weight: 300;
    /*font-style: italic;*/
    letter-spacing: .014em;
    line-height: .8em;
    color: #7853fe;
    -webkit-box-ordinal-group: 3;
}

.project-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.border-green {
    /*border: 1px solid #74c947;*/
    border: 1px solid rgba(116, 201, 71, 0.3);
}

.shadow-green {
    box-shadow: 0 6px 18px rgba(116, 201, 71, 0.16);
}

.border-blue {
    /*border: 1px solid #54adff;*/
    border: 1px solid rgba(84, 173, 255, 0.3);
}
.shadow-blue {
    box-shadow: 0 6px 18px rgba(84, 173, 255, 0.16);
}

.bg-blue {
    background: rgba(84, 173, 255, 0.16);
}

.border-red {
    border: 1px solid #ff2f92;
}

.bg-red {
    background: rgba(255, 47, 146, 0.16);
}

.border-purple {
    border: 1px solid rgba(110, 62, 255, 0.3);
}
.shadow-purple {
    box-shadow: 0 6px 18px rgba(110, 62, 255, 0.16);
}
.bg-purple {
    background: rgba(110, 62, 255, 0.16);
}

.border-orange {
    border: 1px solid rgba(245, 156, 51, 0.3);
}
.shadow-orange {
    box-shadow: 0 6px 18px rgba(245, 156, 51, 0.16);
}

/*.project-card {*/
/*    background: white;*/
/*    width: 100%;*/
/*    padding: 25px;*/
/*    margin-bottom: 20px;*/
/*    border-radius: 10px;*/
/*    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);*/
/*    box-sizing: border-box;*/
/*}*/

/*.project-card {*/
/*    background: white;*/
/*    width: 100%;*/
/*    padding: 20px;*/
/*    margin-bottom: 20px;*/
/*    border-radius: 12px;*/
/*    !*box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);*!*/
/*    box-sizing: border-box;*/
/*    display: flex; flex-direction: column;*/
/*    text-align: center;*/
/*}*/

.project-card {
    background: white;
    width: 100%; /* Now fills the flexible grid cell */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    /*border: 1px solid rgba(110, 62, 255, 0.16);*/
    /*box-shadow: 0 6px 18px rgba(110, 62, 255, 0.16);*/
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 18px rgba(110, 62, 255, 0.16);
    /*border: 1px solid rgba(110, 62, 255, 0.16);*/
}

/*.project-title {*/
/*    font-size: 0.8rem;*/
/*    margin: 0 0 15px 0;*/
/*    color: #222;*/
/*    text-align: center;*/
/*}*/

.project-title {
    font-size: 0.8rem;
    margin: 0 auto;
    color: #222;
}

/* Rounded Badge */
.project-badge {
    align-self: center; /* Centers the badge horizontally in the flex column */
    background-color: #f0ecff;
    color: #7853fe;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/*.project-title {*/
/*    font-size: 1.25rem; margin: 0; color: #222; text-align: left;*/
/*}*/

/* Organization Subtitle */
.project-org {
    font-size: 0.7rem;
    color: #777;
    margin: 6px 0 15px 0;
    font-weight: normal;
}


.project-image-container {
    width: 100%; height: 180px; overflow: hidden; border-radius: 8px; margin-bottom: 15px;
}

.project-img {
    /*width: 100%; */
    height: 100%;
    object-fit: cover; /* Prevents image distortion */
    transition: transform 0.3s ease;
}

/*.project-card:hover .project-img { transform: scale(1.05); }*/

.project-description {
    font-size: 0.8rem;
    color: #191b1d;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: left;


    line-height: 15px;
    /*font-size: 10px;*/
    /*text-shadow: 2px 2px 2px #b6b6b6;*/
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tools span {
    font-size: 0.7rem;
    /*background: #f0ecff;*/
    background: rgb(247 247 249);
    /*color: #7853fe;*/
    padding: 4px 10px;
    border-radius: 5px;
    /*font-weight: bold;*/
}

/* 5. Publications Section */
.publications {
    /*padding: 0px 20px;*/
    padding-top: 80px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.publications h2 {
    text-align: center;
    margin-bottom: 20px;

    font-size: 20px;
    letter-spacing: 0em;
    font-family: Cormorant;
    font-style: normal;
    line-height: 0.8em;
    text-transform: uppercase;
    color: rgb(19, 21, 22);
    -webkit-box-ordinal-group: 3;
    order: 0;
    padding-left: 10px;
}

.publications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.pub-card {
    text-align: center;
    padding: 10px;
}

.pub-icon {
    font-size: 1.8rem;
    /*color: #444;*/
    color: #7853fe;
    margin-bottom: 10px;
}

.pub-icon img {
    width: 60px;
    height: 60px;
}

.pub-type {
    /*font-weight: bold;*/
    font-size: 0.8rem;
    /*color: #222;*/
    margin-bottom: 5px;
    /*text-transform: uppercase;*/

    line-height: 15px;
    color: rgb(25, 27, 29);
    /*font-size: 10px;*/
    text-shadow: rgb(182, 182, 182) 2px 2px 2px;
}

.pub-details {
    /*font-size: 0.7rem;*/
    /*color: #555;*/

    line-height: 15px;
    color: rgb(25, 27, 29);
    font-size: 12px;
    text-shadow: rgb(182, 182, 182) 2px 2px 2px;
}

/* 6. Footer */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.6rem;
}

.objects {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 797px;
}

.ball {
    width: 43px;
    height: 43px;
    /* margin-left: 170px; */
    /* margin-top: -141px; */
    margin-left: 140px;
    margin-top: 40px;
    display: block;
    position: absolute;
    /*top: 18px;*/
    /*left: 100px;*/
    animation: photo-object-floating 7.1s infinite ease-in-out alternate;
}

.pyramid {
    width: 47px;
    height: 43px;
    margin-left: 169px;
    margin-top: -50px;
    /* margin-top: 120px; */
    /* margin-left: calc(-72px / 2); */
    display: block;
    position: absolute;
    /*top: -110px;*/
    /*left: 95px;*/
    animation: photo-object-floating 6.5s infinite ease-in-out alternate;
}

.cube {
    width: 49px;
    height: 49px;
    margin-left: 190px;
    margin-top: 30px;
    /* margin-left: calc(-80px / 2); */
    /* margin-top: calc(-82px / 2); */
    display: block;
    position: absolute;
    /*top: -44px;*/
    /*left: 130px;*/
    animation: photo-object-floating 8.5s infinite ease-in-out alternate;
    /*animation: photo-object-floating 8s;*/
}


/* 5. Teaching Section (Flexible Grid) */
.teaching {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.teaching h2 {
    /*text-align: center;*/
    /*margin-bottom: 40px;*/
    /*text-transform: uppercase;*/
    /*letter-spacing: 2px;*/

    text-align: center;
    margin-bottom: 20px;

    font-size: 20px;
    letter-spacing: 0em;
    font-family: Cormorant;
    font-style: normal;
    line-height: 0.8em;
    text-transform: uppercase;
    color: rgb(19, 21, 22);
    -webkit-box-ordinal-group: 3;
    order: 0;
    padding-left: 10px;
}

.courses-container {
    display: grid;
    /* Automatically creates as many columns as fit (minimum 250px wide) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.course-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.course-icon {
    font-size: 2.5rem;
    color: #444;
    margin-bottom: 15px;
}

/* If you decide to use actual images instead of icons */
.course-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.course-title {
    font-size: 0.8rem;
    /*font-size: 1.1rem;*/
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}

.course-description {
    /*font-size: 0.9rem;*/
    /*color: #555;*/
    /*margin-bottom: 12px;*/
    /*line-height: 1.5;*/

    font-size: 0.8rem;
    color: #191b1d;
    margin-bottom: 5px;
    flex-grow: 1;
    text-align: left;


    line-height: 15px;
    /*font-size: 10px;*/
    /*text-shadow: 2px 2px 2px #b6b6b6;*/
}

.read-more {
    font-size: 0.85rem;
    color: #7853fe; /* Using your custom purple */
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.read-more:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 7. Responsiveness */
/*@media (max-width: 900px) {*/
/*    .hero-container, .projects-grid {*/
/*        grid-template-columns: 1fr;*/
/*    }*/
/*}*/

/* --- Responsiveness Fix (Tight Layout) --- */
/* --- Responsiveness: Scaling the Fixed Box --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-left {
        order: 1; /* Photo on top */
        padding-top: 40px;
    }

    /* On mobile, we keep it fixed but slightly smaller to fit phones */
    .profile-bg-container {
        width: 250px;
        height: 250px;
    }

    .hero-right {
        order: 2; /* Skills below */
        padding: 20px 0 60px 0;
    }
}

/* For small phones, ensure the box doesn't exceed screen width */
@media (max-width: 360px) {
    .profile-bg-container {
        width: 280px;
        height: 350px;
    }
}