*{
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body{
    width: 95%;
    /* max-width: 1400px; */
    margin: 30px auto;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    background-color: rgb(254, 252, 241);
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer-area{
    margin-top: auto;
}

.top-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar>p>span{
    color: black;
}

a{
    text-decoration: none;
    color: rgb(56, 121, 125);
    transition: color 0.3s ease;
}

a:hover{
    color: rgba(56, 121, 125, 0.797);
}

.kate{
    font-weight: bolder;
    color: black;
}

.top-bar>p{
    color: rgb(56, 121, 125);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
}

.about-area{
    width: 100%;
    max-width: 1000px;
    margin: 120px auto 100px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    column-gap: 15px;
    justify-items: center;
    align-items: center;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.about-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(86, 151, 155, 0.02) 0%,
        rgba(86, 151, 155, 0.005) 40%,
        transparent 70%
    );
    z-index: -1;
    pointer-events: none;
}

.about-area>img{
    width: 380px;
    height: 380px;
    object-fit: cover;
    grid-column: 2/4;
    margin: 0;
    border-radius: 50%;
    box-shadow: 
        0 15px 40px rgba(86, 151, 155, 0.2),
        0 0 0 8px rgba(86, 151, 155, 0.05),
        0 0 0 16px rgba(86, 151, 155, 0.02);
    border: 4px solid rgba(86, 151, 155, 0.15);
    animation: fadeIn 1s ease forwards, profileFloat 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.about-area>img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(86, 151, 155, 0.3),
        0 0 0 8px rgba(86, 151, 155, 0.08),
        0 0 0 16px rgba(86, 151, 155, 0.04);
    border-color: rgba(86, 151, 155, 0.25);
}

@keyframes profileFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Keyframes animation for fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Slide in from 20px below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Slide to its original position */
    }
}

.about-me{
    width: 480px;
    grid-column: 5/8;
    margin: 0;
    padding: 35px;
    box-sizing: border-box;
}


.about-me>h1{
    font-size: 40px;
    margin-bottom: 20px;
    color: black;
    font-weight: 700;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-me>h2{
    color: rgb(56, 121, 125);
    font-size: 1.17em; /* Match h3 default size */
    margin-bottom: 30px;
    font-weight: 500;
    position: relative;
}

.about-me>h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgb(56, 121, 125), transparent);
}

.about-me>p{
    opacity: 0;
    animation: slideIn 1s ease forwards;
    /* font-size: 17px; */
    line-height: 1.8;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

/* Keyframes for slideIn animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px); /* Slide in from right */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Slide to its original position */
    }
}

/* Add subtle background pattern */
body {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(86, 151, 155, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(86, 151, 155, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(86, 151, 155, 0.025) 0%, transparent 50%);
}

/* Add subtle animations */
.about-me>h1 {
    animation: fadeInDown 0.8s ease forwards;
}

.about-me>h2 {
    animation: fadeInDown 0.8s ease 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0 230px;
}

.title{
    color: rgb(56, 121, 125);
    font-weight: bold;
}

.slashes{
    color: rgb(56, 121, 125);
}

.buttons>a>img{
    width: 80px;
    padding: 10px;
    transition: transform 0.3s ease; /* Add transition effect to transform property */
}

.buttons>a>img:hover{
    transform: translateY(-5px); /* Move the link 5px upwards on hover */
}

.google-ux, .google-ai{
    margin: -35px 0 20px;
}

.footer-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    vertical-align: middle;
}

.copyright {
    margin: 0;
}

.footer-area>p>a>img{
    width: 25px;
}

/* Resume page styles */
.resume-area {
    width: 95%;
    margin: 40px auto 80px;
}

.work-experiences {
    margin: 40px 0;
}

.experience-item {
    display: grid;
    grid-template-columns: 80px 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(86, 151, 155, 0.2);
    opacity: 0;
    animation: slideInResume 0.8s ease forwards;
}

.experience-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.experience-number .number {
    font-size: 24px;
    font-weight: bold;
    color: rgb(56, 121, 125);
}

