/* ========================================
   RESET AND BASE STYLES
   ======================================== */

/* CSS Reset - Removes default browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles */
body {
    font-family: 'Inter', sans-serif; /* Modern, clean font */
    line-height: 1.6; /* Improved readability */
    color: #333; /* Dark gray text for good contrast */
    background-color: #f8fafc; /* Light gray background */
}

/* Container for consistent page width and centering */
.container {
    max-width: 1200px; /* Maximum width for large screens */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Horizontal padding for mobile */
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Main header section with gradient background */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Purple to blue gradient */
    color: white; /* White text for contrast */
    padding: 80px 0; /* Vertical padding for spacious feel */
    text-align: center; /* Center align all content */
}

/* Main name/title styling */
.name {
    font-size: 3rem; /* Large, prominent font size */
    font-weight: 700; /* Bold weight for emphasis */
    margin-bottom: 10px; /* Space between name and tagline */
    letter-spacing: -0.02em; /* Slightly tighter letter spacing for modern look */
}

/* Professional tagline styling */
.tagline {
    font-size: 1.25rem; /* Medium font size */
    font-weight: 300; /* Light weight for elegance */
    opacity: 0.9; /* Slightly transparent for subtle effect */
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */

/* Main content area styling */
.main {
    padding: 60px 0; /* Vertical padding for content spacing */
}

/* Individual section styling */
.section {
    margin-bottom: 80px; /* Space between sections */
}

/* Section title styling with decorative underline */
.section-title {
    font-size: 2.5rem; /* Large, prominent font size */
    font-weight: 600; /* Semi-bold weight */
    margin-bottom: 40px; /* Space below title */
    color: #1a202c; /* Dark color for good contrast */
    text-align: center; /* Center align titles */
    position: relative; /* For decorative underline positioning */
}

/* Decorative underline for section titles */
.section-title::after {
    content: ''; /* Required for pseudo-element */
    position: absolute; /* Position relative to title */
    bottom: -10px; /* Position below the title */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Perfect centering */
    width: 60px; /* Width of underline */
    height: 4px; /* Height of underline */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Gradient underline */
    border-radius: 2px; /* Rounded corners */
}

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

/* About section content styling */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

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

/* Contact grid layout */
.contact-grid {
    display: grid; /* CSS Grid for responsive layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between contact items */
    max-width: 800px; /* Limit width for better layout */
    margin: 0 auto; /* Center the grid */
}

/* Individual contact item styling */
.contact-item {
    display: flex; /* Flexbox for icon and text alignment */
    align-items: center; /* Vertically center items */
    padding: 20px; /* Internal spacing */
    background: white; /* White background */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    text-decoration: none; /* Remove underline from links */
    color: #333; /* Text color */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    border: 1px solid #e2e8f0; /* Light border */
}

/* Hover effect for contact items */
.contact-item:hover {
    transform: translateY(-2px); /* Slight upward movement */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    border-color: #667eea; /* Highlight border color */
}

/* Icon styling within contact items */
.contact-item i {
    font-size: 1.5rem; /* Icon size */
    margin-right: 15px; /* Space between icon and text */
    color: #667eea; /* Icon color matching theme */
    width: 24px; /* Fixed width for alignment */
    text-align: center; /* Center icon */
}

/* Text styling within contact items */
.contact-item span {
    font-weight: 500; /* Medium font weight */
}

/* ========================================
   TIMELINE STYLES (Education & Experience)
   ======================================== */

/* Timeline container */
.timeline {
    max-width: 800px; /* Limit width for better readability */
    margin: 0 auto; /* Center the timeline */
}

/* Individual timeline item */
.timeline-item {
    position: relative; /* For positioning the timeline dot */
    padding: 30px 0; /* Vertical spacing */
    border-left: 3px solid #e2e8f0; /* Left border for timeline line */
    margin-left: 20px; /* Space for the timeline line */
}

/* Timeline dot indicator */
.timeline-item::before {
    content: ''; /* Required for pseudo-element */
    position: absolute; /* Position relative to timeline item */
    left: -8px; /* Position on the timeline line */
    top: 40px; /* Vertical position */
    width: 13px; /* Dot width */
    height: 13px; /* Dot height */
    border-radius: 50%; /* Make it circular */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Gradient background */
    border: 3px solid white; /* White border */
    box-shadow: 0 0 0 3px #e2e8f0; /* Outer shadow for depth */
}

/* Timeline content card */
.timeline-content {
    background: white; /* White background */
    padding: 25px; /* Internal spacing */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    margin-left: 20px; /* Space from timeline line */
    border: 1px solid #e2e8f0; /* Light border */
}

/* Timeline item title (e.g., job title, degree) */
.timeline-title {
    font-size: 1.5rem; /* Large font size */
    font-weight: 600; /* Semi-bold weight */
    color: #1a202c; /* Dark color */
    margin-bottom: 5px; /* Space below title */
}

/* Timeline item subtitle (e.g., company name, university) */
.timeline-subtitle {
    font-size: 1.1rem; /* Medium font size */
    font-weight: 500; /* Medium weight */
    color: #667eea; /* Theme color */
    margin-bottom: 5px; /* Space below subtitle */
}

/* Timeline item date */
.timeline-date {
    font-size: 0.9rem; /* Smaller font size */
    color: #718096; /* Light gray color */
    margin-bottom: 5px; /* Space below date */
    font-weight: 500; /* Medium weight */
}

/* Timeline item location */
.timeline-location {
    font-size: 0.9rem; /* Smaller font size */
    color: #718096; /* Light gray color */
    margin-bottom: 15px; /* Space below location */
    font-weight: 500; /* Medium weight */
    font-style: italic; /* Italic style for location */
}

/* Timeline item description */
.timeline-description {
    color: #4a5568; /* Medium gray for readability */
    line-height: 1.7; /* Good line spacing */
}

/* List styling within timeline descriptions */
.timeline-description ul {
    margin-left: 20px; /* Indent lists */
}

.timeline-description li {
    margin-bottom: 8px; /* Space between list items */
}

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

/* Projects grid layout */
.projects-grid {
    display: grid; /* CSS Grid for responsive layout */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive columns */
    gap: 30px; /* Space between project cards */
    max-width: 1000px; /* Limit width for better layout */
    margin: 0 auto; /* Center the grid */
}

/* Individual project card */
.project-card {
    background: white; /* White background */
    border-radius: 12px; /* Rounded corners */
    padding: 30px; /* Internal spacing */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    border: 2px solid #667eea; /* Blue border to match featured project */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

/* Featured project card (main project) */
.project-card.featured {
    border: 3px solid #667eea; /* Thicker border for main project */
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15); /* Enhanced shadow */
    position: relative; /* For potential badge positioning */
}

/* Hover effect for project cards */
.project-card:hover {
    transform: translateY(-4px); /* Slight upward movement */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
}

/* Project title styling */
.project-title {
    font-size: 1.4rem; /* Large font size */
    font-weight: 600; /* Semi-bold weight */
    color: #1a202c; /* Dark color */
    margin-bottom: 15px; /* Space below title */
}

/* Project description styling */
.project-description {
    color: #4a5568; /* Medium gray for readability */
    line-height: 1.7; /* Good line spacing */
    margin-bottom: 15px; /* Space below description */
}

/* Project technologies/status styling */
.project-tech {
    color: #667eea; /* Theme color for emphasis */
    font-size: 0.9rem; /* Smaller font size */
    line-height: 1.5; /* Good line spacing */
    margin-bottom: 20px; /* Space below tech info */
}

/* Project links container */
.project-links {
    display: flex; /* Flexbox for link alignment */
    gap: 15px; /* Space between links */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Individual project link styling */
.project-link {
    display: inline-flex; /* Inline flex for icon and text alignment */
    align-items: center; /* Vertically center items */
    padding: 8px 16px; /* Internal spacing */
    background: #f7fafc; /* Light background */
    color: #667eea; /* Theme color */
    text-decoration: none; /* Remove underline */
    border-radius: 6px; /* Rounded corners */
    font-size: 0.9rem; /* Small font size */
    font-weight: 500; /* Medium weight */
    transition: all 0.3s ease; /* Smooth transition */
    border: 1px solid #e2e8f0; /* Light border */
}

/* Hover effect for project links */
.project-link:hover {
    background: #667eea; /* Theme color background */
    color: white; /* White text */
    transform: translateY(-1px); /* Slight upward movement */
}

/* Icon styling within project links */
.project-link i {
    margin-right: 6px; /* Space between icon and text */
}

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

/* Footer styling */
.footer {
    background: #1a202c; /* Dark background */
    color: white; /* White text */
    text-align: center; /* Center align content */
    padding: 30px 0; /* Vertical padding */
    margin-top: 60px; /* Space above footer */
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */

/* Contact form container */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Contact form introduction text */
.contact-form-intro {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Contact form styling */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: left;
}

/* Form group container */
.form-group {
    margin-bottom: 25px;
}

/* Form labels */
.form-label {
    display: block;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

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

/* Form textarea */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
    resize: vertical;
    min-height: 120px;
}

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

/* Submit button */
.form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form status messages */
.contact-form-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.contact-form-status.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
    display: block;
}

.contact-form-status.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
    display: block;
}

.contact-form-status.loading {
    background: #ebf8ff;
    color: #2a4365;
    border: 1px solid #90cdf4;
    display: block;
}

/* ========================================
   TECH STACK SECTION
   ======================================== */

.tech-stack-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack-intro p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.tech-stack-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

.tech-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: fit-content;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tech-category-header i {
    color: #64b5f6;
    font-size: 1.5rem;
    background: rgba(100, 181, 246, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-category:hover .tech-category-header i {
    background: rgba(100, 181, 246, 0.2);
    transform: scale(1.1);
}

.tech-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.tech-item::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;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Tooltip styles */
.tech-item[data-tooltip] {
    position: relative;
}

.tech-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
}

.tech-item[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Tablet and smaller desktop screens */
@media (max-width: 768px) {
    /* Reduce header text sizes for better mobile fit */
    .name {
        font-size: 2.5rem; /* Smaller name size */
    }
    
    .tagline {
        font-size: 1.1rem; /* Smaller tagline size */
    }
    
    /* Reduce section title sizes */
    .section-title {
        font-size: 2rem; /* Smaller section titles */
    }
    

    
    /* Stack contact items in single column */
    .contact-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    
    /* Stack project cards in single column */
    .projects-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    
    /* Stack tech stack categories in single column */
    .tech-stack-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 1.5rem; /* Reduce gap on mobile */
    }
    
    /* Adjust tech stack intro for mobile */
    .tech-stack-intro {
        margin-bottom: 2rem;
    }
    
    .tech-stack-intro p {
        font-size: 1rem;
    }
    
    /* Adjust tech category padding for mobile */
    .tech-category {
        padding: 1.5rem;
    }
    
    /* Adjust timeline spacing for mobile */
    .timeline-item {
        margin-left: 10px; /* Reduce left margin */
    }
    
    .timeline-content {
        margin-left: 10px; /* Reduce left margin */
        padding: 20px; /* Reduce padding */
    }
    
    /* Contact form mobile adjustments */
    .contact-form {
        padding: 30px 20px; /* Reduce padding on mobile */
    }
    
    .contact-form-intro {
        font-size: 1rem; /* Smaller intro text */
        margin-bottom: 30px; /* Reduce margin */
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Reduce container padding */
    .container {
        padding: 0 15px; /* Smaller horizontal padding */
    }
    
    /* Reduce header padding */
    .header {
        padding: 60px 0; /* Smaller vertical padding */
    }
    
    /* Further reduce name size for small screens */
    .name {
        font-size: 2rem; /* Even smaller name size */
    }
    
    /* Reduce main content padding */
    .main {
        padding: 40px 0; /* Smaller vertical padding */
    }
    
    /* Reduce section spacing */
    .section {
        margin-bottom: 60px; /* Smaller space between sections */
    }
} 