:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #1e293b;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span:not(.material-symbols-outlined) {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

nav a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--gradient-hero);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.tech-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-color);
    display: block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid #dbeafe;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }

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

.hero-text {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: #111827;
    /* Dark background */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Top highlight */
}

.btn-primary:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #111827;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-cta {
    background: #3b82f6;
    /* Blue background */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(59, 130, 246, 0.3);
    /* Top highlight + shadow */
}

.btn-cta:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 6px rgba(59, 130, 246, 0.4);
}

.certifications {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.certifications span:first-child {
    font-weight: 700;
    color: #9ca3af;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.cert-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.cert-tag.yellow {
    background: #fef3c7;
    color: #92400e;
}

.cert-tag.blue {
    background: #dbeafe;
    color: #1e40af;
}

.cert-tag.green {
    background: #dcfce7;
    color: #166534;
}

.hero-card {
    background: white;
    padding: 1rem;
    padding-bottom: 2rem;
    /* Extra space for icons */
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: rotate(2deg);
    max-width: 320px;
    /* Reduced from 400px */
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    /* Allow icons to hang out */
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 25px 30px -5px rgb(0 0 0 / 0.15);
}

.hero-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    object-fit: cover;
    object-position: 35% 25%;
    /* Adjusted framing: left-center */
    aspect-ratio: 1/1;
    /* Ensure square aspect ratio */
}

.card-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.card-info p {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    /* Space for icons */
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    position: absolute;
    bottom: -18px;
    /* Overlap */
    left: 50%;
    transform: translateX(-50%);
    /* Removed background and padding */
    width: max-content;
    z-index: 10;
}

.tech-icon {
    width: 36px;
    /* Slightly larger */
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    /* Bouncy transition */
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    /* Add shadow to individual icons */
    border: 2px solid white;
    /* Add border to separate from card if needed */
}

.tech-icon img {
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    /* Override hero image style */
}

/* Specialties Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.specialties {
    padding: 5rem 5%;
    background: white;
}

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

.feature-card {
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--card-shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box .material-symbols-outlined {
    font-size: 1.75rem;
}

.watermark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 8rem !important;
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feature-card:hover .watermark {
    opacity: 0.2;
}

.icon-box.blue {
    background: #dbeafe;
    color: #2563eb;
}

.watermark.blue {
    color: #2563eb;
}

.icon-box.red {
    background: #fee2e2;
    color: #dc2626;
}

.watermark.red {
    color: #dc2626;
}

.icon-box.green {
    background: #dcfce7;
    color: #166534;
}

.watermark.green {
    color: #166534;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-details {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

.btn-details:hover {
    text-decoration: underline;
}

/* Card Details (Hidden by default) */
.card-details {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    animation: fadeIn 0.5s ease;
}

.feature-card.expanded .card-details {
    display: block;
}

.card-details h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-details ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-details ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
}

.card-details ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.detail-image {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simulator Section */
.simulator-section {
    padding: 6rem 1rem;
    background-color: #0f172a;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 24px 24px;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.sim-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 968px) {
    .sim-container {
        grid-template-columns: 1fr;
    }
}

.sim-controls {
    background: #1e293b;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.slider-container {
    margin-bottom: 2rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.slider-val {
    color: #3b82f6;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: #334155;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-value.green {
    color: #22c55e;
}

/* Cluster View */
.cluster-view {
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
    padding: 2rem;
    min-height: 400px;
}

.cluster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.875rem;
}

.nodes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.node {
    background: #334155;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.node-header {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-family: monospace;
}

.pod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.pod {
    aspect-ratio: 1;
    background: #1e293b;
    border-radius: 4px;
    transition: all 0.3s;
}

.pod.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.project-img {
    height: 200px;
    background: #cbd5e1;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.0);
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.project-tag.fintech {
    background: #2563eb;
}

.project-tag.ecommerce {
    background: #f97316;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.project-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.project-features {
    list-style: none;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.check-icon {
    color: var(--success);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.contact-container {
    background: white;
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem;
    border-radius: 16px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
}

.btn-block {
    width: 100%;
    justify-content: center;
    background: var(--secondary-color);
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    color: #64748b;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .certifications {
        justify-content: center;
    }

    .sim-container {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }
}