/* 
  Style for TAMIM YUSUF LIMITED (Digital Marketing Agency)
  Colors: White backgrounds, Soft gray sections, Purple gradients, Blue accents
  Design: Modern SaaS, Glassmorphism, Rounded corners
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --primary-color: #764ba2;
  --secondary-color: #00f2fe;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --bg-light: #ffffff;
  --bg-gray: #f8fafc;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--primary-gradient);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.2);
}

/* Header */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo span {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.nav-links .btn {
  color: var(--white);
  padding: 10px 24px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at top right, rgba(118, 75, 162, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(0, 242, 254, 0.1), transparent 40%);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg) translateY(0);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: var(--bg-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-gray);
  font-weight: 500;
}

/* Sections */
section {
  padding: 6rem 0;
}

.bg-gray {
  background: var(--bg-gray);
}

/* Services Cards (Glassmorphism) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover h3, .service-card:hover p, .service-card:hover a {
  color: var(--white);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.service-card .learn-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Features/Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.feature-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-content p {
  color: var(--text-gray);
}

/* Case Studies */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.case-study-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cs-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.cs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: var(--transition);
}

.case-study-card:hover .cs-img img {
  transform: scale(1.05);
}

.cs-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.cs-content {
  padding: 30px;
}

.cs-content h3 {
  margin-bottom: 15px;
}

.cs-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-gray);
}

.cs-stat {
  flex: 1;
}

.cs-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
}

.cs-stat-label {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: var(--bg-gray);
  opacity: 0.5;
}

.testimonial p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* CTA Section */
.cta-section {
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.cta-section h2, .cta-section p {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
}

.cta-section .btn {
  background: var(--white);
  color: var(--primary-color);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.cta-section .btn:hover {
  background: var(--bg-gray);
  transform: translateY(-2px);
}

/* Page Header */
.page-header {
  background: var(--bg-gray);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-gray);
}

/* Services Detailed */
.service-detail {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 6rem;
}

.service-detail:nth-child(even) {
  flex-direction: row-reverse;
}

.service-detail-img {
  flex: 1;
}

.service-detail-img img {
  box-shadow: var(--shadow-lg);
}

.service-detail-content {
  flex: 1;
}

.service-detail-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.service-detail-content p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.service-detail-content ul {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.service-detail-content li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dark);
  font-weight: 500;
}

.service-detail-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  padding-right: 40px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-text {
  color: var(--text-gray);
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-gray);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

#form-message {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: var(--radius-md);
  display: none;
  font-weight: 500;
}

.success-msg {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
  background: #0f172a;
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--white);
}

.footer-logo span {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-col p {
  color: #94a3b8;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  font-size: 0.9rem;
}

/* Text Pages (Privacy, Terms) */
.text-page {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}

.text-page h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.text-page p, .text-page ul {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.text-page ul {
  padding-left: 20px;
  list-style: disc;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-detail {
    flex-direction: column !important;
    gap: 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
