/* dev-portfolio.css */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #00ff88;
    --bg-dark: #020c1b;
    --card-bg: rgba(17, 34, 64, 0.4);
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --accent: #64ffda;
}

body.dev-mode {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Liquid Background */
.liquid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    animation: liquid-move 20s infinite alternate;
}

.liquid-blob:nth-child(2) {
    width: 800px;
    height: 800px;
    background: rgba(10, 46, 93, 0.2);
    right: -200px;
    top: -200px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.liquid-blob:nth-child(3) {
    width: 500px;
    height: 500px;
    background: rgba(100, 255, 218, 0.1);
    left: -100px;
    bottom: -100px;
    animation-duration: 25s;
}

@keyframes liquid-move {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(10%, 15%) scale(1.1) rotate(120deg); }
    66% { transform: translate(-10%, 10%) scale(0.9) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

.code-font {
    font-family: 'Fira Code', monospace;
}

/* Header & Nav */
header.dev-header {
    background: rgba(2, 12, 27, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dev-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
}

.dev-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
}

.dev-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.dev-nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.dev-hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Changed from flex-start to center */
    text-align: center; /* Ensure text is centered */
    padding: 0 10%;
}

.dev-hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0;
    color: var(--accent);
}

.dev-hero h2 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: var(--text-dim);
    margin-top: 10px;
}

.dev-hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-top: 25px;
}

/* Breathtaking Project Cards */
.projects-section {
    padding: 100px 5%;
    text-align: center;
}

.projects-section h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.projects-section.reveal h2 {
    opacity: 1;
    transform: translateY(0);
}

.dev-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    text-align: left;
}

.dev-project-card {
    background: rgba(17, 34, 64, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    opacity: 0;
    transform: translateY(40px);
}

.dev-project-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.dev-project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(100, 255, 218, 0.1);
    background: rgba(17, 34, 64, 0.6);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(3);
    background: rgba(100, 255, 218, 0.1);
    border-width: 1px;
}

/* Grainy Noise Overlay for Premium Glass */
body.dev-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.dev-project-card > div:first-child {
    margin-bottom: 30px;
}

.project-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.badge {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.project-link {
    color: var(--text-main);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.visit-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s;
    background: transparent;
}

.visit-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 100px 5%;
    text-align: center;
}

.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.skill-item:hover {
    transform: translateY(-12px) scale(1.1);
    color: var(--accent);
}

.skill-item i {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020c1b;
}

::-webkit-scrollbar-thumb {
    background: #112240;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .dev-nav ul {
        display: none;
    }
    .dev-hero {
        padding: 0 10%;
    }
}
