/* 
   Kimiya Razdar - Portfolio Styles
   AI Operations & IT Specialist
   Built with performance and accessibility in mind
*/

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

:root {
  --primary-blue: #5a67d8; 
  --accent-purple: #805ad5;
  --quirk-offset: 0.25rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #334155;
    line-height: 1.7;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   REUSABLE CARD CLASS
   ========================================================================== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Modifier for skill/progress bars */
.card--skill {
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Modifier for project overlay content */
.card--overlay {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-floating {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

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

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem 2rem; /* Add top padding here instead */
    position: relative;
}

.backdrop-blur {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
}

.hero-container {
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#typing-text {
    border-right: 2px solid #667eea;
    padding-right: 0.1rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.learning-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background: rgba(71, 85, 105, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(71, 85, 105, 0.4);
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
    border-radius: 0.5rem;
}

.form-input:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

.about-section,
.skills-section,
.projects-section,
.contact-section {
    padding: 5rem 0;
}

.skills-section,
.about-section {
    background: none; 
    padding: 5rem 0;
}

.skills-section .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

/* Section heading reuse with modifier */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Modifiers for white headings */
.section-heading--white {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-heading--white::after {
    background: white;
}

.skills-section .section-heading {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-section .section-heading::after {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.about-text,
.about-timeline {
    height: 100%;
}

.about-title,
.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.about-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 16px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, #667eea, rgba(102, 126, 234, 0.3));
}

.timeline-content h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-period {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ==========================================================================
   PROJECTS SECTION HEADING
   ========================================================================== */

.projects-section .section-heading {
    margin-bottom: 3rem;
    color: white;
}

.projects-section .section-heading::after {
    background: white;
}

/* ==========================================================================
   ABOUT & SKILLS SECTION - match width with hero
   ========================================================================== */

.about-section .content-wrapper,
.skills-section .content-wrapper {
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 2rem; 
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

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

.skill-category {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    width: 100%;         
    box-sizing: border-box;
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 160px 1fr 100px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

.skill-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
}

.skill-level {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-align: right;
}

.certifications-section {
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    padding-top: 2rem;
}

.certifications-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin-bottom: 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cert-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.cert-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
    text-align: center;
}

.cert-name {
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.cert-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

.cert-status.completed {
    background: #dcfce7;  
    color: #166534;       
}

.cert-status.near-completion {
    background: #dbeafe;  
    color: #1e40af;      
}

.cert-status.in-progress {
    background: #fef3c7; 
    color: #92400e;      
}

.cert-status.completed::before { content: "✓ "; }
.cert-status.near-completion::before { content: "↗ "; }
.cert-status.in-progress::before { content: "⏳ "; }
.cert-status:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    background: white;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #667eea;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-lessons { 
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.project-lessons strong {
    color: #667eea;
    font-weight: 600;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

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

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info,
.contact-form {
    height: 100%;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
}

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

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-submit {
    width: 100%;
}

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

.footer-section {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    
    .about-text,
    .about-timeline,
    .contact-info,
    .contact-form {
        padding: 1.5rem 1rem;
    }

    .nav-container {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
    width: 100%;
    max-width: 250px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
}

.stat-label {
    font-size: 0.95rem;
}

    .about-grid,
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
        max-width: 900px;
        margin: 0 auto;  
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-box {
        padding: 2rem 1.5rem;
    }
    
    .skills-section .container {
        padding: 2rem 1.5rem;
    }
    
    .skills-section .content-wrapper {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .skills-section .section-box {
    padding: 2rem 1rem;
    }

    .skill-category {
        padding: 0.75rem;  
    }
    
    .skills-grid {
        gap: 1rem;  
    }
    
    .cert-column {
        margin-bottom: 1.5rem;
    }

    .about-text,
    .about-timeline {
    padding: 1.5rem 1rem; 
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem 1rem; 
    }

}

@media (max-width: 480px) {

     .about-grid,
    .contact-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .nav-floating {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
    }

    .skill-item {
    grid-template-columns: 1fr; 
    gap: 0.5rem;
    text-align: left;
    }

    .skill-bar {
        width: 100%;
    }

    .skill-level {
        text-align: left;
    }

}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}