/* --- Design System & Brand Colors --- */
:root {
    --brand-teal: #1f6b8a;
    --brand-green: #7bc143;
    --brand-gradient: linear-gradient(135deg, var(--brand-teal), var(--brand-green));
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    
    /* n8n Chat Colors */
    --chat--color--primary: #1f6b8a; 
    --chat--color--secondary: #7bc143; 
    --chat--color-white: #ffffff;
    --chat--color-light: #f7fafc;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    padding: 100px 0;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-green);
}

/* --- Hero / Landing Page --- */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 193, 67, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 193, 67, 0.6);
}

.btn-outline {
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--brand-teal);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

/* --- About Me --- */
#about {
    background-color: var(--bg-white);
    padding: 60px 0; /* Adds breathing room at the top and bottom of the section */
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px; /* Prevents text from hitting the screen edge on mobile */
}

/* New: Styling for your image container */
.about-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px auto; /* Centers the image and adds space below it */
    position: relative;
    border-radius: 50%; /* Makes it a perfectly clean circular profile picture */
    background: var(--brand-gradient); /* Uses your beautiful pink gradient as a border */
    padding: 4px; /* Thickness of your gradient border */
    box-shadow: var(--card-shadow);
}

/* New: Ensures the image fills the circular container perfectly */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching or squeezing the photo */
    border-radius: 50%;
    display: block;
    transition: var(--transition);
}

/* New: Subtle interactive zoom when someone hovers over your picture */
.about-image img:hover {
    transform: scale(1.04);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7; /* Makes dense text blocks significantly easier to read */
}

/* --- Portfolio (Cards) --- */
#portfolio {
    background-color: var(--bg-light);
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--brand-teal);
    cursor: pointer; 
    flex: 0 1 350px;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--brand-green);
}

/* Dynamic Card Media (Hover Effects) */
.card-media {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.card-media .img-gif {
    opacity: 0; 
}

.portfolio-card:hover .img-static {
    opacity: 0;
}
.portfolio-card:hover .img-gif {
    opacity: 1;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tech-tags span {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--brand-teal);
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* --- Tools I Use --- */
#tools {
    background-color: var(--bg-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.tool-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: var(--brand-gradient);
    color: white;
}

.tool-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--brand-teal);
    transition: var(--transition);
}

.tool-card:hover i {
    color: white;
}

.tool-img {
    height: 3rem;
    width: auto;
    margin-bottom: 15px;
    transition: var(--transition);
}

.tool-card:hover .tool-img {
    filter: brightness(0) invert(1);
}

/* --- Contact --- */
#contact {
    background-color: var(--bg-white);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(123, 193, 67, 0.2);
}

textarea.form-control {
    resize: vertical;
    height: 150px;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--brand-green);
}

/* --- Portfolio Modals --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-light);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--brand-teal);
}

.modal-content h2 {
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; 
    }
    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }
    .modal-content {
        padding: 20px;
    }
}