/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #dc143c;
    --accent-color: #ff4444;
    --success-color: #dc143c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.2);
    --shadow-hover: 0 4px 20px rgba(220, 20, 60, 0.3);
    --gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #000000;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(50,50,50,0.8) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(220,20,60,0.4), 0 0 100px rgba(220,20,60,0.2), 0 0 150px rgba(220,20,60,0.1);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220,20,60,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image i {
    font-size: 120px;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(220,20,60,0.7), 0 0 60px rgba(220,20,60,0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.profile-info {
    text-align: left;
}

.profile-info h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.profile-info .title {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.profile-info .availability {
    font-size: 1.1em;
    margin-bottom: 25px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 350px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}

.contact-links i {
    width: 20px;
    text-align: center;
}

/* Section Styles */
.section {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220,20,60,0.2);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(220,20,60,0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220,20,60,0.2), transparent);
    transition: left 0.5s;
}

.section:hover::before {
    left: 100%;
}

.section:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(220,20,60,0.4);
    border-color: rgba(220,20,60,0.6);
}

.section h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), transparent);
    margin-left: 20px;
}

.section h2 i {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(220,20,60,0.5);
}

/* About Section */
.about p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

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

.skill-category h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-color: var(--accent-color);
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.timeline-date {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content .company {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 10px;
}

.timeline-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-used span {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
}

.project-type {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.project-card p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Education Section */
.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.education-header h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
}

.education-year {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.education-item p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.education-item ul {
    list-style: none;
    padding-left: 20px;
}

.education-item li {
    position: relative;
    margin-bottom: 8px;
    color: var(--text-color);
}

.education-item li::before {
    content: '▶';
    position: absolute;
    left: -20px;
    color: var(--secondary-color);
}

/* Looking For Section */
.looking-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.looking-content ul {
    list-style: none;
    margin-bottom: 25px;
}

.looking-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.looking-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.looking-content strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-content > p {
    grid-column: 1 / -1;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
}

/* Form Styles */
.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    border-color: var(--success-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

/* Success Message */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.success-message i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
    font-size: 1.2em;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-note {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-size: 200% 200%;
    }

    .container {
        padding: 0 15px;
    }

    .header {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info {
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2.2em;
    }

    .profile-info .availability {
        max-width: 300px;
        font-size: 1em;
        margin: 0 auto 25px auto;
    }

    .profile-image i {
        font-size: 80px;
    }

    .section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .section:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .section h2 {
        font-size: 1.6em;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-tags {
        justify-content: center;
    }

    .contact-content {
        display: block;
    }

    .contact-form {
        margin-bottom: 30px;
    }

    .contact-info {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.8em;
    }

    .profile-info .title {
        font-size: 1.2em;
    }

    .profile-image i {
        font-size: 60px;
    }

    .section {
        margin-bottom: 15px;
        padding: 20px 15px;
        border-radius: 15px;
    }

    .section h2 {
        font-size: 1.4em;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .contact-item {
        padding: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 0.9em;
    }
}

/* Animation Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Print Styles */
@media print {
    .header {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .section {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .contact-form,
    .submit-btn {
        display: none !important;
    }
}