:root {
    --primary-color: #60a5fa;
    --primary-light: #93c5fd;
    --primary-dark: #3b82f6;
    --secondary-color: #94a3b8;
    --background-dark: #0f172a;
    --background-darker: #020617;
    --card-bg: #1e293b;
    --card-darker: #0f172a;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --accent-color: #a855f7;
    --accent-dark: #9333ea;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(96, 165, 250, 0.1);
}

/* Sections */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 60px;
}

.portfolio-section {
    padding: 60px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-section {
    padding: 60px 20px 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2em;
    margin-bottom: 40px;
    margin-top: 0;
    font-weight: 300;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credentials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.experience, .education {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card.loaded {
    opacity: 1;
    transform: translateY(0);
}

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

.card-header {
    margin-bottom: 20px;
}

h1 {
    font-size: 2.4em;
    margin: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 1px;
}

.title {
    font-size: 1.2em;
    color: var(--text-muted);
    margin: 8px 0 15px;
    font-weight: 300;
}

.contact-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--border-radius);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact {
    margin: 0;
    line-height: 2;
    color: var(--text-muted);
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: relative;
    top: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.linkedin-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
}

.website-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.contact a, .links a, .phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px dotted transparent;
}

.contact a:hover, .links a:hover, .phone-link:hover {
    color: var(--primary-light);
    border-bottom: 1px dotted var(--primary-light);
}

.skills {
    margin: 25px 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skills::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
}

.skills h3 {
    margin: 0 0 15px;
    color: var(--primary-light);
    font-size: 1.2em;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.skills h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.skills ul {
    text-align: left;
    padding-left: 20px;
    margin: 10px 0 0;
}

.skill-item {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: calc(0.2s * var(--i));
    margin-bottom: 8px;
    color: var(--text-light);
    position: relative;
}

.skill-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -15px;
    top: 8px;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio {
    font-style: italic;
    color: var(--text-muted);
    margin: 25px 0;
    line-height: 1.8;
    font-weight: 300;
    position: relative;
    padding: 0 10px;
}

.bio::before, .bio::after {
    content: '"';
    font-size: 1.5em;
    color: var(--primary-light);
    opacity: 0.5;
    position: absolute;
}

.bio::before {
    top: -15px;
    left: -5px;
}

.bio::after {
    bottom: -20px;
    right: -5px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.button::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: all 0.6s ease;
}

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

.button:hover {
    background: var(--primary-dark);
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(96, 165, 250, 0.4);
}

.button:active {
    transform: translateY(1px);
}

.portfolio-btn {
    background: var(--primary-color);
}

.resume-btn {
    background: var(--accent-color);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.resume-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 7px 20px rgba(168, 85, 247, 0.4);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #0f172a;
    color: #f1f5f9;
    text-align: center;
    border-radius: 8px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    font-size: 0.85em;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .card {
        padding: 25px 20px;
        max-width: 90%;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .title, .skills h3 {
        font-size: 1em;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: auto;
        max-width: 80%;
        margin-top: 10px;
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .contact-container, .skills {
        padding: 12px;
    }
}

/* Portfolio Styles */
.portfolio-container {
    max-width: 1200px;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--card-darker);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.portfolio-category {
    color: var(--accent-color);
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 10px;
}

.portfolio-description {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.portfolio-relevance {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 60vh;
}

.modal-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease;
}

.image-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2003;
}

.image-arrow {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-arrow:hover {
    opacity: 1;
    background: rgba(96, 165, 250, 0.8);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.image-arrow:active {
    transform: scale(0.95);
}

.image-arrow-left {
    margin-left: 15px;
}

.image-arrow-right {
    margin-right: 15px;
}

.image-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.image-arrow:disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-counter-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2004;
}

.modal-info {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info h3 {
    color: var(--primary-light);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.modal-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.modal-skill {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-light);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    border: 1px solid rgba(96, 165, 250, 0.2);
}


/* Contact Section */
.contact-container-full {
    max-width: 1200px;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    color: var(--primary-light);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-details {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    color: var(--primary-light);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.professional-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.professional-form input,
.professional-form textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.professional-form input:focus,
.professional-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
}

.professional-form input::placeholder,
.professional-form textarea::placeholder {
    color: var(--text-muted);
}

.form-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        gap: 20px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .hero-section {
        padding: 80px 15px 40px;
    }
    
    .portfolio-section {
        padding: 40px 15px;
    }
    
    .contact-section {
        padding: 40px 15px 60px;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    
    
    .image-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 10px;
    }
    
    .image-counter-badge {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    
    .credentials {
        flex-direction: column;
        gap: 10px;
    }
}

.hidden {
    display: none;
}