:root {
    --bg-color: #111;
    --alt-bg-color: #1d1d1f;
    --text-color: #f5f5f7;

    /* NEW Gradient Variables */
    --gradient-main: linear-gradient(to right, #92FE9D, #00C9FF);
    --gradient-main-vertical: linear-gradient(to bottom, #92FE9D, #00C9FF);
    --color-gradient-start: #92FE9D;
    --color-gradient-end: #00C9FF;
    /* RGB for transparency effects if needed */
    --color-gradient-start-rgb: 146, 254, 157;
    --color-gradient-end-rgb: 0, 201, 255;

    --secondary-text-color: #a1a1a6;
    --border-color: #333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Keyframes --- */
@keyframes pulseBlob {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
        filter: blur(60px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.75; /* Matched to blob opacity */
        filter: blur(80px);
    }
}

@keyframes textGlow {
    from {
        text-shadow:
            0 0 7px rgba(255, 255, 255, 0.7),
            0 0 15px rgba(0, 201, 255, 0.5),    /* #00C9FF */
            0 0 25px rgba(146, 254, 157, 0.4),  /* #92FE9D */
            0 0 35px rgba(0, 201, 255, 0.3);    /* #00C9FF */
    }
    to {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(0, 201, 255, 0.6),
            0 0 30px rgba(146, 254, 157, 0.5),
            0 0 45px rgba(0, 201, 255, 0.4);
    }
}


/* --- Header --- */
.site-header {
    padding: 20px 0;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70vw;
    height: 45vw;
    max-width: 650px;
    max-height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
        rgba(var(--color-gradient-end-rgb), 0.3) 0%,      /* Cyan/Blue */
        rgba(var(--color-gradient-start-rgb), 0.25) 65%,  /* Green */
        transparent 100%
    );
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 55%;
    filter: blur(75px);
    opacity: 0.7;
    z-index: 0;
    animation: pulseBlob 15s infinite alternate ease-in-out;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #f0f0f0;
    position: relative;
    z-index: 2;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.7),
        0 0 15px rgba(0, 201, 255, 0.5),
        0 0 25px rgba(146, 254, 157, 0.4),
        0 0 35px rgba(0, 201, 255, 0.3);
    animation: textGlow 4s infinite alternate ease-in-out;
}

.hero-section .subtitle {
	justify-self: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin-bottom: 1.5em;
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-block;
    background-image: var(--gradient-main);
    color: #181818; /* Dark text for light gradient */
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: filter 0.3s ease, transform 0.2s ease;
    border: none;
}

.cta-button:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}


/* --- Feature Sections --- */
.feature-section {
    padding: 80px 0;
    text-align: center;
}

.feature-section.alt-bg {
    background-color: var(--alt-bg-color);
}

.feature-section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.feature-section .section-intro {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto 2.5em auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-section.alt-bg .skill-item {
    background-color: var(--alt-bg-color);
    border: 1px solid #444;
}


.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.skill-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75em;
    /* Gradient Text */
    background-image: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline; /* Or inline-block */
}

.skill-item p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.7;
}

.skill-item.wide {
    grid-column: span 1;
}
@media (min-width: 992px) {
    #ai .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.ai-passion {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 750px;
    margin: 40px auto 0 auto;
    background-image: linear-gradient(to right,
                        rgba(var(--color-gradient-start-rgb), 0.07),
                        rgba(var(--color-gradient-end-rgb), 0.07));
    padding: 20px;
    text-align: left;
    border-radius: 0 8px 8px 0;
    position: relative;
    padding-left: 28px;
    border-left: none;
}

.ai-passion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-image: var(--gradient-main-vertical);
    border-radius: 3px 0 0 3px;
}


/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.contact-section p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 2em auto;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-button {
    display: inline-block;
    position: relative;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    min-width: 150px;
    z-index: 1;
    background-color: transparent;
    border: 2px solid transparent;
    overflow: hidden;
    transition: color 0.3s ease, background-image 0.3s ease, transform 0.2s ease;
    /* Gradient text for normal state */
    background-image: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.contact-button::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    background-image: var(--gradient-main);
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #181818; /* Solid dark text for contrast */
    -webkit-text-fill-color: initial;
    transform: translateY(-2px);
    border-color: transparent;
}

.contact-button:hover::after {
    opacity: 0;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9em;
    color: var(--secondary-text-color);
    border-top: 1px solid var(--border-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section .subtitle {
        font-size: 1.3rem;
    }
    .hero-section::before {
        width: 85vw;
        height: 55vw;
        filter: blur(60px);
    }
    .feature-section h2, .contact-section h2 {
        font-size: 2.2rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-item.wide {
        grid-column: span 1;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    .contact-button {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .subtitle {
        font-size: 1.1rem;
    }
    .hero-section::before {
        width: 95vw;
        height: 65vw;
        filter: blur(50px);
    }
    .feature-section h2, .contact-section h2 {
        font-size: 1.8rem;
    }
    .feature-section .section-intro {
        font-size: 1rem;
    }
    .logo {
        font-size: 1.3em;
    }
}