/**
 * Deejoya Software Ltd. - Main Stylesheet
 * 
 * This stylesheet contains all the visual styling for the Deejoya Software Ltd.
 * company landing page. It includes layout, typography, color schemes, and
 * responsive design rules for optimal viewing across devices.
 * 
 * @author Deejoya Software Ltd.
 * @version 1.0.0
 */

/* ========================================================================
   Base Styles & Typography
   ======================================================================== */

/**
 * Base body styles
 * Reset default margins and set global font properties
 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ========================================================================
   Header Section
   ======================================================================== */

/**
 * Main header styling with brand color background
 * Creates an impactful hero section with centered content
 */
header {
  background: #520099;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

/**
 * Main heading in the header
 * Large, prominent company name display
 */
header h1 {
  margin: 0;
  font-size: 2.8em;
}

/**
 * Header tagline/subtitle
 * Secondary message beneath the main heading
 */
header p {
  font-size: 1.2em;
}

/* ========================================================================
   Navigation Bar
   ======================================================================== */

/**
 * Fixed navigation bar
 * Stays at the top of the viewport during scrolling
 * Semi-transparent dark background for overlay effect
 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  z-index: 100;
}

/**
 * Navigation links
 * Clean, minimal styling with proper spacing
 */
nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/**
 * Navigation link hover effect
 * Subtle opacity change for better user feedback
 */
nav a:hover {
  opacity: 0.8;
}

/* ========================================================================
   Content Sections
   ======================================================================== */

/**
 * Standard section container
 * Provides consistent padding and centered content with max-width
 * for optimal readability on large screens
 */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

/**
 * Section headings
 * Consistent styling for all major section titles
 */
section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #520099;
}

/* ========================================================================
   Services Section
   ======================================================================== */

/**
 * Services container
 * Holds individual service items
 */
.services {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/**
 * Individual service item card
 * Bordered box with hover animation for interactivity
 */
.services .item {
  border: 1px solid #ddd;
  padding: 20px;
  margin: 10px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 5px;
  background: #fff;
}

/**
 * Service item hover effect
 * Slight scale increase and shadow for depth
 */
.services .item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/**
 * Service item headings
 * Styled for clear hierarchy
 */
.services .item h3 {
  color: #520099;
  margin-top: 0;
}

/* ========================================================================
   Projects Section
   ======================================================================== */

/**
 * Projects container using flexbox
 * Responsive grid layout that wraps on smaller screens
 */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

/**
 * Individual project card
 * Fixed width with hover animation
 */
.projects .item {
  width: 300px;
  border: 1px solid #ddd;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 5px;
  background: #fff;
}

/**
 * Project item hover effect
 * Matches service items for consistency
 */
.projects .item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/**
 * Project item headings
 * Consistent brand color application
 */
.projects .item h4 {
  color: #520099;
  margin-top: 0;
  font-size: 1.3em;
}

/* ========================================================================
   Contact Form Section
   ======================================================================== */

/**
 * Contact form container
 * Provides structure for form layout
 */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
}

/**
 * Form input fields and textarea
 * Consistent styling for all form elements
 */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 1em;
}

/**
 * Input field focus state
 * Provides visual feedback when user interacts with form
 */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #520099;
  box-shadow: 0 0 5px rgba(82, 0, 153, 0.3);
}

/**
 * Form submit button
 * Clear call-to-action styling
 */
.contact-form button {
  padding: 10px 20px;
  background: #004a99;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
  transition: background 0.3s ease;
}

/**
 * Button hover effect
 * Darker shade for interactive feedback
 */
.contact-form button:hover {
  background: #003366;
}

/* ========================================================================
   Footer
   ======================================================================== */

/**
 * Page footer
 * Dark background with centered copyright information
 */
footer {
  background: #222;
  color: #aaa;
  padding: 30px 20px;
  text-align: center;
}

/**
 * Footer text
 * Subtle styling for legal/copyright text
 */
footer p {
  margin: 10px 0;
}

/* ========================================================================
   Responsive Design - Mobile Optimization
   ======================================================================== */

/**
 * Mobile-specific styles
 * Adjusts layout for screens 600px and smaller
 */
@media (max-width: 600px) {
  /**
   * Makes header text more readable on small screens
   */
  header h1 {
    font-size: 2em;
  }

  /**
   * Reduces header padding for mobile
   */
  header {
    padding: 60px 20px;
  }

  /**
   * Stacks project cards vertically on mobile
   */
  .projects .item {
    width: 100%;
  }

  /**
   * Adjusts section headings for mobile
   */
  section h2 {
    font-size: 1.6em;
  }

  /**
   * Reduces section padding on mobile
   */
  section {
    padding: 40px 15px;
  }
}

/**
 * Tablet-specific styles
 * Optimizes layout for medium-sized screens
 */
@media (min-width: 601px) and (max-width: 900px) {
  /**
   * Two-column layout for project cards on tablets
   */
  .projects .item {
    width: 45%;
  }
}