.experience-position {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-position .title {
    font-weight: bold;
    font-size: 18px;
    color: rgb(56, 121, 125);
}

.experience-position .company {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.experience-position .duration {
    font-size: 14px;
    color: #6a6a6a;
    font-style: italic;
}

.experience-details {
    line-height: 1.6;
}

/* Skills section styles */
.skills {
    margin: 40px 0;
}

.skill-item {
    display: grid;
    grid-template-columns: 80px 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(86, 151, 155, 0.2);
    opacity: 0;
    animation: slideInResume 0.8s ease forwards;
}

.skill-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.skill-number .number {
    font-size: 24px;
    font-weight: bold;
    color: rgb(56, 121, 125);
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-category .title {
    font-weight: bold;
    font-size: 18px;
    color: rgb(56, 121, 125);
}

.skill-category .skill-type {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.skill-details {
    line-height: 1.6;
    color: #333;
}

/* Certificates section styles */
.certificates {
    margin: 40px 0;
}

.certificate-item {
    display: grid;
    grid-template-columns: 80px 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(86, 151, 155, 0.2);
    opacity: 0;
    animation: slideInResume 0.8s ease forwards;
}

.certificate-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.certificate-number .number {
    font-size: 24px;
    font-weight: bold;
    color: rgb(56, 121, 125);
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.certificate-info .title {
    font-weight: bold;
    font-size: 18px;
    color: rgb(56, 121, 125);
}

.certificate-info .provider {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.certificate-info .date {
    font-size: 14px;
    color: #6a6a6a;
    font-style: italic;
}

.certificate-details {
    line-height: 1.6;
}

/* Animation delays for staggered effect */
.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

.certificate-item:nth-child(1) { animation-delay: 0.1s; }
.certificate-item:nth-child(2) { animation-delay: 0.2s; }
.certificate-item:nth-child(3) { animation-delay: 0.3s; }

/* Resume page section headings animation */
.resume-area h1 {
    opacity: 0;
    animation: fadeInResume 1s ease forwards;
}

/* Resume animation keyframes */
@keyframes slideInResume {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInResume {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: rgb(56, 121, 125);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
}

/* Responsive design */
@media screen and (max-width: 1099px){
    .top-bar {
        position: relative;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-bar>p:first-child {
        font-size: 16px;
        line-height: 1.2;
        flex: 1;
        margin-right: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(254, 252, 241);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 10px 0;
        text-align: center;
        border-bottom: 1px solid rgba(86, 151, 155, 0.2);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-separator {
        display: none;
    }
    
    .about-area {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        margin: 60px auto 120px;
        width: 95%;
        padding: 20px;
        gap: 40px;
    }
    
    .about-area>img{
        width: 280px;
        height: 280px;
        grid-column: unset;
        border-radius: 50%;
        box-shadow: 
            0 10px 30px rgba(86, 151, 155, 0.15),
            0 0 0 5px rgba(86, 151, 155, 0.03),
            0 0 0 10px rgba(86, 151, 155, 0.015);
        animation: fadeIn 1s ease forwards, profileFloat 6s ease-in-out infinite;
    }
    
    .about-me{
        width: 100%;
        max-width: 500px;
        grid-column: unset;
        padding: 25px;
    }
    
    .about-me>h1{
        font-size: 38px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .about-me>h2{
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .about-me>p{
        font-size: 15px;
        line-height: 1.6;
    }
    
    .footer-area{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-bar-logo {
        height: 24px;
    }
    
    .footer-logo-img {
        height: 24px;
    }

    .resume{
        margin-top: -60px;
    }
    
    /* Resume mobile styles */
    .experience-item, .certificate-item, .skill-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
    
    .experience-number, .certificate-number, .skill-number {
        justify-content: flex-start;
    }
    
    .experience-position .title, .certificate-info .title, .skill-category .title {
        font-size: 16px;
    }
}

/* Tablet landscape */
@media screen and (max-width: 1099px){
    .about-area{
        margin: 90px auto 80px;
        column-gap: 15px;
        padding: 0 15px;
    }
    
    .about-area>img{
        width: 320px;
        height: 320px;
        border-radius: 50%;
        box-shadow: 
            0 12px 35px rgba(86, 151, 155, 0.18),
            0 0 0 6px rgba(86, 151, 155, 0.04),
            0 0 0 12px rgba(86, 151, 155, 0.02);
    }
    
    .about-me{
        width: 420px;
        padding: 30px;
    }
    
    .about-me>h1{
        font-size: 46px;
    }
    
    .about-me>h2{
        font-size: 20px;
    }
}

/* Tablet portrait */
@media screen and (max-width: 1099px){
    .top-bar, .footer-area{
        text-align: center;
    }
    
    .about-area{
        margin: 60px auto 60px;
        width: 100%;
        max-width: 95%;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .about-me>h1{
        font-size: 36px;
    }
}

/* Mobile large */
@media screen and (max-width: 609px){
    .about-area{
        margin: 40px auto 50px;
        width: 100%;
        max-width: 95%;
        padding: 15px;
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-area>img{
        width: 240px;
        height: 240px;
        border-radius: 50%;
        box-shadow: 
            0 8px 25px rgba(86, 151, 155, 0.12),
            0 0 0 4px rgba(86, 151, 155, 0.02);
        order: -1;
    }
    
    .about-me{
        max-width: 100%;
        padding: 20px;
    }
    
    .about-me>h1{
        font-size: 30px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .about-me>h2{
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .about-me>p{
        font-size: 14px;
        line-height: 1.5;
    }

    .buttons>span{
        display: none;
    }
    
    .top-bar-logo {
        height: 22px;
    }
    
    .footer-logo-img {
        height: 22px;
    }
}

/* Mobile medium */
@media screen and (max-width: 459px){
    .about-area{
        margin: 30px auto 40px;
        width: 100%;
        max-width: 95%;
        gap: 25px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-area>img{
        width: 200px;
        height: 200px;
        border-radius: 50%;
        order: -1;
    }
    
    .about-me{
        padding: 18px;
        width: 100%;
    }
    
    .about-me>h1{
        font-size: 26px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .about-me>h2{
        font-size: 16px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .about-me>p{
        font-size: 13px;
    }
    
    .footer-area{
        gap: 15px;
    }
    
    .footer-area>p{
        font-size: 14px;
    }
    
    .top-bar-logo {
        height: 20px;
    }
    
    .footer-logo-img {
        height: 20px;
    }
}

/* iPhone 14 Pro and similar sized screens */
@media screen and (max-width: 393px){
    .top-bar {
        padding: 12px 15px;
    }
    
    .top-bar>p:first-child {
        font-size: 15px;
        max-width: 250px;
    }
    
    .kate {
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }
    
    .top-bar-logo {
        height: 18px;
    }
    
    .footer-logo-img {
        height: 18px;
    }
}

/* Mobile small */
@media screen and (max-width: 375px){
    .top-bar {
        padding: 10px 12px;
    }
    
    .top-bar>p:first-child {
        font-size: 14px;
        max-width: 200px;
    }
    
    .kate {
        font-size: 15px !important;
    }
    
    .mobile-menu-toggle {
        padding: 5px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .about-area{
        width: 100%;
        max-width: 95%;
        padding: 10px;
        gap: 20px;
        margin: 25px auto 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-area>img{
        width: 180px;
        height: 180px;
        border-radius: 50%;
        order: -1;
    }
    
    .about-me{
        width: 100%;
        padding: 15px;
    }
    
    .about-me>h1{
        font-size: 22px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .about-me>h2{
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .about-me>p{
        font-size: 12px;
        line-height: 1.4;
    }

    .resume{
        padding: 0 10px;
    }
    
    .top-bar-logo {
        height: 16px;
    }
    
    .footer-logo-img {
        height: 16px;
    }
}

/* Very small screens */
@media screen and (max-width: 320px){
    .top-bar {
        padding: 8px 10px;
    }
    
    .top-bar>p:first-child {
        font-size: 13px;
        max-width: 180px;
    }
    
    .kate {
        font-size: 14px !important;
    }
    
    .about-area>img{
        width: 180px;
    }
    
    .about-me>h1{
        font-size: 22px;
    }
    
    .top-bar-logo {
        height: 14px;
    }
    
    .footer-logo-img {
        height: 14px;
    }
}