/* --- Core System Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-prime: #0a0a0c;      /* Absolute Deep Black-Slate */
    --bg-card: #121216;       /* Premium Card Container Grey */
    --accent: #00f0ff;        /* Neon Cyber Cyan */
    --accent-glow: rgba(0, 240, 255, 0.15);
    --text-main: #f3f4f6;     /* Off-White */
    --text-dim: #9ca3af;      /* Muted Grey */
    --border: #1f2937;        /* Subtle Border */
    --font: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-prime);
    color: var(--text-main);
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Animated Background Glow --- */
.bg-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: atmosphericPulse 12s infinite alternate ease-in-out;
}

@keyframes atmosphericPulse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, 15%) scale(1.2); }
}

/* --- Navigation Framework --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.navbar nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-left: 2rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
}

.navbar nav a:hover, .navbar nav a.active {
    color: var(--accent);
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.navbar nav a.active::after { width: 100%; }

/* --- Single Page Transitions --- */
.content-wrapper {
    margin-top: 80px;
    padding: 4rem 8%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.page-section {
    display: none;
    width: 100%;
}

.page-section.active {
    display: block;
}

/* --- Reusable Headers --- */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title .bar {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 0.5rem;
    box-shadow: 0 0 10px var(--accent);
}

/* --- Button Systems --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background-color: var(--text-main);
    color: var(--bg-prime);
    border: 1px solid var(--text-main);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    margin-left: 1rem;
}

.secondary-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* --- Home Layout --- */
.hero-content { max-width: 800px; }

.badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 1.5rem 0 2rem 0;
    width: 100%;
    max-width: 900px;
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* --- About Layout --- */
.about-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
}

.about-profile p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.about-profile strong { color: var(--text-main); }

.skills-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-content: flex-start;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-2px);
}

/* --- Portfolio Layout & Clean HTML/CSS Specimens --- */
.portfolio-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.project-view {
    height: 320px;
    background: #16161a;
    position: relative;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

/* Clean Mock Browser Design Elements */
.browser-header {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 12px;
}

.browser-header .dots {
    display: flex;
    gap: 6px;
}

.browser-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.mock-canvas {
    flex: 1;
    background: #ffffff;
    color: #000000;
    border-radius: 4px;
    padding: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.saas-preview {
    background: #0b0f19;
    color: #ffffff;
}

.mock-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 4px;
}

.saas-preview .mock-nav-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.m-logo {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.m-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.m-menu span {
    width: 14px;
    height: 2px;
    background: #000000;
}

.saas-preview .m-menu span {
    background: #ffffff;
}

.mock-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.mock-body .highlight {
    background: #000000;
    color: #ffffff;
    padding: 0 4px;
}

.saas-preview .mock-body .highlight {
    background: var(--accent);
    color: #000000;
}

.mock-body p {
    font-size: 0.7rem;
    color: #666666;
    margin: 6px 0;
}

.saas-preview .mock-body p {
    color: #94a3b8;
}

.mock-img-placeholder {
    width: 100%;
    height: 90px;
    background: #f1f5f9;
    margin-top: 8px;
    border-radius: 4px;
    border: 1px dashed #cbd5e1;
}

.mock-chart-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px;
    margin-top: 8px;
    border-radius: 4px;
}

.chart-bar {
    flex: 1;
    background: rgba(0, 240, 255, 0.2);
    border-top: 2px solid var(--accent);
    border-radius: 2px 2px 0 0;
}
.chart-bar.bar-1 { height: 40%; }
.chart-bar.bar-2 { height: 85%; background: var(--accent); }
.chart-bar.bar-3 { height: 60%; }

.project-details { padding: 1.5rem; background: var(--bg-card); }
.project-details h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.project-details span { font-size: 0.85rem; color: var(--text-dim); }

/* --- Services Ecosystem & Cards --- */
.tiers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.tier-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

.tier-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--bg-prime);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 10;
}

.tier-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.tier-cost { font-size: 2.5rem; font-weight: 700; color: var(--accent); margin-bottom: 1.5rem; }
.tier-cost span { font-size: 0.95rem; color: var(--text-dim); font-weight: 400; }
.tier-card p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 2rem; min-height: 45px; }

.tier-card ul { list-style: none; margin-bottom: 2.5rem; }
.tier-card ul li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}
.tier-card ul li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 700;
}

/* --- Package Selection Buttons --- */
.package-select-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.3s;
    margin-top: auto;
}

.tier-card.featured .package-select-btn {
    background: var(--accent);
    color: var(--bg-prime);
    border-color: var(--accent);
}

.tier-card:not(.featured) .package-select-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.tier-card.featured .package-select-btn:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Contact Section Layout --- */
.contact-wrapper-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This forces a perfect 50/50 side-by-side split */
    gap: 60px; /* Gives nice breathing room between text and form */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.contact-meta p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 1.5rem; }
.email-direct {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: opacity 0.3s;
}
.email-direct:hover { opacity: 0.8; }

.glowing-form .input-row { margin-bottom: 1.5rem; }
.glowing-form input, .glowing-form textarea {
    width: 100%;
    padding: 1rem;
    background: #18181f;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.glowing-form input:focus, .glowing-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.submit-action-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    width: 100%;
}
.submit-action-btn:hover {
    background: var(--accent);
    color: var(--bg-prime);
    box-shadow: 0 0 20px var(--accent);
}

.feedback-msg { margin-top: 1rem; font-size: 0.95rem; }
.feedback-msg.success { color: var(--accent); }
.state-hidden { display: none; }

/* --- Scroll and Entry Animations --- */
.animation-fade-up {
    animation: fadeUpKey 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpKey {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.view-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adaptations --- */
@media (max-width: 968px) {
    .about-layout, .portfolio-showcase, .contact-wrapper-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
}
/* Hide Hamburger Button on Desktop layouts */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.page-section {
  display: none;
}

/* Only show the section that has the active class */
.page-section.active {
  display: block !important; 
}
/* --- Desktop Default Navigation Style --- */
.nav-menu {
  display: flex;
  flex-direction: row;        /* Forces links side-by-side on desktop */
  position: static;           /* Keeps it sitting naturally in the header */
  height: auto;
  width: auto;
  background-color: transparent; /* No dark background on desktop */
}

  @media (max-width: 768px) {
    /* 🍔 Forces the hamburger bars to display cleanly on mobile screens */
  .menu-toggle {
    display: flex !important;
  }
  /* Drops down and stacks links neatly on mobile screens */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px; /* Increased padding to push links down slightly */
    gap: 35px;
    
    position: fixed; /* Changed from absolute to fixed so it locks to the screen */
    top: 0; /* Starts from the absolute top of the viewport */
    left: -100%; 
    width: 100%;
    height: 100vh; /* Fills the entire screen layer */
    
    background-color: #1a1a1a !important; /* Force a solid, dark slate background color */
    transition: left 0.4s ease;
    z-index: 99999 !important; /* Forces the menu to sit ON TOP of all other images or banners */
  }

  /* Ensures your text links are explicitly white and visible */
  .nav-menu .nav-link {
    color: #FFFFFF !important;
    font-size: 24px !important;
    text-decoration: none !important;
    display: block !important;
    width: 100%;
    text-align: center;
  }

  /* Pulls menu into view when clicked */
  .nav-menu.active {
    left: 0;
  }

  /* Transitions the 3 bars into a neat 'X' icon */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  }