:root {
    --navy-bg: #0a192f;
    --navy-card: #112240;
    --accent-cyan: #64ffda;
    --text-white: #e6f1ff;
    --text-slate: #8892b0;
}

html, body {
    background-color: var(--navy-bg); 
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0; 
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--navy-bg);
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg-navy { background-color: #020c1b; }
.bg-navy-light { background-color: var(--navy-card); }
.text-accent { color: var(--accent-cyan); }
.text-dim { color: var(--text-slate); }

header { 
    background-color: var(--navy-bg);
    color: rgb(82, 73, 150);
    padding: 1rem;
    min-height: 70px;
    width: 100%;
}

.navbar {
    background-color: var(--navy-bg) !important;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.nav-link {
    color: var(--text-slate) !important;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan) !important;
}

.navbar-toggler {
    border-color: var(--accent-cyan);
}

footer {
    background-color: #020c1b;
    margin-top: 0;
    flex-shrink: 0;
    border-top: none;
    outline: none;
    width: 100%;
    position: relative;
    z-index: 10;
}

main {
    display: flow-root;
    margin-bottom: -1px !important;
    padding-bottom: 0 !important;
    flex: 1 0 auto;
    background-color: #020c1b;
}

.social-icon {
    color: var(--text-slate);
    font-size: 1.2rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
    display: inline-block;
}

.footer-link {
    color: var(--text-slate);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 15px;
    font-family: 'Roboto', sans-serif;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.border-accent {
    border-color: rgba(100, 255, 218, 0.3) !important;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy-card);
    font-weight: bold;
    margin-right: auto;
    padding-left: 5%;
}

.edu-card {
    background-color: var(--navy-card);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 20px;
    max-width: 825px;
    text-align: left;
    margin: 0 auto;
    padding: 50px 20px;
    transition: transform 0.3s ease;  
}

.edu-card:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.02);

}

.edu-icon {
    background: rgba(100, 255, 218, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.edu-details ul {
    list-style: none;
    padding-left: 0;
}

.edu-details li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.edu-details li::before {
    content: "⚓";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.intro-text {
    font-size: 1.45rem;
    letter-spacing: 5px;
    color: #8892b0;
    line-height: 1;
    margin: 0;
}

.name-text {
    color: var(--accent-cyan);
    font-size: 60px;
    font-family: Arial;
    line-height: 1;
    margin: 0;
}

.text-center {
    color: var(--accent-cyan);
}

/*Grid layout for Projects*/
.project-card {
    background-color: transparent !important;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s 0.3s ease;
}

.project-card:hover {
    background-color: #1d335c !important;
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(2, 12, 27, 0.5);
}

/*Media container*/
.media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.img-front, .img-back {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.video-back {
    position: absolute;
    z-index: 1;
    width: 100%;height: 100%;
    object-fit: cover;
}

.img-back, .video-back { opacity: 0; z-index: 1; }
.img-front { opacity: 1; z-index: 2; }

.project-card:hover .img-front { opacity: 0; }
.project-card:hover .img-back,
.project-card:hover .video-back { opacity: 1; }

/*Tag "hover to play"*/
.hover-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 25, 47, 0.85);
    color: var(--accent-cyan);
    padding: 2px 10px;
    font-size: 0.75rem;
    border: 1px solid var(--accent-cyan);
    z-index: 3;
}

/* Tech badge */
.tech-badge {
    background: transparent;
    font-weight: 400;
    color: var(--accent-cyan);
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.feature-list li {
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.feature-list li::before {
    content: "•";
    color: var(--text-slate);
    font-weight: bold;
    display: inline-block; 
    width: 1rem;
}

/*Part: About me*/
.about-container {
    background-color: var(--navy-card);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 20px;
    max-width: 825px;
    text-align: center;
    margin: 0 auto;
    padding: 50px 20px;
    transition: transform 0.3s ease;
}

.about-container:hover {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
}

.about-text {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-slate);
    max-width: 850px;
    margin: 0;
    text-align: justify;
}

.quick-facts {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: bold;
    color: var(--text-white);
}

/*Adjust name & my profile picture*/
.profile-img {
    width: 250px;
    aspect-ratio: 1/1;
    object-position: center 20%;
    border-radius: 15px;
    object-fit: cover;
    border-color: #64ffda !important;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

/*Experience tabs*/
/*Timeline axis*/
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(100, 255, 218, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding: 10px 40px;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 20px;
    z-index: 10;
    border-radius: 50%;
    background: var(--navy-bg);
    border: 3px solid var(--accent-cyan);
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: 0.3s;
}

.timeline-date {
    padding-right: 10px;
    text-align: inherit;
    color: var(--text-white) !important;
    font-size: 0.9rem;
    padding-top: 10px;
}

.timeline-content {
    width: 100%;
    padding: 20px;
    background: var(--navy-card);
    border-radius: 12px;
    display: inline-block;
    transition: 0.4s;
}

.hidden-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.timeline-item:hover .hidden-details {
    max-height: 200px;
    opacity: 1;
}

.timeline-item:hover .timeline-content {
    background: #1d335c;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.timeline-item:hover .timeline-dot{
    background: var(--accent-cyan);
}


/*Support display on mobile phones or tablets*/
@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .timeline::after { 
        left: 31px; 
        margin-left: 0;
        transform: none;
    }
    .timeline-item { 
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0 !important;
        margin-bottom: 30px;
    }
    .timeline-item.right .timeline-item.left { right: -20px; }
    .timeline-dot {
        left: 20px !important;
        right: -50px !important;
        margin-left: 0;
        transform: none;
    }
}

/*Contact*/
.form-control, .form-select {
    background-color: #020c1b !important;
    color: white !important;
    border: 1px solid #64ffda;
}

.form-control:focus, .form-select:focus {
    background-color: #112240;
    border-color: var(--accent-cyan);
    color: white;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

form {
    position: relative;
    z-index: 10;
}



.form-control::placeholder {
    color: var(--text-slate) !important;
    opacity: 1;
}

.btn-accent {
    background-color: var(--accent-cyan) !important;
    color: #0a192f !important;
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #45c2a5 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
    color: #0a192f !important;
}

.btn-accent:active {
    transform: translateY(-1px);
}