
/* ===================== NAV TOGGLE (Hamburger) ===================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 32px;
    height: 32px;
    margin-left: 16px;
    z-index: 1001;
}
.nav-toggle span {
    height: 4px;
    width: 100%;
    background: var(--secondary-color-light);
    margin: 4px 0;
    border-radius: 2px;
    display: block;
    transition: 0.4s;
}


/* ===================== Responsive Nav (Mobile) ===================== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    nav ul {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 30%;
        max-width: 250px;
        height: 100vh;
        background: var(--primary-color-light);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px 24px;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 1000;
        text-align: left;
    }
    nav ul.open {
        right: 0;
        background-color: inherit;
    }
    nav ul li {
        display: block;
        margin: 18px 0;
    }
}

/* ===================== Animate nav-toggle when open ===================== */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
*{
    margin: 0;
    padding: 0;
   
}


h1{
  font-family: "Merienda", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

:root{
   --primary-color:#2F5249;
   --primary-color-light:#437057;
   --secondary-color:#97B067;
   --secondary-color-light:#E3DE61;
    --secondary-color-dark:#9d9a36;
}

.dark-theme {
    --primary-color: #212121;
    --primary-color-light: #333;
    --secondary-color: #edf2fc;
    --secondary-color-light: #e3de61;
    --secondary-color-dark: #9d9a36;
}

html{
    scroll-behavior: smooth;
    animation: fadeIn 0.5s ease-in-out;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    font-family: 'Playfair Display', serif;
    transition: fadeIn 0.3s, color 0.3s;
    /* animation: fadeIn 1s ease-in-out; */
}

#icon {
        transition: filter 0.3s;
}

/* Responsive Design: Mobile and Tablet */

/* ===================== Responsive Layouts for Sub-Containers ===================== */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    .sub-container-1,
    .sub-container-3 {
        display: flex;
        flex-direction: column-reverse !important;
    }
    .sub-container-2 {
        display: flex;
        flex-direction: column !important;
    }
    .left-side, .right-side {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    body {
        min-width: 0;
    }
    .container {
        padding: 10px;
        font-size: 14px;
    }
    h2 {
        font-size: 20px;
    }
    .sub-container-1,
    .sub-container-3 {
        display: flex;
        flex-direction: column-reverse !important;
    }
    .sub-container-2 {
        display: flex;
        flex-direction: column !important;
    }
    .left-side, .right-side {
        padding: 5px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .right-side img {
        width: 100%;
        height: auto;
    }
    footer {
        font-size: 14px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    nav ul{
    width: 40vw;
  }
    .container {
        padding: 2px;
        font-size: 12px;
    }
    h2 {
        font-size: 14px;
    }
    .sub-container-1,
    .sub-container-3 {
        display: flex;
        flex-direction: column-reverse !important;
    }
    .sub-container-2 {
        display: flex;
        flex-direction: column !important;
    }
    .left-side, .right-side {
        padding: 2px;
        width: 100%;
    }
    .right-side img {
        width: 100%;
        height: auto;
    }
    footer {
        font-size: 10px;
        height: 40px;
    }
}


/* ===================== Desktop Layout for Sub-Containers ===================== */
@media (min-width: 1024px) {
    .sub-container-1,
    .sub-container-2,
    .sub-container-3 {
        display: flex;
        flex-direction: row;
        margin-top: 20px;
        align-items: stretch;
    }
    .right-side {
        padding: 0px;
        width: 50%;
        min-height: 350px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* background: #eaeaea;  Uncomment for debug */
    }
    .left-side {
        padding: 20px;
        width: 50%;
    }
}


/* End Responsive Design */

nav{
    /* width: 100%; */
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    background-color: var(--primary-color-light);
    animation: fadeInUp 0.5s ease-in-out;
}

#logo{
    width: 200px;
    cursor: pointer;
    color: var(--secondary-color-light);
    font-size: 30px;
    animation: fadeInDown 1.0s ease-in-out;
}

#logo:hover{
    color: var(--secondary-color-dark);
    transition: color 0.3s ease-in-out;
    
}


nav ul{
    flex: 1;
    text-align: right;
    padding-right: 40px;

}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 5px 20px;
    animation: fadeInDown 1.2s ease-in-out
}

nav ul li a{
    text-decoration: none;
    color:var(--secondary-color-light);
    font-size: 20px;
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
    
}

nav ul li a:hover{
    color: var(--secondary-color-dark);
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover::after{
    color: var(--secondary-color-dark);
    content: "";
    width:100%;
    height: 2px;
    background: var(--secondary-color-dark);
    position: absolute;
    bottom: -4px;
    left: 0;
    animation: fadeInDown 0.5s ease-in-out;
}


.container{
    padding: 50px;
    color: var(--secondary-color-light);
    animation: fadeInUp 1.5s ease-in-out;
    font-size: 18px;
    line-height: 1.6;
    margin: 20px;
    background: rgba(245, 245, 245, 0.278) ;
    border-radius: 20px;
    animation: fadeIn 2.5s ease-in-out;
    
}

h2{
    font-family: "Merienda", cursive;
    font-weight: 400;
    font-style: normal;
    margin:20px 0px;
   border-bottom: 2px solid ;}

* {box-sizing:border-box}





footer{
    margin:0 8% ;
    height: 80px;
    display: flex;
    align-items: center;
    bottom: 0;
    /* width: 100%; */
    animation: fadeInUp 1.5s ease-in-out;
        position: relative; /* Needed for absolute positioning of ::after */
        z-index: 1;
}

footer a{
    font-size: 30px;
    color: var(--secondary-color);
    margin-right: 20px;
}

footer a:hover{
    color: var(--secondary-color-dark);
    transition: color 0.3s ease-in-out;
}

/* Underline effect for LinkedIn icon on hover */
footer a.linkedin:hover::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--secondary-color-dark);
    position: absolute;
    bottom: 20px; /* Adjusts vertical position under the icon */
    left: 0;      /* Aligns underline with the LinkedIn icon */
    animation: fadeInDown 0.5s ease-in-out;
        z-index: 10;
}

/* Underline effect for GitHub icon on hover */
footer a.github:hover::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--secondary-color-dark);
    position: absolute;
    bottom: 20px; /* Adjusts vertical position under the icon */
    left: 46px;   /* Aligns underline with the GitHub icon (adjust as needed) */
    animation: fadeInDown 0.5s ease-in-out;
        z-index: 10;
}
footer .copyright{
    color: var(--secondary-color);
    font-size: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}
