/* Main Styles */

:root {
    /*color palette */
    --bg-color: #333333;       /* Dark gray background (or choose another color) */
    --primary: #f08f75;        /* Coral/salmon as primary color */
    --secondary: #d67d65;      /* Slightly darker shade of coral */
    --accent: #b9f075;         /* Lime green as accent color */
    --text: #ffffff;           /* Keep white text */
    --dark: #222222;           /* Dark background (or choose another color) */
    --medium: #555555;         /* Medium shade (or choose another color) */
    --light-accent: #cff58c;   /* Lighter shade of the lime green */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(15, 15, 27, 0.94), rgba(15, 15, 27, 0.94)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="1" fill="%23ffffff22"/></svg>');
    background-size: 20px 20px;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--secondary);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary); /* Thinner border */
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Navigation */
.navbar {
    background-color: var(--dark);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary); /* Thinner border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    animation: subtle-pulse 3s infinite ease-in-out;
}

.logo::before {
    content: '>';
    margin-right: 0.5rem;
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* Thinner border */
    bottom: -3px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px; /* Thinner lines */
    background-color: var(--text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Social Media Icons in Navigation */
.nav-social {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.nav-social a {
    color: var(--text);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive adjustments for the nav with social icons */
@media screen and (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .nav-social {
        position: absolute;
        right: 50px; /* Space for burger menu */
        margin-right: 0;
    }
    
    .nav-social a {
        font-size: 1.1rem;
        margin-left: 0.8rem;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .nav-social {
        display: none; /* Hide on very small screens or show in expanded mobile menu */
    }
    
    /* Optional: Add social icons to the mobile menu when expanded */
    .nav-links.active + .nav-social {
        display: flex;
        position: static;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-links.active + .nav-social a {
        margin: 0 1rem;
    }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Adjust main container to account for removed hero */
main.container {
    margin-top: 100px; /* Provides space below the navbar */
}

section {
    margin-bottom: 4rem;
}

/* Remove hero section styles */
.hero,
.hero-pixel,
.hero::before,
.hero::after {
    display: none;
}

/* About Section - Simplified photo border */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    position: relative;
    border: 1px solid var(--primary); /* Thin, simple border */
    padding: 0.25rem;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); /* Lighter shadow */
}

/* Remove the extra border */
.about-image::before {
    display: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.pixel-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--text);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    position: relative;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--dark); /* Thinner shadow */
    transform: translateZ(0);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 10;
}

.pixel-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--dark); /* Thinner shadow on hover */
}

.pixel-btn:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 var(--dark);
}

.pixel-btn:after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
    z-index: -1;
}

/* Project Cards - Thinner borders */
.featured-project-card {
    background-color: var(--dark);
    border: 1px solid var(--primary); /* Thinner border */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card {
    background-color: var(--dark);
    border: 1px solid var(--primary); /* Thinner border */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark);
    padding: 2rem;
    border: 1px solid var(--primary); /* Thinner border */
    position: relative;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    text-align: center;
}

/* Remove the corner squares as requested */
.contact-section::before,
.contact-section::after {
    display: none;
}

/* Contact info items */
.contact-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

/* Common styling for all items in the row */
.contact-item.vertical,
.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem;
    min-width: 150px;
}

.contact-item.vertical i,
.social-link-item i {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item.vertical i {
    color: var(--accent);
}

.contact-item.vertical p {
    font-size: 0.9rem;
    word-break: break-word;
    max-width: 180px;
}

.social-link-item {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link-item:hover {
    color: var(--accent);
    transform: translateY(-5px) scale(1.05);
}

.social-link-item:hover i {
    transform: scale(1.1);
}

.social-link-item:hover .social-label {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--dark);
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

/* Changed to a solid color as requested */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px; /* Thinner border */
    background: var(--primary); /* Single color */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .burger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--primary); /* Thinner border */
        transform: translateY(-150%);
        transition: transform 0.5s ease;
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    /* Adjust main container for mobile */
    main.container {
        margin-top: 80px;
    }
}

/* Skill buttons */
.skill-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.skill-btn {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 0;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2); /* Thinner shadow */
    flex: 1;
    margin: 0 0.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.skill-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Lighter shadow */
    background-color: var(--accent);
}

