/* --- CSS Variables & Modern Palette --- */
:root {
    /* Main Brand Colors */
    --primary-color: #8b5cf6;  /* Vivid Violet (Buttons/Links) */
    --primary-hover: #7c3aed;  /* Darker Violet for hover states */
    
    /* Backgrounds */
    --bg-color: #f5f3ff;       /* Very Light Lavender Mist (Main Background) */
    --bg-light: #ffffff;       /* Pure White (Cards/Sections) */
    --navbar-bg: rgba(255, 255, 255, 0.9); /* Glassy White Nav */
    
    /* Text Colors - Critical for readability */
    --text-color: #1e1b4b;     /* Deep Indigo (Almost Black) for main text */
    --text-muted: #64748b;     /* Slate Blue-Grey for secondary text */
    --white: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7; /* Slightly more breathing room */
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

h1, h2, h3 { 
    color: var(--text-color); 
    margin-bottom: 1rem; 
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 2.25rem; margin-bottom: 3rem; text-align: center; }
h3 { font-size: 1.5rem; font-weight: 600; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    padding: 1.2rem 0;
    z-index: 1000;
    backdrop-filter: blur(6.5px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1); /* Subtle purple border */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text-color); 
    letter-spacing: 0px;
}

.nav-links { 
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	background-color: var(--bg-color);
	width: 100vw;
	height: 100vh;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	z-index: 999;
	gap: 2rem; 
}

.nav-links a{
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-color);
	transition: color 0.3s ease;
}

.nav-links a:hover{
		color: var(--primary-color);
}

.nav-links li{
	margin: 1rem;
}

.nav-links.active {
	display:flex;
}

/* --- Hamburger Menu --- */
.hamburger { 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Evenly spaces the lines automatically */
    width: 30px;
    height: 24px; /* A fixed height gives us perfect math for the X */
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px; 
    transition: all 0.3s ease-in-out;
    transform-origin: center; 
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #e0e7ff 0%, var(--bg-color) 70%); /* Subtle glow */
}

.highlight { 
    color: var(--primary-color); 
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 5px;
    left: 0;
    background-color: rgba(139, 92, 246, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.subtitle { 
    font-size: 1.35rem; 
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover { transform: translateY(-1.5px) translateX(1.5px); box-shadow: var(--shadow-lg); }

.primary { 
    background-color: var(--primary-color); 
    color: var(--white); 
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

.secondary { 
    background-color: transparent;
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
}

.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 16px; /* Softer corners */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
}

.project-card:hover { 
    transform: translateY(-6px) translateX(6px); 
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3); /* Purple glow on hover */
}

.card-image {
    height: 220px;
    background-color: #ddd6fe; /* Placeholder: Soft Purple */
    position: relative;
    overflow: hidden;
}

/* Creates a nice shimmer effect on placeholders */
.card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
}

.card-content { padding: 2rem; }

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-link { 
    display: inline-flex;
    align-items: center;
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 0.9rem;
}

.project-link:hover { color: var(--primary-hover); text-decoration: underline; }

/* --- Testimonial and Review Scroller --- */
.scroller {
	max-width: 95%;
	margin: 0 auto;
	overflow: hidden;
	padding: 2rem 0;
	-webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
	mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

.scroller-inner {
	display: flex;
	gap: 2rem;
	width: max-content;
	animation: scrollAnimation 50s linear infinite;
}

.scroller[data-animated="true"]:hover .scroller-inner,
.scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.testimonial-card {
	background-color: var(--bg-color);
	padding: 2rem;
	border-radius: 16px;
	width: 500px;
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(139, 92, 246, 0.1);
}

.testimonial-card p {
	color: var(--text-color);
	font-style: italic;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.testimonial-card h4 {
	color: var(--primary-color);
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

@keyframes scrollAnimation {
	to{
		transform: translateX(calc(-50% - 1rem));
	}
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    h1 { font-size: 2.5rem; }
    .cta-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn { width: 100%; text-align: center; }
	.ball {
		display: none;
	}
	
}