/* ---------------------------------------------------
   GLOBAL TYPOGRAPHY + COLORS
--------------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #2c1a6b;
    font-weight: 600;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

p, li, a, span {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* ---------------------------------------------------
   NAVBAR
--------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background: #2c1a6b;
    color: white;
}

.navbar a {
    color: #e0dbff;
    margin-left: 20px;
    text-decoration: none;
}

/* ---------------------------------------------------
   SECTIONS
--------------------------------------------------- */
.section {
    background: white;
    padding: 40px;
    margin: 40px auto;
    border-radius: 12px;
    max-width: 1100px;
    box-shadow: 0 4px 10px rgba(94, 59, 238, 0.1);
}

.section h2 {
    margin-bottom: 20px;
}

/* ---------------------------------------------------
   CARD GRID (used everywhere)
--------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ---------------------------------------------------
   CARD (unified style)
--------------------------------------------------- */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(94, 59, 238, 0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(94, 59, 238, 0.2);
}

.card h3 {
    color: #2c1a6b;
    font-weight: 600;
}

.card p {
    color: #555;
    font-weight: 400;
}

/* ---------------------------------------------------
   FEATURES SECTION
--------------------------------------------------- */
#features h2 {
    text-align: center;
    margin-bottom: 30px;
}

#features .card {
    background: linear-gradient(145deg, #ffffff, #f5f3ff);
    border: 1px solid #e0dbff;
    text-align: center;
}

#features .card i {
    font-size: 35px;
    color: #5e3bee;
    margin-bottom: 15px;
    background: #ede9ff;
    padding: 15px;
    border-radius: 50%;
}

/* ---------------------------------------------------
   TECH GRID
--------------------------------------------------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tech-card {
    background: white;
    color: #2c1a6b;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(94, 59, 238, 0.1);
    transition: 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(94, 59, 238, 0.3);
}

.tech-card h4 {
    color: #7a5cff;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* ---------------------------------------------------
   PROJECT HEADER (top section)
--------------------------------------------------- */
.project-header {
    max-width: 1100px;
    margin: 20px auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(94, 59, 238, 0.15);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

/* LEFT SIDE */
.project-left h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.project-left .subtitle {
    font-size: 17px;
    margin-bottom: 25px;
}

.tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: #ede9ff;
    padding: 6px 12px;
    border-radius: 8px;
    color: #5e3bee;
    border: 1px solid #dcd4ff;
}

/* ---------------------------------------------------
   TOP SCREENSHOT CARD
--------------------------------------------------- */
.screenshot-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(94, 59, 238, 0.15);
    height: 450px; /* restored taller height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-card img {
    height: 50%;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* ---------------------------------------------------
   SCREENSHOTS SECTION
--------------------------------------------------- */
#screenshots .card {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#screenshots .card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* ---------------------------------------------------
   BACK TO TOP BUTTON
--------------------------------------------------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #5e3bee;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(94, 59, 238, 0.3);
    transition: 0.3s;
    opacity: 0;
    pointer-events: none;
}

#backToTop:hover {
    background: #2c1a6b;
    transform: translateY(-4px);
}

/* ---------------------------------------------------
   DEMO VIDEO
--------------------------------------------------- */
#demo {
    text-align: center;
}

#demo video {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(94, 59, 238, 0.2);
    max-width: 90%;
}

.nav-subtitle {
    color: #cfc9ff;
    font-size: 20px;
    margin-left: 5px;
    margin-top: 5px;
    display: block;
}
