/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    --color-sand: #D4A574;        /* Main Color */
    --color-sand-light: #E6D5B8;  /* Light Color */
    --color-sand-dark: #8B7355;   /* Dark Color */
    --color-bg: #111;             /* Background */
    --navbar-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg);
    color: #eee;
    overflow-x: hidden;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--navbar-height);
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--color-sand-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.brand {
    color: var(--color-sand);
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a {
    color: #fff; text-decoration: none; font-size: 0.9rem; transition: color 0.3s;
}
.nav-links a:hover { color: var(--color-sand); }

/* =========================================
   HERO VIDEO
   ========================================= */
.hero-section {
    height: 60vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--navbar-height);
}

#sandVideo {
    position: absolute;
    top: 50%; 
    /* Centered shift to left without gray bar */
    left: 45%; 
    width: 110%; 
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute; z-index: 2;
    background: rgba(0,0,0,0.3);
    width: 100%; height: 100%;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

section { margin-bottom: 100px; scroll-margin-top: 100px; }

h2 {
    color: var(--color-sand);
    font-size: 2rem;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-sand);
    padding-left: 15px;
    margin-left: -20px; 
}

/* Card Base Style */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-sand-dark);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateX(5px); border-color: var(--color-sand); }

.card h3 { color: var(--color-sand-light); margin-bottom: 10px; font-size: 1.3rem; }
.card .subtitle { color: var(--color-sand); font-style: italic; font-size: 0.95rem; margin-bottom: 15px; display: block;}
.card p, .card li { color: #ccc; line-height: 1.6; }
.card ul { margin-left: 20px; margin-top: 10px; }

/* =========================================
   FILTERS
   ========================================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-sand);
    color: var(--color-sand);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-sand);
    color: #000;
}

/* =========================================
   PROJECT DETAILS
   ========================================= */
.card.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-sand-dark);
    transition: transform 0.5s;
}

.card.project-card:hover .project-img { transform: scale(1.05); }

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #aaa;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    padding-bottom: 15px;
}

.meta-item strong { color: var(--color-sand); }

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(212, 165, 116, 0.1);
    color: var(--color-sand-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--color-sand-dark);
}

/* Buttons */
.btn-github {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #24292e;
    color: var(--color-sand);
    border: 1px solid var(--color-sand-dark);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-github:hover { background: var(--color-sand); color: #000; }

.btn-cv {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--color-sand);
    color: var(--color-sand);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
}
.btn-cv:hover {
    background: var(--color-sand);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.4);
}

/* =========================================
   SKILL ORBS (Calm style, no wave)
   ========================================= */
.skills-subtitle {
    text-align: center; 
    color: var(--color-sand-light); 
    margin-bottom: 30px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.skill-wrapper { display: flex; flex-direction: column; align-items: center; width: 130px; }

.skill-orb {
    width: 110px; height: 110px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 165, 116, 0.3);
    position: relative; overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
    cursor: pointer; transition: transform 0.3s;
}
.skill-orb:hover { transform: scale(1.05); border-color: var(--color-sand); box-shadow: 0 0 20px rgba(212, 165, 116, 0.2); }

.sand-fill {
    position: absolute;
    left: 0; width: 100%; height: 100%;
    background: var(--color-sand);
    opacity: 0.9; 
    top: 100%; /* Empty by default */
    transition: top 0.8s ease-out; /* Smooth rise */
    border-radius: 0; /* Flat surface */
}

.percent {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 10; font-weight: bold; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0; transition: opacity 0.3s;
}
.skill-orb:hover .percent { opacity: 1; }
.skill-name { margin-top: 15px; color: var(--color-sand-light); font-weight: bold; text-align: center; }

.skill-orb::after {
    content: ''; position: absolute; top: 15%; left: 20%; width: 20px; height: 10px;
    border-radius: 50%; background: rgba(255,255,255,0.4); transform: rotate(-45deg);
    z-index: 15; pointer-events: none;
}

/* Contact Box */
.contact-box {
    border: 2px solid var(--color-sand);
    padding: 30px;
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
}