@keyframes breathe {
    0%   { background-size: 45% auto; }
    50%  { background-size: 35% auto; }
    100% { background-size: 45% auto; }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
    display: flex;
    background: #c0b38f;
    min-height: 100vh;
    padding: 20px;
    background-image: url("../assets/newyork.svg");
    background-size: contain;
    background-position: center;
    animation: breathe 10s ease-in-out infinite;

}

header {
    position: sticky;
    top: 0;
    background: #444;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

h1, h2, h4 {
    font-size: 16px;
    letter-spacing: 3px;
    color: #c0b38f;
    text-align: center;
    margin: 28px 0 14px;
    border-bottom: 1px solid #555;
    padding-bottom: 6px;
    font-weight: bold;
}

h3 {
    font-size: 16px;
    letter-spacing: 3px;
    color: #c0b38f;
    text-align: center;
    margin: 48px 0 46px;
    border-bottom: 1px solid #555;
    padding-bottom: 16px;
    font-weight: bold;
}
h5 {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 8px 0 6px;
    color: #333;
    text-decoration: none;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

section {
    padding: 0;
    background: transparent;
    margin: 0;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* ── Layout ── */
.file-container {
    display: flex;
    align-items: flex-start;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.file-content {
    background: #3d3d3d;
    border: 3px solid #333;
    box-shadow: 0 0 60px rgba(0,0,0,10);
    padding: 36px 30px;
    flex: 1;
    min-height: 770px;
    border-radius: 0 6px 6px 0;
}

/* ── Side tabs ── */
.side-tabs {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 40px;
    z-index: 10;
    position: relative;
}

.tab {
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 14px 8px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 2px;
    border: none;
    outline: none;
    position: relative;
    right: -3px;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.25);
    display: flex;
}
.tab:hover {
    opacity: 0.75;
    transform: translateX(-3px);
    box-shadow: -6px 3px 18px rgba(0,0,0,0.3);
}
.tab.active {
    opacity: 1;
    right: -5px;
}

/* Tab colors */
.tab-red    { background: #e74c3c; }
.tab-green  { background: #2ecc71; }
.tab-blue   { background: #3498db; }
.tab-yellow { background: #f1c40f; }

/* ── Flip container & sections ── */
.flip-container {
    perspective: 1200px;
    position: relative;
    min-height: 520px;
}

.tab-section {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    pointer-events: none;
    transform: rotateY(90deg) scale(0.95);
    transform-origin: left center;
    transition: transform 0.45s ease, opacity 0.35s ease;
    backface-visibility: hidden;
    background: transparent;
}

.tab-section.on {
    opacity: 1;
    pointer-events: auto;
    transform: rotateY(0deg) scale(1);
    position: relative;
}

.section-label {
    font-size: 16px;
    letter-spacing: 4px;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* ── About ── */
.profile {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.box-profileimg img {
    margin-top: 150px;
    border-radius: 50%;
    width: 260px;
    height: 260px;
    justify-content: center;
    align-items: center;
    display: flex;
    object-fit: cover;
    border: 4px solid #c0b38f;
}

.box-about {
    margin-top: 150px;
    justify-content: center;
    align-items: center;
    display: flex;
    background: #f9f5ee;
    max-width: 380px;
    padding: 20px 22px;
    border-left: 4px solid #c0b38f;
    border-radius: 0 6px 6px 0;
    font-size: 16px;
    line-height: 1.75;
    color: #222;
    font-weight: 500;
    font-style: italic;
}

/* ── Projects ── */
.proj-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 12px 0;
}

.box-desc {
    background: #f9f5ee;
    width: 260px;
    flex: 1 1 240px;
    max-width: 300px;
    padding: 16px;
    border-radius: 6px;
    border-top: 4px solid #c0b38f;
    font-size: 16px;
    line-height: 1.65;
    color: #222;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.box-desc:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 10);
}

.box-desc img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    background: #eee;
    border-radius: 4px;
    padding: 6px;
}

.box-desc p {
    margin-top: 8px;
}

.box-desc a {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
}

.box-desc a:hover {
    text-decoration: underline;
}

/* ── Skills ── */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
}

.box-skill {
    background: #f9f5ee;
    border-radius: 6px;
    border-bottom: 3px solid #c0b38f;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: transform 0.18s, box-shadow 0.18s;
    text-align: center;
    padding: 8px 4px;
}

.box-skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 50);
}

.box-skill img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* ── Contact ── */
.contact-icons {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    flex-wrap: wrap;
}

.contact-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #c0b38f;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: transform 0.18s, opacity 0.18s;
}

.contact-icons a:hover {
    transform: translateY(-4px);
    opacity: 0.8;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 50);
}

.contact-icons img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f9f5ee;
    border-radius: 50%;
    padding: 10px;
    border: 2px solid #c0b38f;
}

.profile, .skills {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}