/* Custom styles for new sections */
.hero {
    padding: 60px 0; /* Reduced padding */
    text-align: center;
    margin-bottom: 0;
    background-color: #333;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #aaa;
}

.hero-buttons {
    margin-top: 20px;
}

.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #0070f3;
    color: white;
}

.primary-btn:hover {
    background: #005cd9;
}

.secondary-btn {
    border: 1px solid #0070f3;
    color: #0070f3;
}

.secondary-btn:hover {
    background: rgba(0, 112, 243, 0.1);
}

/* Certifications Page Styles */
.certifications {
    padding: 40px 0; /* Reduced padding */
    background-color: #222;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px; /* Reduced margin */
}

.filter-btn {
    padding: 8px 16px;
    margin: 0 5px 10px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444;
    color: #ccc;
}

.filter-btn.active, .filter-btn:hover {
    background: #0070f3;
    color: white;
    border-color: #0070f3;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.cert-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    background-color: #2a2a2a;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.cert-image {
    height: 180px;
    overflow: hidden;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-info {
    padding: 20px;
}

.cert-info h3 {
    margin-top: 0;
    font-size: 18px;
    color: #eee;
}

.issuer, .date {
    margin: 5px 0;
    color: #aaa;
}

.category-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #1a3b62;
    color: #70b5ff;
    border-radius: 4px;
    font-size: 12px;
    margin: 8px 0;
}

.view-cert-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #0070f3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.view-cert-btn:hover {
    background: #005cd9;
}

/* Skills Page Styles */
.skills {
    padding: 40px 0; /* Reduced padding */
    background-color: #222;
}

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

.skills-category {
    margin-bottom: 30px;
}

.skills-category h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0070f3; /* Changed to blue */
    color: #eee;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Standard skill icon style for consistency */
.skill-item,
.skill-preview-item {
    position: relative;
    width: 64px; /* Consistent size */
    height: 64px; /* Consistent size */
    border-radius: 50%;
    background-color: #1a3b62;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible; /* Change from hidden to visible to show tooltip outside */
    margin-bottom: 0; /* Remove space previously used for name */
}

/* Update tooltip positioning */
.skill-item:after,
.skill-preview-item:after {
    content: attr(data-tooltip);
    position: fixed; /* Change from absolute to fixed */
    transform: translate(-50%, -100%); /* Center horizontally and position above */
    left: 50%;
    background: #0070f3;
    color: white; /* Ensure white text */
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    margin-top: -10px; /* Add some spacing from the skill icon */
}

/* Update arrow positioning */
.skill-item:before,
.skill-preview-item:before {
    content: '';
    position: fixed; /* Change from absolute to fixed */
    transform: translate(-50%, -100%);
    left: 50%;
    border-width: 8px;
    border-style: solid;
    border-color: #0070f3 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    pointer-events: none;
    margin-top: 15px; /* Position arrow below tooltip */
}

/* Show tooltip on hover */
.skill-item:hover:after,
.skill-item:hover:before,
.skill-preview-item:hover:after,
.skill-preview-item:hover:before {
    opacity: 1;
    visibility: visible;
    top: auto; /* Remove top positioning */
    bottom: 100%; /* Position relative to bottom of skill item */
}

/* Hide the permanent name display */
.skill-name,
.skill-preview-name {
    display: none;
}

/* Remove the old tooltip wrapper styling */
.skill-wrapper {
    display: none; /* Hide this as we're using pseudo-elements instead */
}

.skill-tooltip {
    display: none; /* Hide this as we're using pseudo-elements instead */
}

.skill-item i {
    font-size: 28px; /* Slightly larger for visibility */
    color: #70b5ff; 
}

.skill-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px; /* Padding for logo images */
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Resume Page Styles */
.resume-page {
    padding: 40px 0; /* Reduced padding */
    background-color: #222;
}

.resume-actions {
    margin-bottom: 20px; /* Reduced margin */
    text-align: right;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0070f3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #005cd9;
}

/* PDF Resume Viewer */
.resume-pdf-container {
    width: 100%;
    height: 100vh; /* or a fixed height like 800px, adjust as needed */
    border: none; /* Remove border if any */
}

/* Index Page Preview Sections */
.section-title {
    text-align: center;
    margin-bottom: 10px; /* Reduced margin */
    color: #eee;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px; /* Reduced margin */
    color: #aaa;
}

.see-more-container {
    text-align: center;
    margin-top: 20px; /* Reduced margin */
}

.see-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #0070f3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.see-more-btn:hover {
    background: #005cd9;
}

/* Skills Display in Home Page */
.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0; /* Reduced margin */
}

/* Make all skill preview items consistent with skill items */
.skill-preview-item i {
    font-size: 28px; /* Slightly larger for visibility */
    color: #70b5ff;
}

.skill-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px; /* Padding for logo images */
}

.skill-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Certifications Preview Section */
.certs-preview {
    padding: 40px 0; /* Reduced padding */
    background: #222;
}

.certs-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 20px auto; /* Reduced margin */
}

.cert-preview-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    background-color: #2a2a2a;
}

.cert-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.cert-preview-image {
    height: 160px;
    overflow: hidden;
}

.cert-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-preview-info {
    padding: 15px;
}

.cert-preview-info h3 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 10px;
    color: #eee;
}

/* Reduce spacing in projects section */
.fh5co-project {
    padding: 50px 0; /* Reduced padding */
}

.fh5co-project-inner {
    margin-bottom: 0; /* Remove bottom margin */
}

/* "What Makes Me Special" Section Styles */
.special-qualities {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.special-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-top: 3px solid #0070f3;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.special-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #0070f3;
}

.special-card h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 20px;
}

.special-card p {
    color: #aaa;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .special-card {
        margin-bottom: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .resume-pdf-container {
        height: 600px;
    }
    .fh5co-project {
        padding: 40px 0; /* Even more reduced on mobile */
    }
}

@media (max-width: 768px) {
    .resume-pdf-container {
        height: 500px;
    }
    
    .skills-row, 
    .certs-highlight, 
    .strengths-highlight {
        grid-template-columns: 1fr;
    }
    
    .cert-preview-image {
        height: 140px;
    }
    
    .fh5co-project {
        padding: 30px 0; /* Even more reduced on smaller screens */
    }
}

@media (max-width: 480px) {
    .resume-pdf-container {
        height: 400px;
    }
    
    .skill-item,
    .skill-preview-item {
        width: 50px;
        height: 50px;
        margin-bottom: 0; /* Remove bottom margin on mobile as well */
    }
    
    .skill-item:after,
    .skill-preview-item:after {
        font-size: 12px;
        padding: 5px 10px;
    }
}
