:root {
    --primary-blue: #4a90e2;
    --dark-blue: #2c5f8f;
    --light-gray: #f8f9fa;
    --text-gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.project-span {
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 600;
}

.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease; /* Add smooth transition */
}

/* New transparent navbar styles */
.navbar.transparent {
    background: transparent !important;
    box-shadow: none;
}

.navbar.transparent .navbar-brand {
    color: white !important;
}

.navbar.transparent .navbar-nav .nav-link {
    color: white !important;
}

.navbar.transparent .navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

.navbar.transparent .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.hero-section {
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%); */
    background: linear-gradient(90deg, rgba(0, 98, 185, .8), rgba(0, 98, 185, .9), rgba(0, 98, 185, .7)), url(../background/common-bg.svg);;
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 105px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-resume {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-resume:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.profile-image {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    opacity: 0.7;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.section-padding {
    padding: 50px 0 50px 0;
}

.section-padding-project {
    padding: 50px 0 10px 0;
}

.section-padding-achievement {
    padding: 50px 0 10px 0;
}

#achievements {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin: 20px 0px 60px 0px;
    font-size: 1.1rem;
    font-weight: 400;
}

.service-section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin: 20px 0px 35px 0px;
    color: #666;
}

.skill-category {
    /* border: 2px solid var(--primary-blue); */
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    position: relative;
    padding: 20px;
    margin-bottom: 25px;
}

.skill-category-header {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #f8f9fa;
    padding: 0 10px;
    font-weight: 700;
    font-size: 1.1rem;
    /* color: var(--primary-blue); */
    color: rgba(74, 144, 226, 0.6);
}

.skill-category-content {
    margin-top: 10px;
}

.skill-card {
    background: white;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 0px;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0px;
    color: var(--primary-blue);
}

.skill-name {
    font-weight: 600;
    color: #333;
}

#experience {
    background-color: #f8f9fa;

}

.experience-card-wrapper {
    padding: 0px 30px;
}

.experience-card {
    background: white;
    border-radius: 15px;
    padding: 20px 40px 20px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    min-height: 340px;
}

.experience-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* .experience-company {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 5px;
} */

