/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #f8f8f8;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.9)
    );
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #ffffff;
    z-index: 2;
    padding: 2rem;
    font-family: 'Courier New', monospace;
}

.hero-border {
    border: 4px solid #ffffff;
    padding: 4rem 3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    max-width: 900px;
}

.hero-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.vintage-frame {
    border: 3px solid #ffffff;
    padding: 1.5rem 2rem;
    margin: 2.5rem auto;
    background: transparent;
    max-width: 500px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Hero Navigation */
.hero-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.hero-nav-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 3px 3px 0px rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.hero-nav-button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
}

.explore-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.explore-button:hover {
    background: #cccccc;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px #000000;
    margin-top: 2rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000000;
    background: #000000;
    color: #ffffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: #ffffff;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #ffffff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Panel */
.about-panel {
    padding: 4rem 0;
    background: #ffffff;
    color: #000000;
}

.about-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #000000;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    text-align: left;
}

.profile-section-full {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.profile-text {
    flex: 2;
}

.profile-text p {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.profile-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-large {
    border: 4px solid #000000;
    padding: 1rem;
    background: #ffffff;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-large img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    display: block !important;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    max-height: 100%;
}

.profile-image-large img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: grayscale(80%) contrast(1.3) brightness(1.1);
}

.photo-caption {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #000000;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.nav-button {
    display: inline-block;
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0px #333333;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #333333;
    background: #333333;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Courier New', monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.vintage-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.vintage-divider::before,
.vintage-divider::after {
    content: '';
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #000000 0px,
        #000000 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 0 1rem;
}

.vintage-divider span {
    color: #000000;
    font-size: 1.5rem;
    padding: 0 1rem;
    font-family: 'Courier New', monospace;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #ffffff;
    border-top: 3px solid #000000;
    border-bottom: 3px solid #000000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.captain-bio {
    display: block;
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.captain-bio .bio-lead {
    font-size: 1.3rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.captain-bio p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #333333;
    font-family: 'Courier New', monospace;
}

.about-text .lead {
    font-size: 1.3rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #333333;
    font-family: 'Courier New', monospace;
}

.vintage-photo-frame {
    position: relative;
    background: #ffffff;
    padding: 20px;
    box-shadow: 
        0 0 0 3px #000000,
        0 0 0 6px #ffffff,
        0 0 0 9px #000000;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.vintage-photo-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.vintage-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.2);
}

.photo-caption {
    text-align: center;
    color: #000000;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Adventures Section */
.adventures,
.experience {
    padding: 4rem 0;
    background: #000000;
    color: #ffffff;
}

.adventures .section-header h2,
.experience .section-header h2 {
    color: #ffffff;
}

.adventures .vintage-divider::before,
.adventures .vintage-divider::after,
.experience .vintage-divider::before,
.experience .vintage-divider::after {
    background: repeating-linear-gradient(
        90deg,
        #ffffff 0px,
        #ffffff 10px,
        transparent 10px,
        transparent 20px
    );
}

.adventures .vintage-divider span,
.experience .vintage-divider span {
    color: #ffffff;
}

.experience-compact {
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline Styles */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #000000;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 20px;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px #333333;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #333333;
}

.timeline-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    border-bottom: 2px solid #000000;
    user-select: none;
}

.timeline-header:hover {
    background: #f0f0f0;
}

.timeline-title h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #000000;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.timeline-title .company {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-period {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-details {
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-item[data-collapsed="true"] .timeline-details {
    max-height: 0;
    padding: 0 2rem;
    opacity: 0;
}

.timeline-item[data-collapsed="false"] .timeline-details {
    max-height: 1000px;
    opacity: 1;
}

.timeline-details p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333333;
    font-family: 'Courier New', monospace;
}

.experience-item {
    background: #ffffff;
    color: #000000;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px #333333;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #333333;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.company-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.company {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.period {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #000000;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border: 2px solid #000000;
    text-transform: uppercase;
}

.experience-description p {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333333;
}

.experience-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.achievement {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #000000;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border: 1px solid #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery,
.projects {
    padding: 4rem 0;
    background: #f8f8f8;
    border-top: 3px solid #000000;
    border-bottom: 3px solid #000000;
}

/* Projects Grid Styles */
.projects-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px #333333;
    transition: all 0.3s ease;
    overflow: hidden;
    height: fit-content;
}

.project-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #333333;
}

.project-header {
    padding: 2rem;
    cursor: pointer;
    background: #f8f8f8;
    border-bottom: 2px solid #000000;
    user-select: none;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.project-header:hover {
    background: #f0f0f0;
}

/* Main Treasure Chest Design */
.treasure-chest-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 120px;
    height: 120px;
}

.chest-closed,
.chest-open {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.chest-closed {
    opacity: 1;
    z-index: 2;
}

.chest-open {
    opacity: 0;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.8);
}

.treasure-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

/* Project Title Overlay */
.project-title-overlay {
    margin: 1rem 0 0.5rem 0;
    z-index: 3;
    position: relative;
}

.project-title-overlay h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 1.3;
}

