/* CSS Custom Properties */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #7fb3d3;
    --dark-bg: #2d3436;
    --light-bg: #f8f9ff;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e6ff;
   
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background-color: var(--white);
    
   
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 0.75rem;
    border-radius: 6px;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: #e2b88f;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-link.active:hover {
    background-color: #5a6fd8;
    color: var(--white);
}

/* ===== MAIN CONTENT STYLES ===== */
.container {
    max-width: 1200px;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.header {
 
    color: var(--black);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    
}

.controls {
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 20px;
    border-bottom: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 2rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.control-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

select, input, textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

select {
    min-width: 200px;
    cursor: pointer;
}

input[type="text"] {
    flex: 1;
    min-width: 300px;
}

textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.style-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.style-btn {
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.style-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
   
}

.style-btn:hover::before {
    left: 0;
}


.style-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.style-btn span {
    position: relative;
    z-index: 1;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.preview-section {
    padding: 2.5rem;
    background: var(--white);
}

.preview-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 600;
}

.practice-sheet {
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 1.5rem 0;
   
    page-break-inside: avoid;
    transition: var(--transition);
}

.practice-sheet:hover {
    box-shadow: var(--shadow-hover);
}

.sheet-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.sheet-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.sheet-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sheet-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

.practice-line {
    margin-bottom: 1.5rem;
    position: relative;
}

.guide-lines {
    position: relative;
    height: 60px;
    border-bottom: 2px solid var(--text-dark);
    margin-bottom: 0.75rem;
}

.guide-lines::before {
    content: '';
    position: absolute;
    top: 62%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text-muted);
    border-top: 1px dashed var(--text-light);
}

.guide-lines.cursive::after {
    content: '';
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    border-top: 1px dotted #aaa;
}

.example-text {
    position: absolute;
    top: 0;
    left: 20px;
    line-height: 60px;
    color: var(--accent-color);
    pointer-events: none;
    opacity: 0.8;
}

.student-name {
    text-align: right;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.print-style {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cursive-style {
    font-family: 'Lucida Handwriting', cursive;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 1px;
}

.dnealian-style {
    font-family: 'Comic Sans MS', cursive;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 1px;
    transform: skew(-5deg);
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.letter-practice {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--light-bg);
    transition: var(--transition);
}

.letter-practice:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.letter-example {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-bg), #1e2124);
    color: #b8bcc8;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #b8bcc8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: var(--white);
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: #b8bcc8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.quick-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary-color);
}

.quick-links a:hover {
    color: var(--white);
    transform: translateX(15px);
    text-decoration: none;
}

.quick-links a:hover::before {
    opacity: 1;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #b8bcc8;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-info span {
    line-height: 1.5;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

.copyright p {
    margin: 0;
    padding: 0.5rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .container {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        min-height: auto;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .container {
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .header {
        padding: 2rem 1.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .controls {
        padding: 2rem 1.5rem;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .style-buttons {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    input[type="text"] {
        min-width: auto;
    }
    
    .preview-section {
        padding: 2rem 1.5rem;
    }
    
    .practice-sheet {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .alphabet-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .letter-practice {
        padding: 1rem;
    }
    
    .letter-example {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .controls, .preview-section {
        padding: 1.5rem 1rem;
    }
    
    .practice-sheet {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .quick-links a:hover {
        transform: translateX(10px);
    }
    
    .alphabet-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: var(--white);
        padding: 0;
    }
    
    .site-header,
    .site-footer,
    .controls,
    .preview-title {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        background: var(--white);
    }
    
    .practice-sheet {
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
        margin: 0;
        padding: 1rem;
        background: var(--white);
    }
    
    .preview-section {
        padding: 0;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.style-btn:focus,
select:focus,
input:focus,
textarea:focus,
.social-links a:focus,
.quick-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-header {
        border-bottom: 2px solid var(--text-dark);
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        border-color: var(--primary-color);
    }
    
    .practice-sheet {
        border: 2px solid var(--text-dark);
    }
}
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.content-container h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.content-container h2:first-child {
  margin-top: 0;
}

.content-container h3 {
  color: #34495e;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.content-container p {
  margin-bottom: 1rem;
  text-align: justify;
}

.highlight {
  background-color: #f39c12;
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
}

.feature-list {
  background-color: #ecf0f1;
  border-left: 4px solid #3498db;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.feature-list p {
  margin-bottom: 0;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  .content-container {
    padding: 1rem;
    margin: 0 1rem;
  }
  
  .content-container h2 {
    font-size: 1.5rem;
  }
  
  .content-container h3 {
    font-size: 1.2rem;
  }
  
  .content-container p {
    text-align: left;
  }
}