/* Color System & Global Architecture */
:root {
    --bg-deep: #0a0b1e;
    --bg-card: #121432;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-teal: #14b8a6;
    --accent-cyan: #06b6d4;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Typography elements */
.section-tag {
    display: inline-block;
    color: var(--accent-teal);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.highlight {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, var(--accent-teal), var(--accent-cyan));
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
    color: var(--bg-deep)!important;
}

.btn-secondary {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    margin-left: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.2);
}

/* Navbar Layout */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 11, 30, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
}

.logo span { color: var(--accent-teal); }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-main); }

/* Hero Section style */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* About / Profile stacking effect */
.about-image-wrapper {
    position: relative;
    height: 450px;
}

.profile-img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-img-offset {
    position: absolute;
    bottom: -30px;
    right: 10px;
    width: 50%;
    height: 60%;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--bg-deep);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.skills-tag-container {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Experience Timeline layout */
.timeline {
    margin-top: 48px;
    position: relative;
    border-left: 2px solid var(--bg-card);
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 40px;
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-teal);
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-body h3 { font-size: 1.35rem; }
.timeline-body h4 { color: var(--text-muted); font-weight: 400; margin-bottom: 12px;}

/* Interactive Portfolio Cards */
.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.project-media-showcase {
    position: relative;
    background-color: #050611;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-project-img {
    max-height: 320px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.gif-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}

.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: var(--accent-teal);
}

.project-info {
    padding: 24px;
}

.project-category {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Footer Section formatting */
.footer {
    background-color: #050611;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contact-email {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 24px 0;
    color: var(--text-main);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-teal); }

@media (max-width: 768px) {
    .grid-2, .project-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

.main-project-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* behaves like a hero image */
    border-radius: 8px; /* optional: matches your card style */
}
.project-card {
    overflow: hidden;
}

.main-project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-spacer {
    display: block;
    height: 15px;
}