/* 
   VIBRANT CREATIVE REDESIGN 
   Modern, Colorful, UI/UX Focused 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --header-height: 5rem;

    /* Vibrant Palette */
    --p-500: #6366F1; /* Indigo */
    --p-600: #4F46E5;
    --s-500: #10B981; /* Emerald */
    --t-500: #F43F5E; /* Rose */
    --a-500: #F59E0B; /* Amber */
    
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-50: #f8fafc;
    
    --bg: #FDFDFF;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--slate-700);
    background-color: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--slate-900);
    font-weight: 800;
}

/* BACKGROUND MESH GRADIENT */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(to right, var(--p-500), var(--t-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.button {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    display: inline-block;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(135deg, var(--p-500), var(--p-600));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.button-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.button-secondary {
    background: white;
    color: var(--p-500);
    border: 2px solid var(--p-500);
}

.button-secondary:hover {
    background: var(--p-500);
    color: white;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
}

.nav-logo span {
    background: linear-gradient(to right, var(--p-500), var(--s-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-weight: 600;
    color: var(--slate-600);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--p-500);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    padding: 10rem 0 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero-subtitle {
    color: #4338ca; /* Darker indigo for WCAG AA contrast compliance */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-img {
    position: relative;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--p-500), var(--s-500));
    border-radius: 30px;
    z-index: -1;
    opacity: 0.2;
}

.hero-img img {
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

/* CASE STUDY CARD - THE "WOW" ELEMENT */
.case-card {
    background: white;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Force no padding on the card itself */
}

.case-content {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-img {
    position: relative;
    min-height: 400px;
}

.case-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--t-500);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
}

.case-tag {
    background: rgba(244, 63, 94, 0.1);
    color: var(--t-500);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: inline-block;
}

.case-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.case-list li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 500;
}

.case-list i {
    color: var(--s-500);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* SKILLS CARDS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 32px;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border-bottom: 6px solid transparent;
}

.skill-card:nth-child(1) { border-bottom-color: var(--p-500); }
.skill-card:nth-child(2) { border-bottom-color: var(--s-500); }
.skill-card:nth-child(3) { border-bottom-color: var(--t-500); }

.skill-card:hover {
    transform: translateY(-15px);
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.skill-card:nth-child(1) .skill-icon { background: rgba(99, 102, 241, 0.1); color: var(--p-500); }
.skill-card:nth-child(2) .skill-icon { background: rgba(16, 185, 129, 0.1); color: var(--s-500); }
.skill-card:nth-child(3) .skill-icon { background: rgba(244, 63, 94, 0.1); color: var(--t-500); }

/* EXPERIENCE TIMELINE */
.exp-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
    border-left: 8px solid var(--p-500);
    transition: 0.3s;
}

.exp-card:hover {
    transform: translateX(10px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.exp-role { font-size: 1.75rem; }
.exp-date { font-weight: 800; color: var(--p-500); }

/* CONTACT */
.contact-container {
    background: linear-gradient(135deg, var(--p-500), var(--p-600));
    padding: 6rem;
    border-radius: 50px;
    color: white;
    text-align: center;
}

.contact-container h2 { color: white; }
.contact-container .button-primary { background: white; color: var(--p-500); }

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--slate-600);
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--t-500);
    transform: rotate(90deg);
}

/* COMPARISON GRID */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comp-col {
    background: var(--slate-50);
    border-radius: 24px;
    padding: 1.5rem;
    border: 2px solid transparent;
}

.comp-col.before {
    border-color: rgba(244, 63, 94, 0.2);
    background: linear-gradient(to bottom right, #fff, rgba(244, 63, 94, 0.05));
}

.comp-col.after {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(to bottom right, #fff, rgba(16, 185, 129, 0.05));
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
}

.proto-image {
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.proto-image img {
    width: 100%;
    max-width: 150px;
    border-radius: 12px;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    display: block;
}

.ba-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ba-icon {
    font-size: 1.75rem;
}

.ba-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.ba-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ba-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--slate-700);
}

.ba-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.proto-list.before li::before { background: var(--t-500); }
.proto-list.after li::before { background: var(--s-500); }

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero-title { font-size: 3.5rem; }
    .hero-grid, .case-card { grid-template-columns: 1fr; }
    .case-card { padding: 3rem; }
    .modal-content { padding: 2rem; }
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
