@import url('https://fonts.cdnfonts.com/css/cascadia-code');

/* Font size variables */
:root {
    --font-size-title: 38px;
    --font-size-body: 27px;
    --font-size-small: 21px;
    --font-size-small-button: 14.7px;
    --color: #E1E1E1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    font-family: 'Cascadia Code', sans-serif;
    line-height: 1.6;
    font-size: var(--font-size-body);
    width: 100%;
    height: 100%;
    background-color: #F3F3F3;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
    background-size: 55px 55px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1, .title {
    font-size: var(--font-size-title);
    font-weight: bold;
    color: #003366;
}

/* Banner */
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url(assets/mark_banner.png);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: 1px solid #e0e0e0;
}


/* Navigation Bar */
.nav_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: 1px solid #e0e0e0;
}

.nav_bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #003366;
    border-radius: 4px 4px 0 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
}

.hamburger svg {
    fill: #003366;
    width: 30px;
    height: 30px;
}

/* Navigation Items */
.items {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 15px;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    min-width: 120px;
    text-align: center;
}

.items h2 {
    margin: 0;
    font-size: var(--font-size-body);
    color: #003366;
    transition: color 0.3s;
    font-weight: 600;
}

.items svg {
    margin-left: 8px;
    fill: #003366;
    transition: fill 0.3s;
}

.items:hover, .items.active {
    background-color: #e6f9f9;
    color: #008080;
}

.items:hover h2, .items.active h2 {
    color: #008080;
}

.items:hover svg, .items.active svg {
    fill: #008080;
}

/* Responsive */
@media (max-width: 768px) {
    .nav_bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger {
        display: block;
    }

    .nav_bar .items {
        display: none;
        width: 100%;
        padding: 0;
    }

    .nav_bar.show .items {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

/* About Section */
#about {
    margin-top: 75px;
    padding: 75px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#about h1 {
    font-size: var(--font-size-title);
    margin-bottom: 15px;
    color: #003366;
}

#about p {
    font-size: var(--font-size-small);
    margin-bottom: 15px;
    color: #666666;
}

/* Experience Section */
#experience {
    margin-top: 75px;
    padding: 75px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#experience h1 {
    font-size: var(--font-size-title);
    margin-bottom: 15px;
    color: #003366;
}

.see-more {
    background-color: #008080;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.see-more:hover {
    background-color: #006666;
}

.see-more:active {
    transform: scale(0.98);
}
input, textarea {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

input:focus, textarea:focus {
    border-color: #008080;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.2);
}

/* Links */
a {
    color: #003366;
    text-decoration: none;
}

a:hover {
    color: #008080;
    text-decoration: underline;
}

/* Card */ 
.parent {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    padding-top: 50px;
    border-radius: 10px;
    border: 3px solid rgb(255, 255, 255);
    transform-style: preserve-3d;
    background: linear-gradient(135deg,#0000 18.75%,#f3f3f3 0 31.25%,#0000 0),
    repeating-linear-gradient(45deg,#f3f3f3 -6.25% 6.25%,#ffffff 0 18.75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 0;
    background-color: #f0f0f0;
    width: 100%;
    box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
    transition: all 0.5s ease-in-out;
}
  
.card:hover {
    background-position: -100px 100px, -100px 100px;
    transform: rotate3d(0.5, 1, 0, 30deg);
}
  
.content-box {
    background: rgba(4, 193, 250, 0.732);
    border-radius: 10px 100px 10px 10px;
    transition: all 0.5s ease-in-out;
    padding: 60px 25px 25px 25px;
    transform-style: preserve-3d;
}
  
.content-box .card-title {
    display: inline-block;
    color: white;
    font-size: var(--font-size-body);
    font-weight: 900;
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 50px);
}
  
.content-box .card-title:hover {
    transform: translate3d(0px, 0px, 60px);
}
  
.content-box .card-content {
    margin-top: 10px;
    font-size: var(--font-size-small);
    font-weight: 700;
    color: #f2f2f2;
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 30px);
}
  
.content-box .card-content:hover {
    transform: translate3d(0px, 0px, 60px);
}
  
.content-box .see-more {
    margin-top: 1rem;
    display: inline-block;
    font-weight: 900;
    font-size: var(--font-size-small-button);
    text-transform: uppercase;
    color: rgb(7, 185, 255);
    border-radius: 5px;
    background: white;
    padding: 0.5rem 0.7rem;
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 20px);
}

.content-box .see-more:hover {
    transform: translate3d(0px, 0px, 60px);
}
  
.date-box {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 30px;
    right: 30px;
    height: 60px;
    width: 60px;
    background: white;
    border: 1px solid rgb(7, 185, 255);
    border-radius: 10px;
    padding: 10px;
    transform: translate3d(0px, 0px, 80px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.icons {
    max-width: 100%; 
    max-height: 100%;
}
  
.date-box span {
    display: block;
    text-align: center;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #003366;
    color: #ffffff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #e6f9f9;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #ffffff;
}

.alert.success {
    background-color: #28a745;
}

.alert.error {
    background-color: #dc3545;
}

.alert.warning {
    background-color: #ffc107;
}

.projects {
    background: none;
    border: none;
    font-family: 'Cascadia Code', sans-serif;
}

.copyright {
    color: white;
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 100;
    left: 0%;
    width: 100%;
}
  
.copyright h1 {
    font-size: 16px;
    margin: 5px 0;
}
  
.copyright a {
    color: #6E5BBB;
    text-decoration: none;
}
  
.copyright a:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}