/* Global Styles */
:root {
    --primary-color: #DC2626;  /* Red-600 */
    --secondary-color: #111827;  /* Gray-900 - black */
    --text-color: #111827;  /* Gray-900 - black */
    --bg-color: #FFFFFF;  /* White */
    --hover-color: #B91C1C;  /* Red-700 */
    --border-color: #E5E7EB;  /* Gray-200 */
    --scrollbar-width: 8px;
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #DC2626;
    --scrollbar-thumb-hover: #B91C1C;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* Account for fixed navbar */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.navbar.visible {
    transform: translateY(0);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

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

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    z-index: 1000;
    transition: height 0.2s ease;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
}

/* Typewriter Animation */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end),
               blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Section */
.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 50%;
    margin-left: auto;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -60px;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: var(--hover-color);
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Contact Form */
#contact-form input,
#contact-form textarea {
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-content::before {
        left: -40px !important;
    }
}

/* Particles.js Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-info-card a {
    display: inline-block;
    word-break: break-all;
}

.contact-info-card i {
    transition: transform 0.3s ease;
}

.contact-info-card:hover i {
    transform: scale(1.1);
}

/* Skills Icons */
.skill-card i {
    color: var(--primary-color);
}

/* Project Links */
.project-card a {
    color: var(--primary-color);
}

.project-card a:hover {
    color: var(--hover-color);
}

/* Scroll Progress Indicator */
.scroll-progress {
    background: var(--primary-color);
}

/* Particles.js Color */
#particles-js {
    --particle-color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
}

/* Skills Icons */
.skill-card i {
    color: var(--primary-color);
}

/* Project Links */
.project-card a {
    color: var(--primary-color);
}

.project-card a:hover {
    color: var(--hover-color);
} 