.experience-company {
    
    background: rgba(74, 144, 226, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 5px;
    display: inline-block;
}

.experience-date {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.experience-span {
    color: var(--text-gray);
    font-weight: 600;
}

.experience-description {
    line-height: 1.8;
    color: #555;
}

.experience-description span {
    line-height: 1.8;
    color: #555;
    font-weight: 500;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-content {
    padding: 30px 30px 35px 30px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.project-tags {
    margin-bottom: 15px;
}

.project-tag {
    /* background: var(--primary-blue); */
    background: rgba(74, 144, 226, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 5px;
    display: inline-block;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-buttons {
    display: flex;
    gap: 15px;
}

/* Achievents */
.ach-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
    min-height: 520px;
}

.ach-card:hover {
    transform: translateY(-5px);
}

.ach-content {
    padding: 30px;
}

.ach-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.ach-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.ach-buttons {
    display: flex;
    gap: 15px;
}

.btn-ach {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ach-primary {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-ach-primary:hover {
    background: transparent;
    color: var(--primary-blue);
}

.btn-ach-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.ach-ach-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-project {
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-project-primary {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-project-primary:hover {
    background: transparent;
    color: var(--primary-blue);
}

.btn-project-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-project-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* Contact Section Styles */
.contact-info {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 0;
}

.btn-reveal {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.btn-reveal:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.contact-form-wrapper {
    padding: 40px 30px;
    border-radius: 15px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.otp-input-group {
    margin-bottom: 25px;
}

.otp-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    font-weight: 600;
}

.otp-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.otp-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-verify,
.btn-resend {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-verify:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-resend {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-resend:hover {
    background: var(--primary-blue);
    color: white;
}

.message {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .contact-form-wrapper,
    .contact-info {
        padding: 25px 20px;
    }
    
    .otp-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
#verificationSection {
    margin: 15px 0;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #e3f2fd;
}

.verification-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.verification-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verify-input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.verify-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-verify-send {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-verify-send:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.btn-verify-send:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.verification-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724;
}

.verification-success .verification-text {
    color: #155724;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #verificationSection {
        padding: 15px;
    }
    
    .verification-form {
        gap: 8px;
    }
    
    .verify-input,
    .btn-verify-send {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

.verification-step {
    min-height: 200px;
}

.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.message {
    margin-top: 10px;
}

#successStep i {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 0 10px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-description {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
}

.developer-illustration {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .project-buttons {
        flex-direction: column;
    }

    .ach-buttons {
        flex-direction: column;
    }
    
    /* Mobile hero section adjustments */
    .hero-section {
        min-height: 100vh;
        height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 40px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .profile-image {
        max-width: 200px;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .btn-resume {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Center align "Who I Am" and "My Skills" titles on mobile */
    #about h3 {
        text-align: center;
    }
    
    /* Fix skills layout on mobile */
    .skill-category {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .skill-category-header {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        min-width: 200px;
    }
    
    .skill-card {
        margin-bottom: 15px;
    }
    
    .skill-name {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Adjust skill grid for mobile */
    #about .col-3 {
        width: 33.333%;
        margin-bottom: 15px;
    }
    
    /* Improve skills layout for better mobile responsiveness */
    .skill-card {
        min-height: 85px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 6px;
    }
    
    .skill-name {
        font-size: 0.8rem;
        line-height: 1.3;
        text-align: center;
        word-wrap: normal;
        overflow-wrap: normal;
        white-space: nowrap;
        max-width: 100%;
    }
    
    /* Add spacing between Who I Am and My Skills sections on mobile */
    #about .col-lg-6:first-child {
        margin-bottom: 30px;
    }
    
    /* Make Who I Am section content justified on mobile */
    #about .col-lg-6:first-child p {
        text-align: justify;
        text-justify: inter-word;
    }
    
    /* Make work experience card descriptions justified on mobile */
    .experience-description p {
        text-align: justify;
        text-justify: inter-word;
    }
    
    /* Services section mobile adjustments */
    .service-section-subtitle {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px 15px;
        width: 100% !important;
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .services-wrapper {
        padding: 30px 20px;
        overflow: visible;
    }
    
    /* Experience section mobile adjustments */
    .section-subtitle {
        margin-top: 15px;
        margin-bottom: 30px;
    }
    
    .experience-card {
        padding: 20px 25px;
        min-height: auto;
    }
    
    .experience-role {
        margin-bottom: 15px;
    }
    
    .experience-date {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .experience-company {
        margin-right: 0;
        margin-bottom: 8px;
        display: block;
        width: fit-content;
    }
    
    .experience-date .experience-date {
        margin-bottom: 15px;
        display: block;
    }
    
    /* Force company and date to be on separate lines */
    .experience-date > div {
        display: block !important;
        margin-bottom: 6px;
    }
    
    .experience-date > div:last-child {
        margin-bottom: 12px;
    }
    
    /* Override any inline-block or flex properties */
    .experience-company {
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        width: fit-content !important;
    }
    
    .experience-date .experience-date {
        display: block !important;
        margin-bottom: 12px !important;
    }
    
    /* Force the container to use column layout */
    .experience-date {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    /* Fix project button stretching on mobile */
    .btn-project {
        width: 100px !important;
        display: inline-block !important;
        text-align: center !important;
        max-width: 100px !important;
    }
    
    .btn-project-outline {
        width: 100px !important;
        display: inline-block !important;
        max-width: 100px !important;
    }
    
    .project-buttons {
        text-align: center;
    }
    
    /* Fix mobile navbar appearance */
    .navbar-collapse {
        background: white !important;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        margin-top: 10px;
        padding: 15px;
    }
    
    .navbar-nav .nav-link {
        color: #333 !important;
        padding: 12px 15px !important;
        margin: 5px 0 !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(74, 144, 226, 0.1) !important;
        color: var(--primary-blue) !important;
    }
    
    .navbar-nav .nav-link.active {
        background: var(--primary-blue) !important;
        color: white !important;
    }
    
    /* Ensure navbar has proper styling from initial load */
    .navbar {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .navbar-brand {
        color: white !important;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.1);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Remove focus outline from navbar button on mobile */
    .navbar-toggler:focus,
    .navbar-toggler:focus-visible,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        background: rgba(255,255,255,0.1) !important;
    }
    
    /* Remove focus highlight from navigation items */
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:focus-visible,
    .navbar-nav .nav-link.active {
        background: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* Completely turn off ALL focus effects - stronger rules */
    .navbar-nav .nav-link,
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:focus-visible,
    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link.active {
        background: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }
    
    /* Override any Bootstrap or default focus styles */
    .navbar-nav .nav-link:focus-visible {
        background: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* MAXIMUM STRENGTH - Override ALL possible focus states */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.active:focus,
    .navbar-nav .nav-link.active:focus-visible,
    .navbar-nav .nav-link.active:hover,
    .navbar-nav .nav-link.active:active,
    .navbar-nav .nav-link.active:visited {
        background: transparent !important;
        background-color: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    /* Force override any inline styles or Bootstrap classes */
    .navbar-nav .nav-link[class*="active"],
    .navbar-nav .nav-link[class*="focus"],
    .navbar-nav .nav-link[class*="show"] {
        background: transparent !important;
        background-color: transparent !important;
        color: #333 !important;
    }
    
    /* Override any transparent navbar styles on mobile */
    .navbar.transparent {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .navbar.transparent .navbar-brand {
        color: white !important;
    }
    
    .navbar.transparent .navbar-nav .nav-link {
        color: #333 !important;
    }
    
    .navbar.transparent .navbar-toggler-icon {
        filter: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* After scroll behavior - white navbar with dark elements for very small screens */
    .navbar.scrolled {
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease;
    }
    
    .navbar.scrolled .navbar-brand {
        color: #333 !important;
    }
    
    .navbar.scrolled .navbar-toggler {
        border: 1px solid rgba(0,0,0,0.1);
        background: white;
    }
    
    .navbar.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* Additional mobile styles for very small screens */
@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
        padding: 20px 0;
    }
    
    .hero-content {
        padding-top: 30px;
        text-align: center;
    }
    
    .profile-image {
        max-width: 150px;
        margin-bottom: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .btn-resume {
        font-size: 0.9rem;
        padding: 8px 18px;
    }
    
    /* Additional mobile skills adjustments for very small screens */
    .skill-category-header {
        min-width: 240px;
        font-size: 1rem;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
    
    #about .col-3 {
        width: 33.333%;
        margin-bottom: 10px;
    }
    
    /* Fix skills layout for very small screens - prevent text wrapping */
    .skill-card {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px 4px;
    }
    
    .skill-name {
        font-size: 0.75rem;
        line-height: 1.2;
        text-align: center;
        word-wrap: normal;
        overflow-wrap: normal;
        white-space: nowrap;
        max-width: 100%;
    }
    
    /* Adjust grid for very small screens to prevent text wrapping */
    #about .col-3 {
        width: 50%;
        margin-bottom: 15px;
    }
    
    /* Add spacing between Who I Am and My Skills sections on very small screens */
    #about .col-lg-6:first-child {
        margin-bottom: 25px;
    }
    
    /* Make Who I Am section content justified on very small screens */
    #about .col-lg-6:first-child p {
        text-align: justify;
        text-justify: inter-word;
    }
    
    /* Make work experience card descriptions justified on very small screens */
    .experience-description p {
        text-align: justify;
        text-justify: inter-word;
    }
    
    /* Services section mobile adjustments for very small screens */
    .service-section-subtitle {
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 15px;
    }
    
    .service-card {
        padding: 18px 12px;
        width: 100% !important;
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .services-wrapper {
        padding: 25px 15px;
        overflow: visible;
    }
    
    /* Experience section mobile adjustments for very small screens */
    .section-subtitle {
        margin-top: 12px;
        margin-bottom: 25px;
    }
    
    .experience-card {
        padding: 18px 20px;
        min-height: auto;
    }
    
    .experience-role {
        margin-bottom: 12px;
    }
    
    .experience-date {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .experience-company {
        margin-right: 0;
        margin-bottom: 6px;
        display: block;
        width: fit-content;
    }
    
    .experience-date .experience-date {
        margin-bottom: 12px;
        display: block;
    }
    
    /* Force company and date to be on separate lines */
    .experience-date > div {
        display: block !important;
        margin-bottom: 6px;
    }
    
    .experience-date > div:last-child {
        margin-bottom: 12px;
    }
    
    /* Override any inline-block or flex properties */
    .experience-company {
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        width: fit-content !important;
    }
    
    .experience-date .experience-date {
        display: block !important;
        margin-bottom: 12px !important;
    }
    
    /* Force the container to use column layout */
    .experience-date {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    /* Fix project button stretching on mobile */
    .btn-project {
        width: auto !important;
        display: inline-block !important;
        text-align: center !important;
    }
    
    .btn-project-outline {
        width: auto !important;
        display: inline-block !important;
    }
    
    .project-buttons {
        text-align: center;
    }
    
    /* Fix mobile navbar appearance for very small screens */
    .navbar-collapse {
        background: white !important;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        margin-top: 8px;
        padding: 12px;
    }
    
    .navbar-nav .nav-link {
        color: #333 !important;
        padding: 10px 12px !important;
        margin: 4px 0 !important;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(74, 144, 226, 0.1) !important;
        color: var(--primary-blue) !important;
    }
    
    .navbar-nav .nav-link.active {
        background: var(--primary-blue) !important;
        color: white !important;
    }
    
    /* Ensure navbar has proper styling from initial load for very small screens */
    .navbar {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .navbar-brand {
        color: #333 !important;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(0,0,0,0.1);
        background: white;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Ensure scrolled navbar is definitively white */
    .navbar.scrolled {
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease;
    }
    
    .navbar.scrolled .navbar-brand {
        color: #333 !important;
    }
    
    .navbar.scrolled .navbar-toggler {
        border: 1px solid rgba(0,0,0,0.1);
        background: white;
    }
    
    .navbar.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Force solid white background after scroll - no transparency */
    .navbar.scrolled,
    .navbar.scrolled * {
        background-color: white !important;
        background: white !important;
    }
    
    .navbar.scrolled {
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Maximum specificity override for scrolled navbar on very small screens */
    body .navbar.scrolled,
    html body .navbar.scrolled,
    .navbar.scrolled.transparent,
    .navbar.scrolled:not(.transparent) {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        background-blend-mode: normal !important;
    }
    
    /* Remove focus outline from navbar button on very small screens */
    .navbar-toggler:focus,
    .navbar-toggler:focus-visible,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        background: transparent !important;
    }
    
    /* Completely turn off ALL focus effects for very small screens - stronger rules */
    .navbar-nav .nav-link,
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:focus-visible,
    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link.active {
        background: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }
    
    /* Override any Bootstrap or default focus styles for very small screens */
    .navbar-nav .nav-link:focus-visible {
        background: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* MAXIMUM STRENGTH - Override ALL possible focus states for very small screens */
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.active:focus,
    .navbar-nav .nav-link.active:focus-visible,
    .navbar-nav .nav-link.active:hover,
    .navbar-nav .nav-link.active:active,
    .navbar-nav .nav-link.active:visited {
        background: transparent !important;
        background-color: transparent !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    /* Force override any inline styles or Bootstrap classes for very small screens */
    .navbar-nav .nav-link[class*="active"],
    .navbar-nav .nav-link[class*="focus"],
    .navbar-nav .nav-link[class*="show"] {
        background: transparent !important;
        background-color: transparent !important;
        color: #333 !important;
    }
}
.experience-date {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.achievement-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 250px;
}

.carousel-images .project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-images .project-image.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

.achievement-award {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* --- START: Styles replaced or added from new.css --- */
.services-section {
    padding: 80px 0;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
}

.services-wrapper {
    background: linear-gradient(135deg, #4a90e2 0%, #2c5f8f 100%);
    padding: 50px 40px;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper img {
    height: 50px;
}

.services-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.services-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card img {
    height: 100px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.service-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

.service-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.service-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* new animated icon styles */
.animated-icon-wrapper {
  width: 60px;
  height: 60px;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .animated-icon-wrapper {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.animated-icon-inner {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: hidden;
}

#plus-icon {
  width: 100%;
  height: 100%;
  display: inline-block;
}

.contact-section {
    background: white;
    padding: 50px 0;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 20px;
}

.contact-section .row {
    min-height: 100%;
}

.contact-left, .contact-right {
    width: 100%;
}

.contact-left {
    padding-right: 40px;
}

.contact-right {
    padding-left: 40px;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-content h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.contact-info-content span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.contact-info-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-info-content a {
    color: var(--dark-blue);
}

.click-to-view {
    color: var(--primary-blue);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.click-to-view:hover {
    color: var(--dark-blue);
}

.social-links {
    margin-top: 30px;
}

.social-links h6 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    color: white;
}

.custom-vertical {
  display: flex;
  align-items: center;
  height: 100%;
}

.contact-left {
  flex-grow: 1;
  width: 100%;
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Optional spacing */
}

.btn-submit {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        margin: 0 20px;
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-left,
    .contact-right {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contact-left {
        margin-bottom: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* --- END: Styles replaced or added from new.css --- */