/* ===================================
   GLOBAL STYLES & RESET
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f5f7fa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   VISITOR COUNTER
   =================================== */

.visitor-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.counter-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.counter-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
}

.counter-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 60px;
    display: inline-block;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero .title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.certifications-mini {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.cert-badge {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.hero .contact-info,
.hero .social-links {
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1rem;
    font-size: 1rem;
}

.hero a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.hero a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

/* ===================================
   SECTIONS
   =================================== */

.section {
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    border-radius: 8px;
}

.section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* ===================================
   SKILLS GRID (Visual)
   =================================== */

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

.skill-badge {
    background: white;
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.skill-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.skill-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.skill-badge strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.skill-badge p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* ===================================
   CERTIFICATIONS
   =================================== */

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-list li:last-child {
    border-bottom: none;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.valid {
    background-color: #d4edda;
    color: #155724;
}

.badge.progress {
    background-color: #fff3cd;
    color: #856404;
}

/* ===================================
   PROJECTS
   =================================== */

.project {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project:hover {
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
    transform: translateX(5px);
}

.project.featured {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(to right, #fff5f5 0%, white 100%);
}

.project h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-meta {
    margin-bottom: 1rem;
}

.project-badge {
    background-color: #e74c3c;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-subtitle {
    background-color: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.project-subtitle strong {
    color: #2c3e50;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.project-link.live {
    background-color: #3498db;
    color: white;
}

.project-link.live:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.project-link.github {
    background-color: #2c3e50;
    color: white;
}

.project-link.github:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
}

.project ul {
    margin-left: 1.5rem;
}

.project li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* ===================================
   TECHNICAL SKILLS (Detailed)
   =================================== */

.skills {
    display: grid;
    gap: 1.5rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.skill-category h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.skill-category p {
    color: #555;
    margin: 0;
    text-align: left;
}

/* ===================================
   PROFESSIONAL EXPERIENCE
   =================================== */

.job {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.job:last-child {
    border-bottom: none;
}

.job h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.job-details {
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.job ul {
    margin-left: 1.5rem;
}

.job li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* ===================================
   EDUCATION
   =================================== */

.education {
    margin-bottom: 1rem;
}

.education h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.education p {
    color: #7f8c8d;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

/* ===================================
   CALL TO ACTION SECTION
   =================================== */

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem 2rem !important;
    border-radius: 12px !important;
    margin-left: -2rem !important;
    margin-right: -2rem !important;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.cta-button.primary {
    background-color: #3498db;
    color: white;
}

.cta-button.primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.cta-button.secondary {
    background-color: #2c3e50;
    color: white;
}

.cta-button.secondary:hover {
    background-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(44, 62, 80, 0.4);
}

.cta-button.tertiary {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

.cta-button.tertiary:hover {
    background-color: #bdc3c7;
    border-color: #95a5a6;
    transform: translateY(-3px);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid #ecf0f1;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 2rem;
}

footer p {
    margin: 0.3rem 0;
    text-align: center;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero .title {
        font-size: 1.1rem;
    }

    .certifications-mini {
        flex-direction: column;
        align-items: center;
    }

    .hero .contact-info .separator,
    .hero .social-links .separator {
        display: none;
    }

    .hero .contact-info,
    .hero .social-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section:nth-child(even) {
        padding: 1.5rem 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .cta-section {
        padding: 2rem 1rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

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

    .project-link {
        text-align: center;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .cert-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project {
        padding: 1.5rem;
    }

    .visitor-counter {
        padding: 0.8rem 1rem;
    }

    .counter-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .counter-number {
        font-size: 1.3rem;
    }

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

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .visitor-counter,
    .cta-section,
    .project-links {
        display: none;
    }

    .hero {
        background: white;
        color: #2c3e50;
        box-shadow: none;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .section:nth-child(even) {
        background: white;
    }

    a {
        color: #2c3e50;
        text-decoration: none;
    }

    .project {
        page-break-inside: avoid;
    }
}