* {
    font-family: "Montserrat";
    text-align: center;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0a192f;
    --secondary-color: #64ffda;
    --text-color: #ccd6f6;
    --background-color: #0a192f;
    --card-background: #112240;
    --highlight-color: #64ffda;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.big-heading {
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.5;
    background: linear-gradient(to right, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.section-heading {
    font-size: 3rem;
    line-height: 1.5;
}

#title {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: left;
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
}

#title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.9) 100%);
    z-index: -1;
}

.container-experience {
    padding: 3% 15% 7%;
    background-color: var(--background-color);
    position: relative;
}

.container-portfolio {
    padding: 3% 2% 7%;
    background-color: var(--card-background);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

.navbar {
    padding-bottom: 2.5rem;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color) !important;
}

.nav-item {
    padding: 0 18px;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color) !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.title-image {
    transform: rotate(25deg);
    width: 30%;
    position: absolute;
    right: 30%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: rotate(25deg) translateY(0px);
    }
    50% {
        transform: rotate(25deg) translateY(-20px);
    }
    100% {
        transform: rotate(25deg) translateY(0px);
    }
}

.link_project {
    text-align: center !important;
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.link_project:hover {
    color: var(--highlight-color);
    text-decoration: none;
}

.link_project::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.link_project:hover::after {
    width: 100%;
}

#portfolio {
    background-color: var(--card-background);
    color: var(--text-color);
}

.testimonial-image {
    width: 150px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-item {
    padding: 7% 15%;
}

.price-text {
    font-size: 3rem;
    line-height: 1.5;
}

.card {
    background-color: var(--card-background);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card button {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.card button:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

#contact {
    background-color: var(--primary-color);
    padding: 7% 15%;
    margin-bottom: 50px;
    position: relative;
}

#contact h3 {
    color: var(--text-color);
}

.navbar-toggler-icon {
    padding: 45px !important;
}

@media (max-width: 1028px) {
    #title {
        text-align: center;
    }
    .title-image {
        position: static;
        transform: rotate(0);
        animation: none;
    }
}

.download-button {
    margin: 5% 3% 5% 0;
    font-size: 1.2rem;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
}

.container-contents {
    padding: 5% 2%;
    font-size: 1.6rem;
}

.testimonial-text {
    text-align: center;
    font-size: 2.4rem;
    line-height: 1.5;
    color: var(--secondary-color);
}

.project-description {
    font-size: 1.2rem;
    text-align: left;
    text-indent: 25px;
    font-weight: normal;
}

.container-title {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.container-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -10px;
    left: 25%;
    background-color: var(--secondary-color);
}

.li_item {
    text-align: left;
    font-size: 1.2rem;
    padding-bottom: 2rem;
    position: relative;
    list-style-type: none;
    padding-left: 20px;
    border-left: 2px solid var(--secondary-color);
    margin-left: 20px;
}

.li_item::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    left: -6px;
    top: 10px;
}

.li_item_content {
    text-align: left;
    font-size: 1rem;
    text-indent: 1rem;
    padding: 10px 0;
}

.org {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.container-contents p {
    font-size: 1.2rem;
}

footer p {
    font-size: 1rem;
}

#contact h3 {
    font-size: 1.5rem;
}

.social-icon {
    margin: 20px 10px;
    font-size: 2rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--text-color);
    transform: translateY(-5px);
}

.project-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.skill-tag {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
    left: 0;
    top: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    left: -6.5px;
    top: 5px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content {
    font-size: 1rem;
}

@media only screen and (min-device-width: 700px) {
    .navbar-toggler-icon {
        padding: 25px !important;
    }
    
    .container-contents {
        font-size: 1.2rem;
    }
    
    .testimonial-text {
        font-size: 2rem;
    }
    
    .download-button {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
}

/* Code-like elements */
.code-block {
    background-color: rgba(17, 34, 64, 0.8);
    border-left: 3px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '// code';
    position: absolute;
    top: 5px;
    right: 10px;
    color: rgba(100, 255, 218, 0.5);
    font-size: 0.8rem;
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Matrix-like background effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

/* Glowing effect for important elements */
.glow {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.7);
}

/* Particle effect */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Terminal-like section */
.terminal {
    background-color: #0d1117;
    border-radius: 5px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #e6f1ff;
    margin: 20px 0;
    position: relative;
}

.terminal::before {
    content: '$ portfolio --view';
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #53d6b6;
}
