/* General Styling */
:root {
    --primary-pink: #FFC0CB; /* Blush Pink */
    --secondary-lilac: #E0BBE4; /* Soft Lilac */
    --accent-mint: #957DAD; /* Muted Purple/Mint for contrast */
    --text-dark: #333;
    --text-light: #555;
    --background-light: #F8F8F8;
    --background-white: #FFFFFF;
    --border-light: #EEE;
    --gold-accent: #DAA520; /* Subtle Gold */
    --rose-gold-accent: #B76E79; /* Subtle Rose Gold */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-mint);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-pink);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-pink);
    color: var(--background-white);
}

.primary-btn:hover {
    background-color: var(--rose-gold-accent);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-mint);
    border: 2px solid var(--accent-mint);
}

.secondary-btn:hover {
    background-color: var(--secondary-lilac);
    color: var(--background-white);
    transform: translateY(-2px);
}

.section-padding {
    padding: 80px 0;
}

.section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--border-light), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* Navbar */
.navbar {
    background-color: var(--background-white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--rose-gold-accent);
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-pink);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-pink);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-lilac) 100%);
    color: var(--background-white);
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 80vh; /* Make it fill most of the viewport */
    position: relative;
    overflow: hidden; /* For any background patterns */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float1 10s infinite ease-in-out;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float2 12s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}


.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 2;
    min-width: 300px;
}

.hero-text h1 {
    color: var(--background-white);
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 2em;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.hero-image img {
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.5);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* About Me Section */
.about-section {
    text-align: center;
}

.about-section h2 {
    margin-bottom: 1.5rem;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1em;
}

/* Journey Section */
.journey-subsection {
    margin-bottom: 60px;
    text-align: center;
}

.journey-subsection h3 {
    margin-bottom: 30px;
    color: var(--rose-gold-accent);
}

/* Roadmap Styling */
.roadmap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 50px 0;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-line {
    position: absolute;
    width: calc(100% - 100px); /* Adjust based on point size */
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--accent-mint), var(--accent-mint) 5px, transparent 5px, transparent 10px);
    top: 50%;
    left: 50px; /* Aligns with first point */
    transform: translateY(-50%);
    z-index: 0;
}

.roadmap-point {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--background-white);
    border: 3px solid var(--primary-pink);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: var(--rose-gold-accent);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1;
    cursor: help;
}

.roadmap-point:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-color: var(--rose-gold-accent);
}

.roadmap-point.future {
    opacity: 0.6;
    border-color: var(--border-light);
    color: var(--text-light);
}

.roadmap-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 180px;
    background-color: var(--text-dark);
    color: var(--background-white);
    text-align: center;
    border-radius: 6px;
    padding: 10px 0;
    position: absolute;
    z-index: 2;
    bottom: 120%; /* Position above the icon */
    left: 50%;
    margin-left: -90px; /* Center the tooltip */
    transition: opacity 0.3s ease;
    font-size: 0.9em;
}

.roadmap-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

.roadmap-point:hover .roadmap-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Certifications Grid */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background-color: var(--background-white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cert-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-pink);
    padding: 5px;
}

.cert-card h4 {
    color: var(--rose-gold-accent);
    margin-bottom: 5px;
}

.cert-card p {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cert-card .edit-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--accent-mint);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 1.1em;
}

.cert-card .edit-icon:hover {
    opacity: 1;
}

.cert-card.placeholder-card {
    border: 2px dashed var(--border-light);
    background-color: var(--background-light);
    opacity: 0.8;
}

/* SQL Playground */
.sql-playground-section {
    background-color: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sql-interface {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Query area (2 parts), Snippets (1 part) */
    gap: 30px;
    margin-top: 40px;
}

.sql-query-area {
    background-color: #f5f5f5;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

#sql-editor {
    width: 100%;
    min-height: 180px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Fira Code', 'Cascadia Code', monospace; /* Monospace font for code */
    font-size: 1em;
    background-color: #fff;
    color: var(--text-dark);
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

#sql-editor:focus {
    border-color: var(--primary-pink);
}

.query-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.sql-snippets {
    background-color: #f5f5f5;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
}

.sql-snippets h3 {
    text-align: center;
    color: var(--rose-gold-accent);
    margin-bottom: 20px;
}

.snippet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sql-snippet {
    background-color: var(--secondary-lilac);
    color: var(--background-white);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: grab;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sql-snippet:hover {
    background-color: var(--accent-mint);
    transform: translateY(-2px);
}

.sql-snippet:active {
    cursor: grabbing;
}

.sql-results-area {
    grid-column: 1 / span 2; /* Span across both columns */
    background-color: #f5f5f5;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.sql-results-area h3 {
    text-align: center;
    color: var(--rose-gold-accent);
    margin-bottom: 20px;
}

.results-table-container {
    overflow-x: auto; /* Enable horizontal scrolling for wide tables */
    min-height: 150px;
    max-height: 400px; /* Limit height and enable vertical scrolling */
    background-color: var(--background-white);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 10px;
}

.sql-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.sql-results-table th, .sql-results-table td {
    border: 1px solid var(--border-light);
    padding: 10px;
    text-align: left;
}

.sql-results-table th {
    background-color: var(--secondary-lilac);
    color: var(--background-white);
    position: sticky; /* Keep headers visible on scroll */
    top: 0;
}

.sql-results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.no-results-message {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.error-message {
    color: #d9534f; /* Red for error */
    font-size: 0.9em;
    margin-top: 10px;
    display: none; /* Hidden by default */
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card h4 {
    color: var(--rose-gold-accent);
    margin: 15px 15px 5px;
}

.project-card p {
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 10px;
}

.project-role {
    font-weight: 600;
    color: var(--accent-mint);
    margin-bottom: 5px;
}

.project-skills {
    padding: 0 15px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-skills span {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--border-light);
}

.project-details-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    background-color: var(--secondary-lilac);
    color: var(--background-white);
    font-size: 0.9em;
}

.project-details-btn:hover {
    background-color: var(--accent-mint);
}

.project-details-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--border-light);
    color: var(--text-light);
}

.placeholder-project-card {
    border: 2px dashed var(--border-light);
    background-color: var(--background-light);
    opacity: 0.8;
}


/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .primary-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-pink);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    color: var(--accent-mint);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-pink);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--background-white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        text-align: center;
    }

    .navbar .container {
        flex-direction: column;
    }

    .roadmap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        padding-bottom: 0;
    }
    .roadmap-line {
        display: none; /* Hide horizontal line on small screens */
    }
    .roadmap-tooltip {
        bottom: auto;
        top: 120%;
        margin-left: -90px;
    }
    .roadmap-tooltip::after {
        top: -5px;
        border-color: transparent transparent var(--text-dark) transparent;
    }

    .sql-interface {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .sql-query-area, .sql-snippets, .sql-results-area {
        padding: 15px;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form-container, .contact-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar ul li {
        margin-left: 0;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .hero-text h1 {
        font-size: 2em;
    }
    .hero-text p {
        font-size: 1.1em;
    }
    .sql-snippet {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    .project-card, .cert-card {
        padding: 20px;
    }
}