* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: #1a252f;
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.logo a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    background: linear-gradient(to right, #aa00ff, #0015ff, #1b9400, #ffae00, #ff0000, #ffae00, #1b9400, #0015ff, #aa00ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
    position: relative;
    top: -3px;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

@media (min-width: 350px) and (max-width:390px) {
    .nav-links a {
        margin: 0 0 0 10px;
    }

    .site-header {
        padding: 5px 10px;
    }
}

@media (min-width: 300px) and (max-width:350px) {
    .nav-links a {
        font-size: small;
        margin: 0 0 0 10px;
    }

    .logo {
        gap: 0;
    }

    .logo a span {
        font-size: 1.2rem;
    }

    .site-header {
        padding: 5px 10px;
    }
}



.container {
    max-width: 1000px;
    width: 100%;
    margin: 30px 5px 0 5px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color:blue;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0 5px;
}

header p {
    color: black;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 8px;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 30, 90, 0.4);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
}

.input-section {
    padding: 40px;
    flex: 1;
    background: white;
}

.input-section h2 {
    color: #1a2a6c;
    margin-bottom: 25px;
    font-size: 2rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #2d388a;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #d0e1ff;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #4a5fc1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 95, 193, 0.2);
}

.btn-calculate {
    background: linear-gradient(to right, #2d388a, #4a5fc1);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 95, 193, 0.4);
}

.btn-calculate:hover {
    background: linear-gradient(to right, #4a5fc1, #2d388a);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(74, 95, 193, 0.6);
}

.result-section {
    padding: 40px;
    flex: 1;
    background: linear-gradient(to bottom right, #2d388a, #4a5fc1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.result-content {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.triangle-area {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.unit {
    font-size: 1.2rem;
    color: #e0f7ff;
}

.formula-display {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.1rem;
}

.visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 120px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.triangle::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -20px;
    color: white;
}

.side-labels {
    color: white;
    position: relative;
    height: 120px;
    width: 150px;
}

.side-a {
    position: absolute;
    bottom: 10px;
    left: 30px;
}

.side-b {
    position: absolute;
    top: 50px;
    right: 0;
    transform: rotate(-30deg);
}

.side-c {
    position: absolute;
    top: 10px;
    left: 50px;
    transform: rotate(25deg);
}

footer {
    text-align: center;
    margin-top: px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

footer p a {
    color: dodgerblue;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .calculator-card {
        flex-direction: column;
    }

    header h1 {
        font-size: 2.5rem;
    }
}

.seo-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1rem;
  color: #212529;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #4361ee;
  margin-bottom: 20px;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 10px;
}

.seo-section h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3f37c9;
}

.seo-section p {
  margin-bottom: 15px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ul li {
  margin-bottom: 10px;
}

.seo-section ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ol li {
  margin-bottom: 10px;
}

.seo-section strong {
  color: #4361ee;
}

.seo-section a {
  color: #3f37c9;
  text-decoration: underline;
}

.seo-section a:hover {
  text-decoration: none;
}
