/* Base Styles */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #666666;
  --background-color: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #888888;
  --text-color: #333333;
  --link-color: #000000;
  --link-hover-color: #666666;
  --border-color: #dddddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --container-padding: 20px;
  --section-spacing: 80px;
  --section-spacing-mobile: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* Base font size for rem units */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--link-hover-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Material Icons Styles */
.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  line-height: 1;
  font-size: 1.2rem; /* Increase base size */
}

/* Specific sizes for different contexts */
.card-features .material-symbols-rounded {
  color: var(--primary-color);
  width: 24px;
  height: 24px;
  font-size: 1.5rem; /* Increased size for card features */
  text-align: center;
}

.feature .material-symbols-rounded {
  color: var(--primary-color);
  font-size: 1.5rem; /* Increased size for features */
}

.social-icon .material-symbols-rounded {
  font-size: 1.4rem; /* Increased size for social icons */
}

/* Typography responsive scaling */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

p {
  margin-bottom: 1rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 50px);
}

.section-header h2 {
  color: var(--primary-color);
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-header h2:after {
  content: "";
  position: absolute;
  width: clamp(40px, 10vw, 80px);
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Header Styles */
header {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  margin-right: auto;
}

.logo h1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-color);
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: clamp(15px, 3vw, 30px);
}

nav ul li a {
  font-weight: 500;
  padding-bottom: 5px;
  position: relative;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width var(--transition-speed) ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

nav ul li a.active {
  font-weight: 600;
}

/* Enhanced Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  justify-content: center;
  align-items: center;
  transition: all var(--transition-speed) ease;
  position: relative;
  z-index: 1001;
  border: none;
}

.menu-toggle:hover {
  background-color: var(--medium-gray);
}

/* Enhanced Button Styles */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: clamp(10px, 2vw, 12px) clamp(15px, 3vw, 24px);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid var(--primary-color);
  text-align: center;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2vw, 16px);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #222;
  border-color: #222;
  color: white;
}

.btn-secondary:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.btn:active {
  transform: translateY(0);
}

/* Fix for app logos */
.app-logo {
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--transition-speed) ease;
  display: inline-block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

/* Fallback icons in case SVGs don't load */
.caledge-logo {
  background-image: url("../Assets/caledge-icon.svg");
  position: relative;
}

.caledge-logo::after {
  content: "calculate";
  font-family: "Material Symbols Rounded";
  font-size: 3.5rem;
  color: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.caledge-logo.fallback::after {
  opacity: 1;
}

/* Fixed Notex logo path to use correct relative path */
.notex-logo {
  background-image: url("../Assets/notex-icon.svg");
  position: relative;
}

.notex-logo::after {
  content: "note";
  font-family: "Material Symbols Rounded";
  font-size: 3.5rem;
  color: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.notex-logo.fallback::after {
  opacity: 1;
}

/* Added Codorb logo styles */
.codorb-logo {
  background-image: url("../Assets/codorb-icon.svg");
  position: relative;
}

.codorb-logo::after {
  content: "code";
  font-family: "Material Symbols Rounded";
  font-size: 3.5rem;
  color: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.codorb-logo.fallback::after {
  opacity: 1;
}

/* Enhanced Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: clamp(40px, 8vw, 60px) 0 clamp(15px, 3vw, 20px);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(25px, 5vw, 40px);
  margin-bottom: clamp(25px, 5vw, 40px);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(25px, 5vw, 40px);
}

.footer-section {
  flex: 1;
  min-width: 150px;
}

.footer-section h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: white;
  bottom: 0;
  left: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-social {
  flex: 1;
  min-width: 250px;
}

.footer-social h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-social h3:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: white;
  bottom: 0;
  left: 0;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(35px, 6vw, 40px);
  height: clamp(35px, 6vw, 40px);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific social icon hover colors */
.social-icon:hover .material-symbols-rounded {
  color: var(--primary-color);
}

/* Contact page social icons */
.contact-social .social-icon {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.contact-social .social-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-social .social-icon:hover .material-symbols-rounded {
  color: white;
}

.footer-social p {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Accessibility enhancements */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  :root {
    --section-spacing: 60px;
  }

  .app-details .container {
    flex-direction: column;
  }

  .app-card {
    max-width: 100%;
    position: static;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-info h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 992px) {
  :root {
    --section-spacing: 50px;
  }

  .card-container {
    gap: 30px;
  }

  .app-logo {
    width: 100px;
    height: 100px;
  }

  .card-icon {
    height: 100px;
  }

  .app-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .app-hero-text h1 {
    font-size: 2.2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 40px;
    --container-padding: 15px;
  }

  /* Enhanced Mobile Menu */
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--background-color);
    box-shadow: inset 0 5px 15px var(--shadow-color);
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 0;
    width: 100%;
  }

  nav ul li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 18px 20px;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    border-left: 4px solid transparent;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background-color: var(--light-gray);
    border-left-color: var(--primary-color);
    padding-left: 16px;
  }

  nav ul li a:after {
    display: none;
  }

  /* Overlay for mobile menu */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group .btn {
    width: 100%;
    margin-top: 10px;
  }

  /* Improve card layout for mobile */
  .card-container {
    grid-template-columns: 1fr;
  }

  .secondary-links {
    flex-direction: column;
    gap: 10px;
  }

  .secondary-links .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 30px;
    --container-padding: 10px;
  }

  nav {
    top: 50px;
    height: calc(100vh - 50px);
  }

  nav ul li a {
    padding: 15px 16px;
    font-size: 0.95rem;
  }

  .secondary-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .app-logo {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
  }

  .card-icon {
    height: auto;
    margin-bottom: 15px;
  }
}

@media (max-width: 400px) {
  .social-icon {
    width: 35px;
    height: 35px;
  }

  nav ul li a {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .newsletter,
  .feedback-section {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Update card feature icons to be smaller */
.card-features i.fas {
  color: var(--primary-color);
  font-size: 1.2rem; /* Reduced from 1.5rem */
  width: 20px; /* Reduced from 24px */
  text-align: center;
}

.feature i.fas {
  color: var(--primary-color);
  font-size: 1.2rem; /* Reduced from 1.5rem */
  width: 20px; /* Reduced from 24px */
  text-align: center;
  margin-right: 5px;
}

/* Update social icons */
.social-icon i.fab {
  font-size: 1.2rem;
}