/* Project Preview Info */
.project-preview-info {
    text-align: center;
    z-index: 3;
    position: relative;
}

.project-description {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-style: italic;
    max-width: 250px;
}

.project-tech-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Treasure chest opening animation states */
.project-card[data-collapsed="false"] .chest-closed {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotateY(-20deg);
}

.project-card[data-collapsed="false"] .chest-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.4)) saturate(1.3) brightness(1.2);
}

.project-card[data-collapsed="false"] .treasure-glow {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.3);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.2) 40%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
    animation: treasureGlowPulse 2s ease-in-out infinite alternate;
}

@keyframes treasureGlowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.9;
    }
}

/* Treasure sparkle effects for opened chests */
.project-card[data-collapsed="false"] .treasure-chest-main::before,
.project-card[data-collapsed="false"] .treasure-chest-main::after {
    content: "✨";
    position: absolute;
    font-size: 20px;
    color: #FFD700;
    animation: sparkleFloat 2s ease-in-out infinite;
    z-index: 4;
}

.project-card[data-collapsed="false"] .treasure-chest-main::before {
    top: -15px;
    right: -15px;
    animation-delay: 0.3s;
}

.project-card[data-collapsed="false"] .treasure-chest-main::after {
    bottom: -15px;
    left: -15px;
    animation-delay: 1s;
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg) translateY(0px);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg) translateY(-10px);
    }
}

/* Enhanced header styling when opened */
.project-card[data-collapsed="false"] .project-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, #f8f8f8 50%, rgba(255, 215, 0, 0.05) 100%);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1);
}

/* Hover effects */
.treasure-chest-main:hover .chest-closed {
    transform: translate(-50%, -50%) scale(1.05) rotateY(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.treasure-chest-main:hover .treasure-glow {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Project details treasure reveal effect */
.project-card[data-collapsed="false"] .project-details {
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.03) 0%, transparent 30%);
    position: relative;
}

.project-card[data-collapsed="false"] .project-details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: treasureSweep 1s ease-out;
}

@keyframes treasureSweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.project-header h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #000000;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 1.3;
}

.project-description {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-style: italic;
}

