/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e7eefc;
    background-color: #08162f;
}

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

/* Navigation Styles */
.navbar {
    background-color: #0a1d3f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #12376f;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #12376f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0b1f4d;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #f3f7ff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0b1f4d 0%, #133b7a 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1c40f;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #12376f;
    color: #f3f7ff;
}

.btn-primary:hover {
    background-color: #1a4a92;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: #12376f;
    color: #f3f7ff;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #12376f;
    color: #2c5aa0;
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #f3f7ff;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #2c5aa0;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background-color: #08162f;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #c5d4f0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: #10254d;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.stat h3 {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #d7e3fb;
    font-weight: 500;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #08162f 0%, #12376f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.skills .container {
    position: relative;
    z-index: 2;
}

.skills .section-title {
    color: white;
}

.skills .section-title::after {
    background-color: #f1c40f;
}

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

.skill-category {
    background: rgba(10, 29, 63, 0.92);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 154, 219, 0.28);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #f1c40f, #2c5aa0);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.skill-category h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #f1c40f;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.profile-card {
    background: linear-gradient(135deg, #0f2647 0%, #114d68 100%);
    border: 1px solid rgba(108, 220, 255, 0.25);
    box-shadow: 0 20px 45px rgba(3, 16, 38, 0.35);
    max-width: 980px;
    margin: 0 auto;
}

.profile-contact,
.profile-role {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.profile-contact a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.profile-contact a:hover {
    text-decoration: underline;
}

.profile-contact a[href^="tel:"] {
    white-space: nowrap;
    display: inline-block;
}

.profile-role {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.profile-block {
    margin-top: 1.75rem;
    border-top: 1px solid rgba(151, 178, 228, 0.25);
    padding-top: 1.25rem;
}

.profile-block h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.profile-entry {
    margin-bottom: 1rem;
}

.entry-head {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.entry-subhead {
    color: #ffffff;
    margin-bottom: 0.7rem;
}

.profile-card ul {
    margin: 0 0 0.75rem 1.15rem;
    color: #ffffff;
}

.profile-card li {
    margin-bottom: 0.55rem;
}

.skill-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skill-item {
    background: linear-gradient(135deg, #0d2348 0%, #13305f 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #e7eefc;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

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

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

.skill-item:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%);
    color: white;
    border-color: #f1c40f;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.skill-item:nth-child(even):hover {
    background: linear-gradient(135deg, #143468 0%, #1a4a92 100%);
    color: #f3f7ff;
    border-color: #8db3ff;
}

/* Frontend Development Category */
.skill-category:nth-child(1) {
    border-left: 4px solid #61dafb; /* React blue */
}

.skill-category:nth-child(1) h3 {
    color: #61dafb;
}

/* Test Automation Category */
.skill-category:nth-child(2) {
    border-left: 4px solid #43a047; /* Green */
}

.skill-category:nth-child(2) h3 {
    color: #43a047;
}

/* Programming Languages Category */
.skill-category:nth-child(3) {
    border-left: 4px solid #ff6f00; /* Orange */
}

.skill-category:nth-child(3) h3 {
    color: #ff6f00;
}

/* API Testing Category */
.skill-category:nth-child(4) {
    border-left: 4px solid #9c27b0; /* Purple */
}

.skill-category:nth-child(4) h3 {
    color: #9c27b0;
}

/* Development Tools Category */
.skill-category:nth-child(5) {
    border-left: 4px solid #f44336; /* Red */
}

.skill-category:nth-child(5) h3 {
    color: #f44336;
}

/* Testing & QA Tools Category */
.skill-category:nth-child(6) {
    border-left: 4px solid #00bcd4; /* Cyan */
}

.skill-category:nth-child(6) h3 {
    color: #00bcd4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 2rem;
        margin-bottom: 1rem;
    }

    .profile-card {
        max-width: 100%;
    }

    .profile-contact {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Projects Section */
.projects {
    background-color: #08162f;
}

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

.project-card {
    background-color: #0a1d3f;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 154, 219, 0.2);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
    color: #2c5aa0;
    margin-right: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: #f3f7ff;
}

.project-description {
    color: #c5d4f0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-highlights {
    margin: 0 0 1.25rem 1.2rem;
    color: #d5e2f9;
}

.project-highlights li {
    margin-bottom: 0.6rem;
}

.project-runbook {
    background-color: #10254d;
    border: 1px solid rgba(120, 154, 219, 0.22);
    border-radius: 8px;
    padding: 0.9rem;
    margin: 0 0 1.25rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e7eefc;
    font-size: 0.88rem;
    line-height: 1.5;
}

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

.tech-tag {
    background-color: #143468;
    color: #dfeafe;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #1e3d72;
}

/* Test Artifacts Section */
.test-artifacts {
    background-color: #08162f;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.artifact-card {
    background-color: #0a1d3f;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.artifact-card:hover {
    transform: translateY(-5px);
}

.artifact-header {
    margin-bottom: 1rem;
}

.artifact-icon {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.artifact-card h3 {
    font-size: 1.3rem;
    color: #f3f7ff;
    margin-bottom: 1rem;
}

.artifact-card p {
    color: #c5d4f0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.artifact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #2c5aa0;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.artifact-link:hover {
    background-color: #1e3d72;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background-color: #08162f;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    color: #f3f7ff;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #d5e2f9;
}

.contact-item i {
    font-size: 1.2rem;
    color: #2c5aa0;
    margin-right: 1rem;
    width: 20px;
}

.contact-item a {
    color: #2c5aa0;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #24487e;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #0a1d3f;
    color: #f3f7ff;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #93abd8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #1e3d72;
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.form-status {
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out;
}

.form-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-status.info {
    background-color: #cce7ff;
    border: 1px solid #99d6ff;
    color: #004085;
}

.email-fallback {
    padding: 1rem;
    background-color: #0a1d3f;
    border-radius: 8px;
    border: 1px solid rgba(120, 154, 219, 0.2);
}

.email-fallback .btn {
    min-width: 200px;
}

.email-fallback .btn i {
    margin-right: 0.5rem;
}

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

/* Footer */
.footer {
    background-color: #061126;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f1c40f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0a1d3f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-card,
    .skill-category,
    .artifact-card {
        padding: 1.5rem;
    }
}

/* Enhanced Skills Animation */
.skills-appear {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.skills-appear.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category {
    animation-delay: calc(var(--delay) * 0.1s);
}

/* Floating animation for skill items */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.skill-item:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.skill-item:nth-child(even) {
    animation: float 6s ease-in-out infinite reverse;
    animation-delay: 0.5s;
}

/* Pause animation on hover */
.skill-category:hover .skill-item {
    animation-play-state: paused;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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