* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --git-color: #f05033;
}

body {
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
}

.logo span {
    color: var(--accent);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    gap: 1rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    color: var(--primary);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.nav-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: var(--git-color);
}

.nav-tab.prev {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.nav-tab.next {
    background: linear-gradient(135deg, var(--git-color), #e74c3c);
    color: white;
}

/* ===== ADD THIS: Target Tamil "அடுத்தது" tabs ===== */
.nav-tab.அடுத்தது {
    background: linear-gradient(135deg, var(--git-color), #e74c3c) !important;
    color: white !important;
}

.nav-tab.அடுத்தது:hover {
    border-color: var(--git-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* ===== ADD THIS: Target Hindi "अगला" tabs (for consistency) ===== */
.nav-tab.अगला {
    background: linear-gradient(135deg, var(--git-color), #e74c3c) !important;
    color: white !important;
}

.nav-tab.अगला:hover {
    border-color: var(--git-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.nav-tab i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.nav-tab:hover i {
    transform: translateX(-3px);
}

.nav-tab.next:hover i,
.nav-tab.அடுத்தது:hover i,
.nav-tab.अगला:hover i {
    transform: translateX(3px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--git-color), #6e5494);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin: 4rem 0 2.5rem;
    color: var(--dark);
    position: relative;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--git-color);
    margin: 10px auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s ease-out;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.content-section h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--git-color);
    display: inline-block;
}

.content-section h3 {
    color: var(--git-color);
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-section li:before {
    content: '▸';
    color: var(--git-color);
    position: absolute;
    left: 0;
}

/* Attractive Tip Box */
.tip-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left: 6px solid #ffd700;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out;
}

.tip-box:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
}

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.tip-box h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.tip-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.tip-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Code Example */
.code-example {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.code-example h3 {
    color: var(--git-color);
    margin-bottom: 1rem;
}

.code-example pre {
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    white-space: pre-wrap;
}

.command-input {
    color: #8be9fd;
}

.command-output {
    color: #50fa7b;
}

/* Platform Selector */
.platform-selector {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.platform-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 10px 20px;
    background: var(--light);
    border: 2px solid var(--git-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.platform-btn.active {
    background: var(--git-color);
    color: white;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
    gap: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .bottom-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h2 {
        font-size: 2.2rem;
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .platform-buttons {
        flex-direction: column;
    }
    
    .tip-box {
        padding: 1.5rem;
    }

    /* Add padding to logo for mobile to prevent home icon overlap */
    .logo h1 {
        padding-right: 60px;
        font-size: 1.4rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
        padding-right: 50px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Home Icon Styles - Clean and Simple */
.home-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--git-color), #e74c3c);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.home-icon:hover {
    background: linear-gradient(135deg, #e74c3c, var(--git-color));
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    color: white;
}

.home-icon:active {
    transform: scale(1.05);
}

/* Responsive Home Icon */
@media (max-width: 768px) {
    .home-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 15px;
        right: 15px;
        border-width: 1.5px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .home-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 12px;
        right: 12px;
        border-width: 1px;
    }
}

/* Exercise Styles - Added to main CSS */
.exercise-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin: 2rem 0;
}

.exercise-icon {
    margin-right: 10px;
}

.exercise-box h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.5;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.option-card[data-correct="true"] {
    border-color: #28a745;
}

.option-card[data-correct="false"] {
    border-color: #dc3545;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-text {
    flex: 1;
    font-size: 0.95rem;
}

.option-feedback {
    margin-left: 1rem;
    font-weight: bold;
    display: none;
    font-size: 0.85rem;
    text-align: right;
    min-width: 200px;
}

.correct {
    color: #28a745;
}

.incorrect {
    color: #dc3545;
}

.option-card:hover .option-feedback {
    display: block;
}

/* Additional utility classes for tutorial pages */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-left: 4px solid var(--git-color);
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.comparison-header i {
    font-size: 1.5rem;
    color: var(--git-color);
}

.comparison-header h4 {
    margin: 0;
    color: var(--dark);
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.code-column h4 {
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--git-color);
    font-size: 1.1rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-left: 4px solid var(--git-color);
}

.example-card:hover {
    transform: translateY(-5px);
}

.example-icon {
    font-size: 2rem;
    color: var(--git-color);
    margin-bottom: 1rem;
}

.example-section {
    margin-bottom: 3rem;
}

.example-section h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--git-color);
}

.warning-box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-left: 6px solid #ff9ff3;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out;
}

.warning-box:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
}

.warning-box h4 {
    color: #ff9ff3;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.warning-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: var(--git-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.best-practice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.practice-item:hover {
    transform: translateX(5px);
}

.practice-item.positive {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

.practice-item.negative {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.practice-item i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.practice-item.positive i {
    color: #28a745;
}

.practice-item.negative i {
    color: #dc3545;
}

/* Responsive adjustments for exercise sections */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .option-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-feedback {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: left;
        min-width: auto;
    }
    
    .code-comparison {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .practice-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
}