.skill-btn.active {
    background-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* Lighter shadow */
}

.skill-description-container {
    background-color: var(--dark);
    border: 1px solid var(--primary); /* Thinner border */
    padding: 0;
    border-radius: 4px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    margin: 0 0 2rem 0;
    width: 100%;
}

.skill-description-container.active {
    opacity: 1;
    max-height: 150px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Lighter shadow */
}

.skill-description {
    display: none;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

.skill-description.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Modal Adjustments for thinner borders */
.modal-content {
    border: 1px solid var(--primary); /* Thinner border */
    box-shadow: 5px 5px 0 var(--dark); /* Lighter shadow */
}

.gallery-item {
    border: 1px solid var(--secondary); /* Thinner border */
}

.detail-item {
    border: 1px solid var(--dark); /* Add subtle border */
}

/* Animations */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(0) translateX(10px);
    }
    75% {
        transform: translateY(10px) translateX(5px);
    }
}

@keyframes glitch {
    0%, 80%, 100% {
        transform: rotate(-2deg) skew(0);
        text-shadow: 2px 2px 0px var(--primary), 3px 3px 0px var(--dark); /* Lighter shadow */
    }
    85% {
        transform: rotate(-2deg) skew(20deg);
        text-shadow: -2px 0px 0px var(--primary), 2px 0px 0px var(--accent);
    }
    90% {
        transform: rotate(-2deg) skew(-20deg);
        text-shadow: 2px 0px 0px var(--secondary), -2px 0px 0px var(--primary);
    }
    95% {
        transform: rotate(-2deg) skew(0);
        text-shadow: 2px 2px 0px var(--primary), 3px 3px 0px var(--dark);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    20%, 100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes subtle-pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

/* Project tags styles */
.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: var(--dark);
    color: var(--text);
    border: 1px solid var(--primary);
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 4px;
}

.tag i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.tag:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.tag-text {
    display: inline-block;
}

/* ===== VIDEO MODAL STYLES - UPDATED ===== */

/* Video styling for modal */
.video-item {
    margin-bottom: 30px;
}

.video-item h4 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2em;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.video-container {
    position: relative;
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    /* Removed hover effects */
}

.video-container video {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    background: var(--dark);
    border-radius: 8px;
    /* Removed all animations and hover effects */
}

.video-error {
    background-color: #ff4444;
    color: var(--text);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.video-debug {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--medium);
    margin-top: 8px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    word-break: break-all;
    border: 1px solid var(--dark);
}

/* Project Videos Container */
.project-videos {
    max-width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

/* Media Tabs Styling */
.project-media-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 0.5rem;
}

.media-tab {
    background-color: var(--dark);
    color: var(--text);
    border: 1px solid var(--medium);
    padding: 0.75rem 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
}

.media-tab:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.media-tab.active {
    background-color: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Media Content */
.media-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in;
}

/* Responsive video handling */
@media (max-width: 768px) {
    .video-container video {
        max-width: 100%;
    }
    
    .video-item h4 {
        font-size: 1em;
    }
    
    .project-media-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .media-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .video-debug {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .video-item {
        margin-bottom: 20px;
    }
    
    .video-container {
        margin: 0;
    }
    
    .project-videos {
        padding: 0.5rem 0;
    }
}

/* Enhanced video controls styling */
.video-container video::-webkit-media-controls-panel {
    background-color: var(--dark);
}

.video-container video::-webkit-media-controls-play-button,
.video-container video::-webkit-media-controls-mute-button,
.video-container video::-webkit-media-controls-fullscreen-button {
    background-color: var(--primary);
    border-radius: 2px;
}

.video-container video::-webkit-media-controls-timeline {
    background-color: var(--medium);
    border-radius: 2px;
}

.video-container video::-webkit-media-controls-current-time-display,
.video-container video::-webkit-media-controls-time-remaining-display {
    color: var(--text);
    font-family: 'Roboto', sans-serif;
}

/* Ensure videos respect the modal boundaries */
.modal-body .project-videos {
    max-width: 100%;
    overflow-x: hidden;
}

.modal-body .video-container {
    max-width: 100%;
}

.modal-body .video-container video {
    max-width: 100%;
    height: auto;
}

/* Simple video hover fix */
.video-container video:hover {
    transform: none;
    filter: none;
}