# HTML to Next.js Conversion - Agrivet Website

## Overview
Successfully converted the static HTML website from the `html` folder to a modern Next.js application with TypeScript and React components.

## What Was Converted

### Structure
- **HTML** → Next.js App Router pages
- **CSS** → Global styles with CSS modules support
- **JavaScript** → React components with TypeScript

### Components Created

1. **Layout Components**
   - `TopBar.tsx` - Top contact bar with social links
   - `Navbar.tsx` - Sticky navigation with mobile menu
   - `ClientScripts.tsx` - Client-side scroll reveal and smooth scrolling

2. **Section Components**
   - `Hero.tsx` - Hero section with gradient background and animations
   - `About.tsx` - About section with video player and image grid
   - `Apart.tsx` - "What Sets Us Apart" carousel with 10 cards
   - `Pillars.tsx` - Four pillars of philosophy section
   - `Leadership.tsx` - Leadership team grid (5 members)
   - `Offerings.tsx` - Services offerings grid (5 items)
   - `Insights.tsx` - Tabbed insights section with publications, participations, etc.

### Features Implemented

✅ **Responsive Design**
- Mobile-first approach
- Hamburger menu for mobile devices
- Responsive grids and layouts

✅ **Animations**
- Scroll reveal animations
- Fade-up animations on hero section
- Hover effects on cards and images
- Carousel auto-advance

✅ **Interactive Elements**
- Mobile menu toggle
- Video autoplay on scroll
- Carousel navigation (prev/next buttons)
- Tab switching in Insights section
- Smooth scroll to anchor links

✅ **Performance Optimizations**
- Next.js Image component for optimized images
- Font optimization with next/font
- Client-side rendering where needed
- Intersection Observer for scroll animations

## File Structure

```
frontend/
├── app/
│   ├── layout.tsx          # Root layout with fonts and global components
│   ├── page.tsx            # Home page composition
│   ├── globals.css         # All CSS styles from HTML
│   └── ClientScripts.tsx   # Client-side utilities
├── components/
│   ├── TopBar.tsx
│   ├── Navbar.tsx
│   ├── Hero.tsx
│   ├── About.tsx
│   ├── Apart.tsx
│   ├── Pillars.tsx
│   ├── Leadership.tsx
│   ├── Offerings.tsx
│   └── Insights.tsx
└── public/                 # Static assets
```

## Fonts Used

- **Cormorant Garamond** - Display font (headings, titles)
- **DM Sans** - Body font (paragraphs, UI elements)

## External Dependencies

- Font Awesome 6.5.0 (CDN) - Icons
- Google Fonts - Typography

## Running the Application

```bash
# Development mode
npm run dev

# Production build
npm run build
npm start

# Linting
npm run lint
```

## Browser Support

- Modern browsers (Chrome, Firefox, Safari, Edge)
- Mobile browsers (iOS Safari, Chrome Mobile)
- Responsive breakpoints: 380px, 540px, 640px, 768px, 1024px, 1200px

## Notes

- All images are loaded from external URLs (agrivet.in CDN)
- Video autoplay is muted by default for browser compatibility
- Smooth scrolling is enabled for anchor links
- Mobile menu uses fixed positioning with backdrop blur

## Future Enhancements

- Add contact form functionality
- Implement milestones and partners sections
- Add footer component
- Connect to Laravel backend API
- Add loading states and error boundaries
- Implement SEO metadata for all pages
