@import url("https://fonts.googleapis.com/css?family=Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900");

html {
    scroll-behavior: smooth;
}

body {
    background-image: url("img/overlay.png"), linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url("img/submarine.webp");
    /* 1. OVERLAY.png 2. LINEAR-GRADIENT 3. SUBMARINE.webp */
    background-attachment: fixed, fixed, fixed;
    background-size: auto, cover, cover;
    background-repeat: repeat, repeat, no-repeat;
}

#scrollText {
    width: 100vw; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    opacity: 0;
    max-width: 100%;
    transition: all 0.6s ease;
    /*top bottom left right */
    margin: -7rem 0 0 0;
}

#scrollText p {
    border-style: solid;
    border-color: #ffffff #ffffff rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.5);
    border-width: 6px !important;
    text-shadow: lightgrey 0px 0px 5px;
    background-color: rgba(255, 255, 255, 0.25);
    max-width: 500px;
    padding: 10px;
    text-transform: uppercase;
    color: white;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1;
    margin: 16px;
}



header img {
    max-width: 300px;
    margin: 5em 0 0 0;
    box-shadow: #333 0px 0px 10px;
}

/* Animate header */
header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
    z-index: 10;
    position: relative;
    color: white;
    text-shadow: lightgrey 0px 0px 5px;
    text-transform: uppercase;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
}

header h1 {
    font-weight: 900 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.075em !important;
    font-size: 5rem !important;
}

header h2 {
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.075em !important;
    font-size: 2.5rem !important;

}

footer a {
    color: rgba(255, 255, 255, 0.500);
    text-decoration: none;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
}

footer a:hover {
    transition: color 0.3s ease-in;
    color: rebeccapurple;
}

/* Full gray loading screen */
#overlayOpening {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #212931;
    z-index: 9999;
    transition: opacity .75s ease-in;
}

#backgroundOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #212931;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1.0s ease-in 0.65s;
}

/* Hide full gray screen after load */
body.loaded #overlayOpening {
    opacity: 0;
    pointer-events: none;
}


body.loaded header {
    opacity: 1;
    transform: translateY(0);
}

/* Fade out the dark background layer */
body.loaded #backgroundOverlay {
    opacity: 0;
}


/* PROJECTS SEGMENT*/
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    text-shadow: lightgrey 0px 0px 3px;
}

.section-title::after {
    content: "";
    display: block;
    margin: 0.5rem auto 0 auto;
    width: 60px;
    height: 4px;
    background: #012456;
    border-radius: 2px;
    opacity: 0.85;
}

/* .skills-section {
            padding: 80px 0;
        }

        .skill-card {
            background: white;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            height: 100%;
        }

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

        .skill-icon {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 20px;
        } */



.projects-section {
    padding: 80px 0;
    background: #0080ff;
}

.project-card {
    background: rgb(240, 241, 241);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.project-img {
    width: 100%;
    height: 234px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}


.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-tech {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}








.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    /* Initially hidden */
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 999;
}

/* Active state (fade in) */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* POWERSHELL */
.power-container {
    width: 100%;
    height: 100%;
    padding: 1rem 1rem 2.5rem 1rem;
    font-family: "IBM Plex Mono", "Consolas", "Monaco", monospace;
}

.powershell-header {
    background-color: #1e1e1e;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border: 1px solid #333;
    border-bottom: none;
}

.powershell-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.powershell-title i {
    font-size: 1.3em;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-control-btn {
    width: 28px;
    height: 26px;
    border: none;
    background: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.window-control-btn:hover {
    background-color: #333;
}

.window-control-btn.close:hover {
    background-color: #e74c3c;
}

.powershell-body {
    background-color: #012456;
    color: #ffffff;
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.8;
    font-family: "IBM Plex Mono", "Consolas", "Monaco", monospace;
    font-weight: 300;
    border: 1px solid #333;
    border-top: none;
    min-height: 400px;
    box-shadow: #333 0px 0px 10px;
}

/* Command Line Elements */
.command-line {
    margin-bottom: 8px;
}

.prompt {
    color: #ffffff;
    margin-right: 8px;
    font-weight: 500;
}

.command {
    color: #ffff00;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.command:hover {
    color: #ffffff;
    text-decoration: underline;
}

.output {
    color: #00ff00;
}

.separator {
    color: #888;
    margin: 10px 0;
}

/* User Info Styling */
.info-line {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.info-label {
    color: #87ceeb;
    min-width: 120px;
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    flex: 1;
}

.info-value a {
    color: #ffff00;
    text-decoration: none;
}

.info-value a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Cursor Animation */
.cursor {
    font-weight: bolder;
    text-decoration: underline;
    animation-name: blink;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-delay: 0s;
    animation-timing-function: steps(1, end);
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Skills and Technologies Styling */
.skills-list {
    color: #90ee90;
    color: #ffffff;
}

.tech-list {
    /* color: #ffa500; */
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .power-container {
        padding: 0.5rem;
    }

    .powershell-body {
        font-size: 0.7em;
        padding: 15px;
    }

    .info-line {
        flex-direction: column;
    }

    .info-label {
        min-width: auto;
        margin-bottom: 2px;
    }
}