/* This file contains all custom CSS rules. 
  It was moved from index.html to keep the project organized.
*/

:root {
    /* === CHANGE: Updated brand colors based on the new palette === */
    --background: 0 0% 100%;
    --foreground: 222 84% 5%;
    --primary: 191 86% 63%;      /* New Primary Color: #4ED7F1 */
    --primary-foreground: 0 0% 100%;
    --secondary: 220 14% 96%;
    --secondary-foreground: 222 47% 11%;
    --muted: 220 14% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 58 100% 78%;       /* New Accent Color: #FFFA8D */
    --accent-foreground: 222 84% 5%; /* Text color for on-accent backgrounds */
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 191 86% 63%;         /* Ring color matches new primary */
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --card: 0 0% 100%;
    --card-foreground: 222 84% 5%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 84% 5%;
    --radius: 12px;
}

.dark {
    /* You can define dark mode colors here later if you wish */
    --background: 222 84% 5%;
    --foreground: 210 40% 98%;
    --primary: 191 86% 63%;
    --primary-foreground: 222 84% 5%;
    --secondary: 217 33% 18%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217 33% 18%;
    --muted-foreground: 215 20% 65%;
    --accent: 58 100% 78%;
    --accent-foreground: 222 84% 5%;
    --border: 217 33% 18%;
    --input: 217 33% 18%;
    --ring: 191 86% 63%;
}

html {
    scroll-behavior: smooth;
}

/* ... The rest of your style.css file remains the same ... */

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.container-width {
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
}

.section-padding {
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

.text-display {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
}

@media (min-width: 768px) {
    .text-display {
        font-size: 4.5rem;
        line-height: 1;
    }
}

.text-heading {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .text-heading {
        font-size: 3rem;
        line-height: 1;
    }
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 500;
    line-height: 1.625;
}

.text-gradient {
    background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-portfolio {
    overflow: hidden;
    border-radius: .75rem;
    border-width: 1px;
    border-color: hsl(var(--border));
    background-color: hsl(var(--card));
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 20px -4px hsl(191 86% 63% / .1);
}

.card-portfolio:hover {
    transform: translateY(-.5rem);
    border-color: hsl(var(--primary) / .2);
    box-shadow: 0 8px 40px -8px hsl(191 86% 63% / .2);
}

.btn-primary {
    border-radius: var(--radius);
    background-color: hsl(var(--primary));
    padding: .75rem 1.5rem;
    font-weight: 500;
    color: hsl(var(--primary-foreground));
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    box-shadow: 0 10px 15px -3px hsl(var(--primary) / .25), 0 4px 6px -4px hsl(var(--primary) / .25);
}

.btn-outline {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: .75rem 1.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.btn-outline:hover {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary) / .05);
    color: hsl(var(--primary));
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fade-in .6s ease-out;
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.animate-scale-in {
    animation: scale-in .4s ease-out;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: 0.75rem;
    /* === CHANGE: Updated modal sizing for the new layout === */
    max-width: 80rem; 
    height: 90vh;
    width: 95vw;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden; /* Hide default overflow */
}
.modal-overlay.open .modal-content {
    transform: scale(1);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}
.toast-notification.show {
    bottom: 2rem;
}


/* === NEW: Styles for the new project modal layout === */
.modal-scroll-content {
    height: 90vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Webkit browsers (Chrome, Safari) */
.modal-scroll-content::-webkit-scrollbar {
    width: 8px;
}
.modal-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-scroll-content::-webkit-scrollbar-thumb {
    background-color: hsl(var(--border));
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
}
.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--muted-foreground));
}

/* Responsive adjustments for the modal on smaller screens */
@media (max-width: 1023px) {
    .modal-content {
        height: 85vh;
        display: flex;
        flex-direction: column;
    }
    .modal-scroll-content {
        height: auto;
        flex-grow: 1;
    }
}

/* === NEW: Custom styles for the Process section cards === */

.process-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px hsla(var(--foreground) / 0.05);
    display: flex;
    flex-direction: column;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px hsla(var(--foreground) / 0.08);
}

.process-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    margin-bottom: 1rem; /* 16px */
}

.process-card-icon {
    color: hsl(var(--foreground));
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
}

.process-card-number {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.process-card-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: hsl(var(--foreground));
}

.process-card-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    flex-grow: 1; /* Ensures cards have same height */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.process-card-arrow {
    color: hsl(var(--border));
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* === NEW: Styles for scroll-triggered animations === */
[data-animate] {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(30px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}
