/* Base Resets and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --accent: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-main);
}



/* Images */

img {
    max-width: 100%; /* Prevents the image from bursting out of its container */
    height: auto;    /* Maintains the correct proportions when shrinking */
    display: block;  /* Removes unwanted blank space at the bottom of the image */
}


.card-img {
    width: 100%;          /* Fills the width of the container */
    height: 250px;        /* Forces both images to this exact height */
    object-fit: cover;    /* Automatically crops the image so it does not distort */
    display: block;       /* Removes unwanted bottom spacing */
}




/* Reusable Components */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.highlight {
    color: var(--accent);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Sections Structure */
section {
    padding: 6rem 10% 4rem 10%;
    min-height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Hero Section */
.hero-section {
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Projects Section */
.projects-section {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.header-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.2s ease-in-out; 
}

.header-link:hover {
    color: var(--accent); 
}


/* ==========================================================================
   Interactive Dashboard Section (New Distinct Classes)
   ========================================================================== */

/* Outer section container matches original background coloring */
.dashboard-section {
    background-color: var(--bg-secondary);
}

/* Maximized, horizontally-centered container block */
.dashboard-wrapper {
    width: 100%;
    max-width: 1200px; /* Limits excessive layout stretch on massive desk displays */
    margin: 3rem auto 0 auto;
}

/* Single large block card replicating the original border, radius, and transition styles */
.dashboard-large-card {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Smooth lift-up behavior matching your original project cards */
.dashboard-large-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* Aspect-ratio parent container forces a true 16:9 frame calculation across monitors */
.dashboard-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Guarantees dashboard visuals scale uniformly without black padding bars */
    background-color: #000; /* Dark baseline while the secure cloud app connection authenticates */
}

/* Absolute stretching to safely map the third-party iframe code to container bounds */
.dashboard-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Informational padding layout block directly underneath the frame */
.dashboard-details {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-main);
}

.dashboard-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}


/* Bar Chart  */

 .chart-container { max-width: 600px; 
    margin: 40px auto; 
    font-family: sans-serif; 
}
 .chart-frame { display: flex; 
    align-items: flex-end; 
    justify-content: space-between; 
    height: 300px; 
    border-left: 2px solid #ccc; 
    border-bottom: 2px solid #ccc; 
    padding: 10px; 
}
 .bar-column { display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 12%; 
    height: 100%; 
    justify-content: flex-end;
 }
  .bar-block { width: 100%; 
    border-radius: 4px 4px 0 0; 
    min-height: 2px; 
    transition: height 0.5s ease; }
 .bar-value { font-size: 12px;
     font-weight: bold; 
     margin-bottom: 5px; }
 .bar-label { font-size: 12px; 
    margin-top: 8px; 
    color: #555; }




/* Contact Section */
.contact-section p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    section {
        padding: 5rem 5% 3rem 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}