/* 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: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    margin-top: 20px;
    text-align: center;
}

.header-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #24292e, #2f363d);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.header-github-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.header-github-btn:hover::before {
    left: 100%;
}

.header-github-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
    background: linear-gradient(45deg, #2f363d, #24292e);
}

.header-github-btn:active {
    transform: translateY(-1px);
}

/* Certification Section */
.certification-section {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.certification-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.certification-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 8px;
}

.certification-icon {
    font-size: 1.5em;
    animation: bounce 2s infinite;
}

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

.certification-header h3 {
    margin: 0;
    font-size: 1.2em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.certification-description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.course-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.course-link:hover::after {
    width: 100%;
}

.course-link:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

.certification-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.certification-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.certification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.certification-btn:hover::before {
    left: 100%;
}

.certification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-icon {
    font-size: 1.1em;
}

.btn-text {
    font-weight: 600;
}

/* Section Styles */
.section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

/* Notebook Features Section */
.notebook-features {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.notebook-features h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.notebook-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notebook-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.notebook-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

/* Notebooks Grid */
.notebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.notebook-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #667eea;
}

.notebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notebook-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.notebook-card .description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.notebook-card .features {
    margin-bottom: 15px;
}

.notebook-card .features ul {
    list-style: none;
    padding: 0;
}

.notebook-card .features li {
    padding: 5px 0;
    color: #555;
}

.notebook-card .features li:before {
    content: "✨ ";
    color: #667eea;
}

.notebook-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.skill-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.beginner {
    background: #d4edda;
    color: #155724;
}

.intermediate {
    background: #fff3cd;
    color: #856404;
}

.advanced {
    background: #f8d7da;
    color: #721c24;
}


/* Capstone Project Special Styling */
.capstone-card {
    border-left: 5px solid #ff6b6b !important;
    grid-column: 1 / -1;
}


/* Pipeline Section */
.pipeline-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 30px;
    border-radius: 15px;
    padding: 30px;
}

.pipeline-section h2 {
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.pipeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pipeline-step {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.pipeline-step h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.pipeline-step p {
    font-size: 0.9em;
    opacity: 0.9;
}


/* Explore More Projects Section */
.explore-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 30px 0;
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.explore-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.explore-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.explore-section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.explore-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.explore-btn:hover::before {
    left: 100%;
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.explore-btn:active {
    transform: translateY(-1px);
}

.explore-icon {
    font-size: 1.3em;
    animation: rocket 2s ease-in-out infinite;
}

@keyframes rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(-1px) rotate(5deg); }
}

.explore-text {
    font-weight: 600;
}

/* Key Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.features-grid h3 {
    margin-bottom: 15px;
    color: #333;
}

.features-grid ul {
    list-style: none;
    padding: 0;
}

.features-grid li {
    padding: 8px 0;
}

/* GitHub Star Button */
.github-star-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.github-star-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #24292e, #2f363d);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.github-star-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.github-star-btn:hover::before {
    left: 100%;
}

.github-star-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
    background: linear-gradient(45deg, #2f363d, #24292e);
}

.github-star-btn:active {
    transform: translateY(-1px);
}

.star-icon {
    font-size: 1.2em;
    animation: twinkle 2s ease-in-out infinite;
}

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

.star-text {
    font-weight: 600;
}


/* Footer */
.footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.footer h3 {
    margin-bottom: 15px;
    color: #333;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin-top: 20px;
}

/* Professional Footer */
.professional-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 30px 20px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ecf0f1;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.4);
}

.social-link.github:hover {
    background: rgba(36, 41, 46, 0.2);
    border-color: rgba(36, 41, 46, 0.4);
}

.social-link.portfolio:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-text {
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.project-links a:hover {
    color: #667eea;
}

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

.footer-bottom p {
    margin: 5px 0;
    color: #95a5a6;
    font-size: 0.85em;
}

.footer-tagline {
    font-style: italic;
    color: #7f8c8d !important;
}

/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 30px;
    }

    .header h1 {
        font-size: 3.5em;
    }

    .notebooks-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .notebooks-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .pipeline-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Small screens (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .header p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .badges {
        gap: 8px;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .notebooks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .notebook-card {
        padding: 20px;
    }

    .notebook-card h3 {
        font-size: 1.2em;
    }

    .pipeline-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pipeline-step {
        padding: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .explore-section {
        padding: 20px;
    }

    .explore-section h2 {
        font-size: 1.5em;
    }

    .explore-section p {
        font-size: 1em;
    }

    .explore-btn {
        padding: 12px 24px;
        font-size: 1em;
    }

    .footer {
        padding: 20px;
    }

    .professional-footer {
        padding: 30px 20px 15px;
        margin-top: 20px;
    }

    .footer-content {
        gap: 20px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .code-block pre {
        font-size: 0.8em;
        padding: 10px;
    }
}

/* Extra small screens (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 0.9em;
    }

    .section {
        padding: 15px;
    }

    .section h2 {
        font-size: 1.3em;
    }

    .notebook-card {
        padding: 15px;
    }

    .notebook-card h3 {
        font-size: 1.1em;
    }

    .pipeline-step {
        padding: 12px;
    }

    .pipeline-step h4 {
        font-size: 1em;
    }

    .pipeline-step p {
        font-size: 0.8em;
    }

    .badges {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .badge {
        width: fit-content;
        font-size: 0.75em;
        padding: 6px 12px;
    }

    .tech-stack {
        justify-content: center;
    }

    .features-grid ul {
        text-align: left;
    }

    .certification-section {
        padding: 15px;
        margin-top: 15px;
    }

    .certification-header {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .certification-icon {
        font-size: 1.4em;
    }

    .certification-header h3 {
        font-size: 1.1em;
    }

    .certification-description {
        font-size: 0.85em;
        text-align: center;
    }

    .certification-btn {
        padding: 8px 16px;
        font-size: 0.8em;
    }

    .professional-footer {
        padding: 25px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-link {
        padding: 8px 12px;
        font-size: 0.8em;
    }

    .project-links {
        align-items: center;
    }

    .explore-section {
        padding: 15px;
    }

    .explore-section h2 {
        font-size: 1.3em;
    }

    .explore-section p {
        font-size: 0.9em;
    }

    .explore-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .header h1 {
        font-size: 2.2em;
    }

    .notebooks-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .header,
    .section,
    .pipeline-section,
    .footer {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .notebook-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .pipeline-section {
        background: white;
        color: black;
    }

    .pipeline-step {
        background: #f8f9fa;
        backdrop-filter: none;
    }
}