.project-tech-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-details {
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card[data-collapsed="true"] .project-details {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
}

.project-card[data-collapsed="false"] .project-details {
    max-height: 1000px;
    opacity: 1;
}

.project-tech {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-details p {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1rem;
    flex: 1;
}

/* Hidden projects initially */
.hidden-project {
    display: none;
}

.projects-expanded .hidden-project {
    display: block;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 2rem;
}

.show-more-btn {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px #333333;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.show-more-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #333333;
    background: #f0f0f0;
}

.show-more-btn:active {
    transform: translate(0px, 0px);
    box-shadow: 3px 3px 0px #333333;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #000000;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.project-link:hover {
    background: #000000;
    color: #ffffff;
}

/* Skills Section */
.skills {
    padding: 4rem 0;
    background: #000000;
    color: #ffffff;
}

.skills .section-header h2 {
    color: #ffffff;
}

.skills .vintage-divider::before,
.skills .vintage-divider::after {
    background: repeating-linear-gradient(
        90deg,
        #ffffff 0px,
        #ffffff 10px,
        transparent 10px,
        transparent 20px
    );
}

.skills .vintage-divider span {
    color: #ffffff;
}

.skills-compact {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #000000;
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    border: 3px solid #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0px #333333;
}

.skill-tag:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #333333;
    background: #f0f0f0;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #000000;
    color: #ffffff;
    text-align: center;
}

.contact .section-header h2 {
    color: #ffffff;
}

.contact .vintage-divider::before,
.contact .vintage-divider::after {
    background: repeating-linear-gradient(
        90deg,
        #ffffff 0px,
        #ffffff 10px,
        transparent 10px,
        transparent 20px
    );
}

.contact .vintage-divider span {
    color: #ffffff;
}

.contact-intro {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #cccccc;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.contact-icon {
    font-size: 1.5rem;
    color: #ffffff;
    filter: grayscale(100%);
}

/* Message Bottle Styling */
.bottle-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    position: relative;
}

.message-bottle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.bottle-image {
    width: 380px;
    height: auto;
    filter: grayscale(100%) contrast(1.2);
    z-index: 1;
}

.message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    z-index: 2;
}

.message-scroll {
    background: linear-gradient(45deg, #f4f1e8, #e8dcc0);
    padding: 20px;
    border: 2px solid #8B4513;
    border-radius: 6px;
    width: 130px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 0 8px rgba(139, 69, 19, 0.1);
    transform: rotate(1deg);
    position: relative;
    opacity: 0.95;
}

.message-scroll::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(circle at 30% 30%, rgba(139, 69, 19, 0.15), transparent);
    border-radius: 6px;
    z-index: -1;
}

.message-scroll .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.message-scroll .contact-item {
    font-size: 0.75rem;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-scroll .contact-item a {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-scroll .contact-item a:hover {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.3);
    transform: scale(1.1);
}

.message-scroll .contact-icon {
    color: #8B4513;
    font-size: 1rem;
}

.pirate-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.skull {
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 1.5rem;
    color: #8B4513;
    animation: skull-sway 4s ease-in-out infinite;
}

.compass {
    position: absolute;
    bottom: -25px;
    right: -15px;
    font-size: 1.3rem;
    color: #8B4513;
    animation: compass-spin 8s linear infinite;
}

@keyframes skull-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes compass-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-elements {
    position: absolute;
    bottom: -50px;
    width: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    color: #4A90E2;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    opacity: 0.6;
    animation: wave-float 4s ease-in-out infinite;
}

.wave1 {
    left: 10%;
    animation-delay: 0s;
}

.wave2 {
    left: 50%;
    animation-delay: 1s;
}

.wave3 {
    left: 80%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes wave-float {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-5px); opacity: 0.8; }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #cccccc;
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid #ffffff;
    font-family: 'Courier New', monospace;
}

.footer-tagline {
    color: #666666;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-navigation {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-nav-button {
        width: 200px;
        text-align: center;
    }

    .profile-section-full {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-text {
        order: 2;
    }

    .profile-image-container {
        order: 1;
    }

    .profile-image-large img {
        width: 300px;
        height: 225px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }
}

@media (max-width: 480px) {
    .vintage-frame {
        padding: 0.5rem 1rem;
        margin: 1rem 0;
    }
    
    .nav-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }

    .skill-row {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-content {
        border-width: 2px;
    }

    .profile-section-full {
        gap: 1.5rem;
    }

    .navigation-buttons {
        gap: 0.5rem;
    }

    .project-details {
        padding: 1rem;
    }

    .profile-image-large img {
        width: 150px;
        height: 150px;
    }

    .profile-info-detailed h2 {
        font-size: 2rem;
    }

    .about-panel {
        padding: 3rem 0;
    }
}
