:root {
    /* Modern Color Palette - Dark Theme Base */
    --bg-dark: #0a0a0b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    /* Primary Accents */
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    --accent: #8b5cf6;

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(to bottom, #0a0a0b, #111113);

    /* Spacing & Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo a {
    color: inherit;       /* inherit text color from parent */
    text-decoration: none; /* remove underline */
    font-weight: 700;
    font-size: 1.5rem;
}

.logo .highlight {
    color: #6356f7;       /* example gradient or accent color */
}

.highlight {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.active {
    color: var(--primary);
    position: relative;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-height) + 4rem) 5% 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem); /* responsive font size */
  line-height: 1.2;
  word-break: break-word; /* ensures long words wrap */
  margin-bottom: 1.5rem;
}



.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 300px;
    height: 380px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-main);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.card-content h3 {
    margin-bottom: 1.5rem;
}

.chart-placeholder {
    height: 150px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 20%, transparent 20%);
    background-size: 20px 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
}

.chart-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(90deg, transparent, var(--primary));
    opacity: 0.5;
    clip-path: polygon(0 100%, 20% 80%, 40% 60%, 60% 70%, 80% 40%, 100% 20%, 100% 100%);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.positive {
    color: #4ade80;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: '→';
    color: var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Hire Developers Section */
.hire-developers {
    padding: 5rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hire-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dev-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dev-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.dev-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.dev-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
    margin-top: auto;
}

/* Academy Section */
.academy {
    padding: 5rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.academy-container {
    display: flex;
    gap: 4rem;
    padding: 3rem;
    align-items: center;
}

.course-main {
    flex: 1;
}

.course-main h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-main p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.curriculum-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.module-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.module-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.module-info strong {
    color: var(--primary);
}

@media (max-width: 968px) {
    .academy-container {
        flex-direction: column;
        text-align: center;
    }

    .curriculum-grid {
        width: 100%;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-visual {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

code {
    color: #abb2bf;
    display: block;
    line-height: 1.6;
}

.keyword {
    color: #c678dd;
}

.variable {
    color: #e06c75;
}

.function {
    color: #61afef;
}

.string {
    color: #98c379;
}

@media (max-width: 968px) {
    .about-container {
        flex-direction: column;
    }

    .stats-grid {
        justify-content: center;
    }

    .about-content {
        text-align: center;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 3rem;
    overflow: hidden;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-main);
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 5% 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h5 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--nav-height) + 2rem);
    }

    .hero-content {
        margin: 0 auto;
    }

    .cta-group {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu to be implemented */
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Fix register section responsive layout */
@media (max-width: 900px) {
    #register>div {
        flex-direction: column;
        padding: 0;
    }

    #register .glass-panel {
        width: 100%;
        padding: 2rem !important;
    }

    #register ul li {
        transform: none !important;
    }
}

@media (max-width: 768px) {

  /* Section header center */
  #hire .section-header {
    text-align: center;
  }

  /* Main showcase layout stacked */
  #hire .hire-showcase > div:first-child {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem !important;
  }

  /* Left content center */
  #hire .badge,
  #hire h3,
  #hire p,
  #hire a {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Stats grid full width */
  #hire .hire-showcase > div:first-child > div:last-child {
    width: 100%;
    grid-template-columns: 1fr 1fr !important;
  }

  /* Feature cards center */
  #hire .hire-showcase > div:last-child {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  #hire .hire-showcase h4,
  #hire .hire-showcase p {
    text-align: center;
  }

  /* Padding fix */
  #hire .hire-showcase {
    padding: 2rem 1.2rem !important;
  }
}

@media (max-width: 768px) {

  /* Section header center */
  #services .section-header {
    text-align: center;
  }

  /* Each service row stacked */
  #services > div > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 1.5rem !important;
  }

  /* Icon box center */
  #services > div > div > div:first-child {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto;
  }

  /* Glass panel alignment */
  #services .glass-panel {
    text-align: center;
    padding: 1.5rem !important;
  }

  /* Disable left/right dots positioning */
  #services .glass-panel div[style*="position: absolute"] {
    display: none;
  }

  /* Headings & text center */
  #services h3,
  #services p {
    text-align: center !important;
  }

  /* Tags center */
  #services .glass-panel > div:last-child {
    justify-content: center !important;
  }

  /* Button center */
  #services a.btn-primary {
    margin: 0 auto;
    display: inline-block;
  }
}

/* =========================
   MOBILE NAVIGATION FIX
========================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 4px;
  transition: 0.3s;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 25, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

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

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

.footer-content{
  display:grid;
  grid-template-columns: 420px repeat(4, 1fr);
  gap:40px;
  align-items:start;
}

.footer-col{
  min-width:180px;
}

.footer-col.brand{
    margin-right: 50px;
}

@media (max-width: 992px){
  .footer-content{
    grid-template-columns: 1fr 1fr;
    gap:24px;
  }
}

#contact .btn-primary {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
}
