/* =========================================
   Variables & Devsinc Theme Profile
   ========================================= */
   :root {
    /* Colors */
    --bg-dark: #000000;          /* Deep base black */
    --bg-surface: #0a0a0a;       /* Slightly lighter for cards */
    --bg-border: #222222;        /* Dark gray borders */
    
    --primary-color: #16BBB2;    /* Devsinc Signature Teal */
    --primary-color-hover: #129b93;
    
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;   /* neutral-400 */
    --text-muted: #737373;       /* neutral-500 */

    /* Tech Brand Colors */
    --color-mongo: #47A248;
    --color-express: #ffffff;
    --color-react: #61DAFB;
    --color-node: #339933;
    --color-tailwind: #06B6D4;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    font-family: var(--font-primary);
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 800; /* Bolder geometric aesthetic */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.w-full { width: 100%; }

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 64px;
    height: 4px;
    background: var(--primary-color);
    margin-bottom: 3rem;
    border-radius: 2px;
}

.center-underline {
    margin: 1.5rem auto 3rem auto;
}

/* =========================================
   Buttons & Tags
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px; /* High pill shape */
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    min-height: 52px;
}

.btn-teal {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(22, 187, 178, 0.2);
}

.btn-teal:hover {
    background: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 187, 178, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--text-primary);
    color: #000;
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}
.btn-text:hover {
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    min-height: 40px;
}

/* =========================================
   Solid Modern Cards
   ========================================= */
.glass-card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    border-color: rgba(255,255,255,0.1);
}

.hover-glow:hover {
    transform: translateY(-4px);
}

/* =========================================
   Header & Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon {
    background: var(--primary-color);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.2rem;
    border-top-right-radius: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-teal-nav {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    min-height: auto;
}
.btn-teal-nav:hover {
    background: var(--primary-color);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Sticky Contact Tab */
.sticky-contact-tab {
    position: fixed;
    top: 50%;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%);
    border-radius: 8px 0 0 8px;
    z-index: 1000;
    box-shadow: -4px 0 15px rgba(22, 187, 178, 0.3);
    transition: var(--transition-fast);
}

.sticky-contact-tab:hover {
    background: var(--primary-color-hover);
    padding-right: 1.5rem;
}

/* =========================================
   Home Cinematic Hero Section
   ========================================= */
.cinematic-bg {
    position: relative;
    /* Unsplash background image of light trails/city night */
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2072') no-repeat center center / cover;
}

.cinematic-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dark overlay allowing text to pop */
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: auto;
    margin-top: auto;
    padding-top: 4rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    line-height: 1.05;
    text-transform: capitalize;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e5e5e5;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 700px;
}

/* Featured In Logo Strip */
.featured-in {
    margin-top: auto;
    padding-bottom: 2rem;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.featured-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.featured-logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.feat-item {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: serif; /* Gives that publication logo look */
}
.feat-item i { font-size: 1.8rem; }
.feat-item.mongodb-logo { font-family: sans-serif; }

/* =========================================
   About Section
   ========================================= */
.about-section {
    padding: 120px 0;
}

.about-content {
    max-width: 800px;
}

.about-text-box {
    padding: 3rem;
}

.about-lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.about-text-box p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-border);
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.badge i {
    color: var(--primary-color);
}

/* =========================================
   Skills Section
   ========================================= */
.skills-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-dark);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mongodb-color { color: var(--color-mongo); }
.express-color { color: var(--color-express); }
.react-color { color: var(--color-react); }
.node-color { color: var(--color-node); }
.tailwind-color { color: var(--color-tailwind); }

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   Projects Section
   ========================================= */
.projects-section {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 3rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    height: 220px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-screenshot {
    transform: scale(1.1); /* Cinematic zoom on hover */
}

.project-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tech span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.contact-subtitle {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 100%;
    margin: 0 auto;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-item > div {
    flex: 1;
    min-width: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.info-item a {
    color: var(--text-primary);
    font-size: clamp(0.95rem, 4.5vw, 1.25rem);
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}
.info-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-border);
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-btn:hover {
    color: var(--text-primary);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form {
    padding: 3rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    background: var(--bg-dark);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--bg-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-dark);
}

/* =========================================
   Animations & Responsive
   ========================================= */
.section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .contact-content { grid-template-columns: 1fr; gap: 3rem; }
    .sticky-contact-tab { display: none; } /* Hide on small screens */
}

/* Mobile */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .about-section, .skills-section, .projects-section, .contact-section { padding: 60px 0; }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px; 
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.5);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--bg-border);
        visibility: hidden;
    }
    
    .nav-links.active {
        transform: translateY(0);
        visibility: visible;
    }
    
    .nav-link { 
        font-size: 1.125rem; 
        padding: 0.75rem 0;
    }
    
    .hero-title { font-size: clamp(2rem, 10vw, 2.5rem); letter-spacing: -1px; word-wrap: break-word; }
    .hero-subtitle { font-size: 1.125rem; }
    .hero-content { padding-top: 2rem; max-width: 100%; overflow-wrap: break-word; }
    
    .feat-item { font-size: 1rem; }
    .featured-logos { gap: 1.5rem; justify-content: center; }
    .featured-in { padding-top: 2rem; }
    
    .about-text-box, .contact-form, .project-info, .skill-card { 
        padding: clamp(1rem, 5vw, 1.5rem); 
        width: 100%;
        max-width: 100%;
    }
}
