/* Base styles and variables */
:root {
    --primary-color: #2c3e50;
    --microsoft-blue: #0078d4; /* Official Microsoft blue */
    --adobe-red: #fa0f00; /* Official Adobe red */
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --presentation-color: #27ae60; /* Green for presentations */
    --background-color: #f9f9f9;
    --text-color: #333;
    --light-text: #777;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background-color);
    max-height: 1440px;
    overflow-y: auto;
    font-size: 0.88rem; /* Reduced from 0.95rem */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem; /* Reduced from 1rem */
    max-height: 1440px;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 1.5rem; /* Reduced from 2rem */
    text-align: center;
    margin-bottom: 0.7rem; /* Reduced from 1rem */
    position: relative;
}

/* Header */
header {
    margin-bottom: 0.5rem; /* Reduced from 1rem */
}

.profile-header {
    text-align: center;
    padding: 0.2rem 0; /* Reduced from 0.5rem 0 */
    position: relative;
}

.profile-header:after {
    content: '';
    display: block;
    width: 90px; /* Reduced from 120px */
    height: 2px;
    background: linear-gradient(to right, var(--adobe-red), var(--microsoft-blue));
    margin: 0.7rem auto 0; /* Reduced from 1rem */
    border-radius: 2px;
}

.profile-header h1 {
    font-size: 1.6rem; /* Reduced from 2.2rem */
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

/* This CSS snippet only changes the subtitle styling for better accessibility */
.profile-header .subtitle {
    font-size: 1rem; /* Reduced from 1.2rem */
    color: #333;
    margin-top: 0.15rem; /* Reduced from 0.25rem */
    font-weight: 500;
}

/* Main content */
main {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.7rem; /* Reduced from 1rem */
    margin-bottom: 0.7rem; /* Reduced from 1rem */
    overflow-y: auto;
    max-height: 1200px;
}

/* Certifications section */
.cert-group {
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.cert-group h2 {
    font-size: 1.1rem; /* Reduced from 1.4rem */
    color: var(--primary-color);
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    padding-bottom: 0.15rem; /* Reduced from 0.25rem */
    border-bottom: 2px solid var(--secondary-color);
}

.microsoft-group h2 {
    color: var(--microsoft-blue);
    border-bottom: 2px solid var(--microsoft-blue);
}

.adobe-group h2 {
    color: var(--adobe-red);
    border-bottom: 2px solid var(--adobe-red);
}

.cert-subheading {
    font-size: 0.95rem; /* Reduced from 1.1rem */
    color: var(--primary-color);
    margin: 0.7rem 0 0.3rem; /* Reduced margins */
    opacity: 0.8;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Reduced min width */
    gap: 0.6rem; /* Reduced from 1rem */
    margin-bottom: 0.7rem; /* Reduced from 1rem */
}

.cert-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.cert-item-link:hover {
    transform: translateY(-3px); /* Reduced from -5px */
}

.cert-item {
    padding: 0.5rem; /* Reduced from 0.75rem */
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color); /* Reduced from 4px */
    background-color: rgba(52, 152, 219, 0.04); /* Slightly lighter */
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem; /* Reduced from 0.75rem */
    height: 100%;
}

.cert-item:hover {
    box-shadow: var(--box-shadow);
    background-color: rgba(52, 152, 219, 0.08); /* Slightly lighter */
}

/* Microsoft certification cards */
.microsoft-group .cert-item {
    border-left: 3px solid var(--microsoft-blue);
    background-color: rgba(0, 120, 212, 0.04);
}

.microsoft-group .cert-item:hover {
    background-color: rgba(0, 120, 212, 0.08);
}

.microsoft-group .cert-item h3 {
    color: var(--microsoft-blue);
}

/* Adobe certification cards */
.adobe-group .cert-item {
    border-left: 3px solid var(--adobe-red);
    background-color: rgba(250, 15, 0, 0.04);
}

.adobe-group .cert-item:hover {
    background-color: rgba(250, 15, 0, 0.08);
}

.adobe-group .cert-item h3 {
    color: var(--adobe-red);
}

/* Presentation section */
.presentation-group h2 {
    color: var(--adobe-red);
    border-bottom: 2px solid var(--adobe-red);
}

.presentation-group .cert-item {
    border-left: 3px solid var(--adobe-red);
    background-color: rgba(250, 15, 0, 0.04);
}

.presentation-group .cert-item:hover {
    background-color: rgba(250, 15, 0, 0.08);
}

.presentation-group .cert-item h3 {
    color: var(--adobe-red);
}

.presentation-details {
    font-size: 0.7rem; /* Reduced from 0.75rem */
    color: var(--light-text);
    margin-top: 0.15rem; /* Reduced from 0.25rem */
    font-style: italic;
}

.presentation-group .cert-badge img {
    width: 65px; /* Reduced from 85px */
    border-radius: var(--border-radius);
}

.cert-content {
    flex: 1;
}

.cert-badge {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.cert-badge img {
    width: 65px; /* Reduced from 85px */
    height: auto;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    display: block;
    object-fit: contain;
}

.cert-badge img:hover {
    transform: scale(1.04); /* Reduced from 1.05 */
}

.cert-item h3 {
    font-size: 0.88rem; /* Reduced from 1rem */
    margin-bottom: 0.15rem; /* Reduced from 0.25rem */
}


.cert-date, .cert-expiry, .cert-renewal {
    font-size: 0.68rem; /* Reduced from 0.75rem */
    color: var(--light-text);
    margin-top: 0.15rem; /* Reduced from 0.25rem */
}

/* Footer */
footer {
    text-align: center;
    padding-top: 0.5rem; /* Reduced from 0.75rem */
    border-top: 1px solid #eee;
}

.social-links {
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    display: flex;
    justify-content: center;
    gap: 0.5rem; /* Reduced from 0.75rem */
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.3rem 0.6rem; /* Reduced from 0.4rem 0.75rem */
    border-radius: 50px;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    font-size: 0.8rem; /* Reduced from 0.85rem */
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.social-links .employer-link {
    background-color: #a100ff;
    color: white;
}

.social-links .employer-link:hover {
    background-color: #7600b8;
}

.social-links i {
    margin-right: 0.3rem; /* Reduced from 0.5rem */
    font-size: 1rem; /* Reduced from 1.1rem */
}

.copyright {
    font-size: 0.7rem; /* Reduced from 0.8rem */
    color: var(--light-text);
}

/* Home link in header */
.home-link {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0.2rem;
}

.home-link a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-link a:hover {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

/* Landing page specific styles */
.landing-welcome .landing-intro {
    padding: 0.5rem;
    background-color: rgba(52, 152, 219, 0.04);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
}

.landing-welcome .landing-intro p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.landing-welcome .landing-intro p:last-child {
    margin-bottom: 0;
}

.landing-nav-item {
    border-left: 3px solid var(--secondary-color) !important;
    background-color: rgba(52, 152, 219, 0.04) !important;
}

.landing-nav-item:hover {
    background-color: rgba(52, 152, 219, 0.08) !important;
}

.landing-nav-item h3 {
    color: var(--secondary-color) !important;
}

.landing-nav-item h3 i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

/* Specific colors for different landing nav items */
.accenture-item {
    border-left: 3px solid #a100ff !important;
    background-color: rgba(161, 0, 255, 0.04) !important;
}

.accenture-item:hover {
    background-color: rgba(161, 0, 255, 0.08) !important;
}

.accenture-item h3 {
    color: #a100ff !important;
}

.linkedin-item {
    border-left: 3px solid #0077b5 !important;
    background-color: rgba(0, 119, 181, 0.04) !important;
}

.linkedin-item:hover {
    background-color: rgba(0, 119, 181, 0.08) !important;
}

.linkedin-item h3 {
    color: #0077b5 !important;
}

.github-item {
    border-left: 3px solid #333 !important;
    background-color: rgba(51, 51, 51, 0.04) !important;
}

.github-item:hover {
    background-color: rgba(51, 51, 51, 0.08) !important;
}

.github-item h3 {
    color: #333 !important;
}

/* Blog page specific */
.blog-coming-soon .landing-intro {
    padding: 1rem;
    background-color: rgba(52, 152, 219, 0.04);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
}

.blog-coming-soon .landing-intro p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.blog-coming-soon .landing-intro p:last-child {
    margin-bottom: 0;
}

.blog-coming-soon .landing-intro a {
    color: var(--secondary-color);
    text-decoration: none;
}

.blog-coming-soon .landing-intro a:hover {
    text-decoration: underline;
}

/* Hero Work Section - Modern Card Design */
.hero-work-section {
    margin: 2rem 0;
    padding: 1rem 0;
}

.hero-title {
    font-size: 1.8rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
}

.hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--adobe-red), var(--microsoft-blue), #27ae60);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-color));
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.hero-card:hover::before {
    height: 6px;
}

.cert-card::before {
    background: linear-gradient(90deg, var(--adobe-red), var(--microsoft-blue));
}

.blog-card::before {
    background: linear-gradient(90deg, #27ae60, var(--secondary-color));
}

.hero-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), #3498db);
}

.cert-card .hero-icon {
    background: linear-gradient(135deg, var(--adobe-red), var(--microsoft-blue));
}

.blog-card .hero-icon {
    background: linear-gradient(135deg, #27ae60, var(--secondary-color));
}

.hero-card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.hero-card-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.hero-card-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adobe-badge {
    background: linear-gradient(135deg, var(--adobe-red), #ff4444);
}

.azure-badge {
    background: linear-gradient(135deg, var(--microsoft-blue), #0099ff);
}

.ai-badge {
    background: linear-gradient(135deg, #9b59b6, #e74c3c);
}

.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.topic-tag {
    padding: 0.2rem 0.6rem;
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.hero-card-footer {
    margin-top: auto;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.cert-card .card-action {
    color: var(--adobe-red);
}

.blog-card .card-action {
    color: #27ae60;
}

.coming-soon {
    color: var(--light-text) !important;
    font-style: italic;
}

.card-action i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.hero-card:hover .card-action i {
    transform: translateX(4px);
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-card {
        padding: 1.5rem;
        min-height: 240px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-card-header h3 {
        font-size: 1.1rem;
    }
}