:root {
    --black: #000000;
    --dark-grey: #121212;
    --netflix-red: #E50914;
    --text-white: #FFFFFF;
    --text-dim: #A3A3A3;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --glass-bg: rgba(0, 0, 0, 0.9);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 8%;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    z-index: 2001;
}

.logo span { color: var(--netflix-red); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--netflix-red);
}

.contact-btn {
    background: var(--netflix-red);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 800;
}

.contact-btn.active::after {
    display: none;
}

.nav-link.active:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--netflix-red);
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    margin-left: auto;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 4rem;
}

.hero-content { flex: 1.2; }
.badge {
    display: inline-block;
    color: var(--netflix-red);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border: 2px solid var(--dark-grey);
    padding: 0.2rem 0.8rem;
    border-radius: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
}

.red-text { color: var(--netflix-red); }

.hero-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.hero-socials a {
  font-size: 1.5rem;
  color: #fff; 
  transition: all 0.3s ease;
  opacity: 0.8;
}

.hero-socials a:hover {
  color: #ff4d4d; 
  transform: translateY(-5px);
  opacity: 1;
}

/* Profile Image Box */
.hero-image-box { flex: 0.8; display: flex; justify-content: center; }
.profile-card-container { position: relative; animation: float 6s ease-in-out infinite; }
.main-profile-wrapper {
    width: 380px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--dark-grey);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-profile-wrapper::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, var(--netflix-red), transparent 30%);
    animation: rotate-border 4s linear infinite;
}

.main-profile-wrapper::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--black);
    border-radius: 18px;
}

.main-profile-wrapper img {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    border-radius: 16px;
    z-index: 2;
}

.profile-card-container {
  perspective: 1000px;
}

.main-profile-wrapper {
  transition: transform 0.1s ease-out; 
  transform-style: preserve-3d;
  will-change: transform;
}

.main-profile-wrapper img {
  transform: translateZ(20px); 
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    outline: none;
    text-decoration: none;
    transition: var(--transition);
}

.btn-red { background: var(--netflix-red); color: white; }
.btn-outline { margin-left: 1rem; color: white; border: 2px solid var(--border); }
.btn-outline:hover { background: white; color: black; }

/* Sections & Bento */
.section { padding: 8rem 10% 4rem; }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    border-left: 5px solid var(--netflix-red);
    padding-left: 1.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--dark-grey);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.bento-item:hover { border-color: var(--netflix-red); transform: translateY(-8px); }
.item-large { grid-column: span 3; }
.item-wide { grid-column: span 2; }
.card-label { color: var(--netflix-red); font-size: 0.75rem; font-weight: 800; margin-bottom: 1.2rem; display: block; }
.stack-icons { display: flex; gap: 2rem; font-size: 2.5rem; }
.stack-icons i { color: var(--text-white); transition: 0.3s; }
.stack-icons i:hover { color: var(--netflix-red); }

.dot {
    height: 10px;
    width: 10px;
    background-color: #00df82; 
    display: inline-block;
    margin-right: 12px;
    position: relative;
    vertical-align: middle;
    animation: pulse 2s infinite;
    border-radius: 50%;
}

/* The Pulse Animation */
.pulse {
    box-shadow: 0 0 0 rgba(0, 223, 130, 0.4);
    animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 223, 130, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 223, 130, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 223, 130, 0);
    }
}

.status {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--dark-grey);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.p-img img { width: 100%; height: 250px; object-fit: cover; }
.p-content { padding: 1rem; }
.p-links { display: flex; gap: 1.2rem; margin-top: 1.5rem; }
.p-links a { color: #fff; font-size: 1.4rem; transition: 0.3s; }
.p-links a:hover { color: var(--netflix-red); }

.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.view-more-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-white);
    transition: var(--transition);
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover {
    background: var(--text-white);
    color: var(--black);
    border-color: var(--text-white);
}

.view-more-btn:hover i {
    transform: translateX(8px); /
}

.contact-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--dark-grey);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.input-group { position: relative; margin-bottom: 2.5rem; }
.input-group input, .input-group textarea {
    width: 100%; padding: 1.2rem; background: #000; border: 1px solid var(--border);
    border-radius: 6px; color: white; transition: 0.3s;
}

.input-group textarea { height: 150px; }
.input-group label {
    position: absolute; left: 1rem; top: 1.2rem; color: var(--text-dim);
    transition: 0.3s; pointer-events: none;
}

.input-group input:focus ~ label, 
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, 
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.7rem; left: 0.8rem; font-size: 0.85rem; color: var(--netflix-red);
    background: var(--dark-grey); padding: 0 8px;
}

.footer { padding: 4rem; text-align: center; border-top: 1px solid var(--border); color: var(--text-dim); }

.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.btn-red:hover { background: var(--netflix-red); box-shadow: 4px 12px 20px rgba(229, 9, 20, 0.4); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes rotate-border { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 992px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0; 
    }

    .nav-link { font-size: 1.8rem; }

    .hero { flex-direction: column-reverse; text-align: justify; padding-top: 120px; }
    .main-profile-wrapper { width: 300px; height: 340px; }
    .bento-grid { grid-template-columns: 1fr; }
    .item-large, .item-wide { grid-column: span 1; }
    .input-row { grid-template-columns: 1fr; gap: 0; }
    .contact-box { padding: 2rem; }
    .hero-actions { flex-direction: column; gap: 1.5rem; text-align: center; }
    .btn-outline { margin-left: 0; }

    .view-more-container {
        margin-top: 2.5rem;
    }

    .hero-socials {
     justify-content: center;
    }
    
    .view-more-btn {
        width: 100%; 
        justify-content: center;
    }

    .section {
        padding: 6rem 5% 3rem; /* Reducing side padding for more screen real estate */
        text-align: center;    /* Centers the section title */
    }

    .section-title {
        border-left: none;
        border-bottom: 4px solid var(--netflix-red);
        padding-left: 0;
        display: inline-block; 
        margin-bottom: 2.5rem;
    }

    .bento-grid {
        display: flex;        
        flex-direction: column;
        align-items: center;  
        width: 100%;
        max-width: 500px;     
        margin: 0 auto;       
    }

    .bento-item {
        width: 100%;          
        padding: 2rem;        
        text-align: center;   
    }

    .stack-icons {
        justify-content: center; 
    }

    .status {
        justify-content: center; 
    }
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

