/* Exact Match to Portfolio Image */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* iOS specific fixes when menu is open */
body.menu-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header - Clean Simple Design */
header {
    background-color: #1a1a1a;
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 0.5px;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FCD96F;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #FCD96F;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

.profile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: #4a9eff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.mobile-menu-btn:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
    transform-origin: center;
}

.mobile-menu-btn.active {
    background-color: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.4);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 0;
    scroll-margin-top: 80px;
}

/* Hero Section - Pixel Perfect Match to Image with Animations */
.hero {
    padding: 80px 0 60px 0;
    min-height: 75vh;
    background-color: #1a1a1a;
    overflow: hidden;
    position: relative;
    z-index: 10;
    scroll-margin-top: 80px;
}

.hero-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Left Side - Title and Description with Animations */
.hero-left {
    flex: 1;
    max-width: 600px;
    padding-top: 20px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

.hero-title {
    font-size: 84px;
    font-weight: bold;
    color: #ffffff;
    line-height: 0.82;
    margin-bottom: 45px;
    letter-spacing: -3px;
    font-family: 'Arial', sans-serif;
    margin: 0 0 45px 0;
    overflow: hidden;
}

.title-line-1 {
    display: inline;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out 1s forwards;
}

.title-line-2 {
    display: inline;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out 1.3s forwards;
}

.hero-description {
    font-size: 18px;
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 55px;
    max-width: 520px;
    font-weight: normal;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1.6s forwards;
}

.hero-description em {
    font-style: italic;
    color: #cccccc;
    font-weight: normal;
    animation: pulse 2s ease-in-out infinite;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1.9s forwards;
}

/* Button Container for Overlapping Design */
.button-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Projects Button */
.projects-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.projects-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}


.arrow-button {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: -25px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.arrow-button:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.arrow {
    color: #333333;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.arrow-button:hover .arrow {
    transform: translateX(3px);
}


/* Right Side - Social Links with Animations */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out 0.8s forwards;
}

.social-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border: 1px solid #ffffff;
    border-radius: 35px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: flex-start;
    background-color: transparent;
    opacity: 0;
    transform: translateX(30px);
    position: relative;
    overflow: hidden;
}

.social-item:nth-child(1) { animation: slideInRight 0.6s ease-out 2.2s forwards; }
.social-item:nth-child(2) { animation: slideInRight 0.6s ease-out 2.4s forwards; }
.social-item:nth-child(3) { animation: slideInRight 0.6s ease-out 2.6s forwards; }
.social-item:nth-child(4) { animation: slideInRight 0.6s ease-out 2.8s forwards; }
.social-item:nth-child(5) { animation: slideInRight 0.6s ease-out 3s forwards; }

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

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

.social-item:hover {
    background-color: #333333;
    transform: translateX(-12px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    border-color: #cccccc;
}

.social-icon {
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
    padding: 3px;
}

.social-icon svg {
    width: 16px;
    height: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.social-item:hover .social-icon {
    transform: rotate(360deg) scale(1.1);
    background-color: #f0f0f0;
}

.social-item:hover .social-icon svg {
    color: #333333;
    transform: scale(1.1);
}

/* Specific social icon hover effects */
.social-item:hover .social-icon.github svg {
    color: #333333;
}

.social-item:hover .social-icon.linkedin svg {
    color: #0077b5;
}

.social-item:hover .social-icon.telegram svg {
    color: #0088cc;
}

.social-item:hover .social-icon.facebook svg {
    color: #1877f2;
}

.social-item:hover .social-icon.instagram svg {
    color: #e4405f;
}

/* About Me Section */
.about-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    position: relative;
    z-index: 10;
    scroll-margin-top: 100px;
}

.about-header {
    text-align: left;
    margin-bottom: 40px;
}

.about-header p {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fcfcfc;
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
}

.about-intro {
    margin-bottom: 20px;
}

.about-intro p {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fcfcfc;
    line-height: 1.6;
    margin: 0;
}

.about-intro strong {
    font-weight: 600;
}

.about-intro em {
    font-style: italic;
    font-weight: 600;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.skill-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.skill-card:nth-child(1) {
    width: 95%;
}

.skill-card:nth-child(2) {
    width: 85%;
    margin-left: 15%;
}

.skill-card:nth-child(3) {
    width: 90%;
    margin-left: 5%;
}

.skill-card:nth-child(4) {
    width: 88%;
    margin-left: 12%;
}

.skill-card:hover {
    background-color: #333;
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.skill-title {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fcfcfc;
    margin: 0 0 12px 0;
}

.skill-techs {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #aaaaaa;
    line-height: 1.5;
}

.about-actions {
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
    margin: 20px 0;
    justify-content: flex-end;
}

.about-note {
    margin-top: 20px;
}

.about-note p {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: #aaaaaa;
    margin: 0;
}

.about-note strong {
    font-weight: 600;
    color: #cccccc;
}

.about-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.profile-picture:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.profile-picture:hover img {
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
    transform: scale(1.02);
}

.profile-picture img {
    width: 100%;
    height: auto;
    max-width: 320px;
    display: block;
    border-radius: 12px;
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: all 0.4s ease;
    object-fit: cover;
    aspect-ratio: 3/4;
}


/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    position: relative;
    z-index: 10;
    scroll-margin-top: 100px;
}

.projects-header {
    text-align: left;
    margin-bottom: 40px;
}

.projects-header p {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fcfcfc;
    margin: 0;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project-item {
    width: 100%;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-title {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #fcfcfc;
    margin: 0;
    line-height: 1.2;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    background-color: #2a2a2a;
    color: #fcfcfc;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #333;
    border-color: #555;
}

.project-description {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fcfcfc;
    line-height: 1.6;
    margin: 0;
}

.how-it-works {
    margin: 20px 0;
}

.how-it-works h4 {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fcfcfc;
    margin: 0 0 12px 0;
}

.how-it-works ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-it-works li {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fcfcfc;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.how-it-works li::before {
    content: "•";
    color: #fcfcfc;
    position: absolute;
    left: 0;
}

.cta {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fcfcfc;
    margin: 20px 0;
}

.project-actions {
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn.github-btn {
    border: 2px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    z-index: 2;
}

.action-btn.github-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.action-btn.external-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    margin-left: -15px;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.action-btn.external-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.action-btn svg {
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
}

.project-visual {
    position: relative;
}

/* Modern Showcase with Different Sized Containers */
.modern-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 400px;
    align-items: end;
}

.image-container {
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.modern-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover .modern-image {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

/* Different Container Sizes */
.large-container {
    height: 380px;
    grid-row: 1;
}

.medium-container {
    height: 320px;
    grid-row: 1;
}

.small-container {
    height: 260px;
    grid-row: 1;
}


/* Articles Section */
.articles-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    position: relative;
    z-index: 10;
    scroll-margin-top: 100px;
}

.articles-header {
    text-align: right;
    margin-bottom: 40px;
}

.articles-header h2 {
    font-family: 'Arial', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.articles-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

/* Left Side Pagination */
.articles-pagination-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    min-width: 60px;
}

.pagination-dot {
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: #ffffff;
    color: #000000;
}

.pagination-dot:not(.active) {
    background-color: transparent;
    color: #ffffff;
}

.pagination-dot:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

.pagination-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background-color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-arrow:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
    max-width: 800px;
}

.article-card {
    background-color: #2a2a2a;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    max-width: 350px;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: 'Arial', sans-serif;
}

.article-content p {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
    font-family: 'Arial', sans-serif;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.read-more-btn {
    padding: 8px 16px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 20px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.read-more-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.arrow-btn {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.arrow-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.arrow-btn .arrow {
    color: #333333;
    font-size: 14px;
    font-weight: bold;
}

/* Work Section */
.work-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    position: relative;
    z-index: 10;
    scroll-margin-top: 100px;
}

.work-section .container {
    max-width: 100%;
    padding: 0 40px;
}

.work-header {
    text-align: right;
    margin-bottom: 40px;
}

.work-header h2 {
    font-family: 'Arial', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.work-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
}

.work-experience {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-entry {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #333333;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.work-entry:last-child {
    border-bottom: none;
}

/* Hover effects removed - only click effects remain */

.work-entry.active {
    background-color: #ffffff;
    color: #000000;
    margin: 0 -30px;
    padding: 25px 30px;
    border-radius: 8px;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.work-entry.active .work-years .year-range,
.work-entry.active .work-years .duration,
.work-entry.active .work-details .company,
.work-entry.active .work-details .role {
    color: #000000;
}

.work-indicator {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #000000;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    display: none;
}

.work-entry.active .work-indicator {
    display: block;
}

.work-years {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    margin-right: 350px;
}

.year-range {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.duration {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    color: #888888;
    margin-top: 4px;
}

.work-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.role {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    color: #cccccc;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.work-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #333333;
}

.summary-label {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    color: #888888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-total {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* Contacts Section */
.contacts-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.contacts-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.contacts-section .container {
    position: relative;
    z-index: 1;
}

.contacts-header {
    text-align: right;
    margin-bottom: 40px;
}

.contacts-header p {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fcfcfc;
    margin: 0;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 60vh;
}

.contacts-left {
    display: flex;
    align-items: center;
}

.name-section {
    width: 100%;
}

.contact-name {
    font-family: 'Arial', sans-serif;
    font-size: 72px;
    font-weight: bold;
    color: #ffffff;
    line-height: 0.9;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
}

.name-line-1 {
    display: block;
}

.name-line-2 {
    display: block;
    margin-left: 60px;
}

.contact-title {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.contacts-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-end;
}

.navigation-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: bold;
    color: #ffffff;
}

.site-details {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    min-width: 280px;
    border: 1px solid #444;
}

.site-details h3 {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.site-details p {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    margin: 8px 0;
    line-height: 1.4;
}

.social-buttons {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-button:hover::before {
    transform: scale(1);
}

.social-button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.social-button .social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-button:hover .social-icon {
    color: #1a1a1a;
}

.social-button .social-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-button:hover .social-icon svg {
    transform: rotate(360deg);
}

.social-button span {
    display: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-top: 1px solid #333;
    padding: 60px 0 20px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo h3 {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.footer-logo p {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #cccccc;
    margin: 0;
}

.footer-description p {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #aaaaaa;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.footer-center {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #aaaaaa;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 15px;
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-contact h4,
.footer-social h4 {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-item span {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #aaaaaa;
    transition: color 0.3s ease;
}

.contact-item:hover span {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    border-radius: 8px;
    text-decoration: none;
    color: #aaaaaa;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.social-link:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p,
.footer-tech p {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    margin: 0;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}






/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-wrapper {
        gap: 80px;
    }
    
    .hero-title {
        font-size: 70px;
    }
    
    .nav-links {
        gap: 40px;
    }
    
    .social-item {
        min-width: 130px;
        padding: 12px 18px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .hero-right {
        padding-top: 60px;
    }
    
    .social-container {
        gap: 15px;
    }
    
    .social-item {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .nav-links {
        gap: 35px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for iOS */
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 60px 20px 20px;
        padding: max(60px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        max-width: 300px;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-links a {
        font-size: 20px;
        font-weight: 500;
        letter-spacing: 0.5px;
        padding: 16px 24px;
        border-radius: 12px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        color: #4a9eff;
        background-color: rgba(74, 158, 255, 0.15);
        border-color: rgba(74, 158, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    
    .hero {
        padding: 60px 0 40px 0;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        padding-top: 0;
        max-width: 100%;
    }
    
    .hero-left h1 {
        font-size: 48px;
        line-height: 0.9;
    }
    
    .hero-left p {
        max-width: 100%;
        font-size: 16px;
    }
    
    .hero-right {
        padding-top: 0;
        justify-content: center;
    }
    
    .social-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        align-items: center;
    }
    
    /* About Me Section - Tablet */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-left {
        order: 2;
    }
    
    .about-right {
        order: 1;
    }
    
    .profile-picture img {
        max-width: 280px;
    }
    
    
    .social-item {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
        justify-content: center;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .social-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .nav-controls {
        gap: 12px;
    }
    
    .profile-image {
        width: 40px;
        height: 40px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }
    
    .nav-links a {
        font-size: 24px;
        font-weight: 500;
        letter-spacing: 1px;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
    }
    
    .nav-links a:hover {
        color: #4a9eff;
        background-color: rgba(74, 158, 255, 0.1);
        transform: scale(1.05);
    }
    
    /* Improve touch targets for mobile */
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .articles-header h2 {
        font-size: 36px;
        text-align: center;
    }
    
    .work-header h2 {
        font-size: 36px;
        text-align: center;
    }
    
    .work-container {
        max-width: 600px;
    }
    
    .work-entry {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }
    
    .work-entry.active {
        margin: 0 -20px;
        padding: 20px;
    }
    
    .work-years {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .work-indicator {
        display: none;
    }
    
    .work-summary {
        margin-top: 30px;
        align-items: center;
    }
    
    /* Contacts Section - Tablet */
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contacts-right {
        align-items: center;
    }
    
    .contact-name {
        font-size: 56px;
    }
    
    .name-line-2 {
        margin-left: 40px;
    }
    
    .social-buttons {
        gap: 20px;
        max-width: 400px;
    }
    
    .social-button {
        width: 45px;
        height: 45px;
    }
    
    .social-button .social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Footer - Tablet */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-description p {
        max-width: 100%;
    }
    
    .footer-links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .articles-container {
        flex-direction: column;
        gap: 40px;
        justify-content: center;
    }
    
    .articles-pagination-left {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
    
    .articles-grid {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .article-card {
        max-width: 280px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-title {
        font-size: 36px;
    }
    
    /* Tablet responsive for modern showcase */
    .modern-showcase {
        grid-template-columns: 1fr;
        height: auto;
        gap: 16px;
        align-items: stretch;
    }
    
    .large-container,
    .medium-container,
    .small-container {
        height: 280px;
        transform: translateY(0) !important;
        border-width: 1px;
    }
    
    .project-image {
        border-radius: 16px;
    }
    
    .image-overlay {
        padding: 20px;
    }
    
    .overlay-text {
        font-size: 14px;
    }
    
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-card {
        min-height: 350px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0 30px 0;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 30px;
        line-height: 0.9;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 40px;
    }
    
    /* Improve mobile header */
    header {
        padding: 20px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    
    .arrow-button {
        width: 40px;
        height: 40px;
    }
    
    .arrow {
        font-size: 18px;
    }
    
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    
    .social-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        align-items: center;
    }
    
    .social-item {
        min-width: 120px;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* About Me Section - Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-left {
        order: 2;
    }
    
    .about-right {
        order: 1;
    }
    
    .about-intro p {
        font-size: 16px;
    }
    
    .skill-card {
        padding: 15px;
    }
    
    .skill-title {
        font-size: 14px;
    }
    
    .skill-techs {
        font-size: 12px;
    }
    
    .profile-picture img {
        max-width: 250px;
    }
    
    
    .nav-links {
        display: none;
    }
    
    .profile-image {
        width: 35px;
        height: 35px;
    }
    
    .articles-header h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .work-header h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .work-container {
        max-width: 400px;
    }
    
    .work-entry {
        padding: 15px 0;
    }
    
    .work-entry.active {
        margin: 0 -15px;
        padding: 15px;
    }
    
    .year-range {
        font-size: 16px;
    }
    
    .duration {
        font-size: 11px;
    }
    
    .company {
        font-size: 18px;
    }
    
    .role {
        font-size: 13px;
    }
    
    .work-summary {
        margin-top: 25px;
    }
    
    .summary-total {
        font-size: 18px;
    }
    
    /* Contacts Section - Mobile */
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contacts-right {
        align-items: center;
    }
    
    .contact-name {
        font-size: 42px;
    }
    
    .name-line-2 {
        margin-left: 20px;
    }
    
    .navigation-links {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .site-details {
        min-width: 250px;
        padding: 20px;
    }
    
    .social-buttons {
        gap: 15px;
        max-width: 350px;
    }
    
    .social-button {
        width: 40px;
        height: 40px;
    }
    
    .social-button .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo h3 {
        font-size: 24px;
    }
    
    .footer-logo p {
        font-size: 14px;
    }
    
    .footer-description p {
        font-size: 14px;
    }
    
    .footer-links h4,
    .footer-contact h4,
    .footer-social h4 {
        font-size: 16px;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .contact-item span {
        font-size: 13px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-copyright p,
    .footer-tech p {
        font-size: 12px;
    }
    
    .articles-container {
        flex-direction: column;
        gap: 30px;
        justify-content: center;
    }
    
    .articles-pagination-left {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .articles-grid {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .article-card {
        max-width: 100%;
    }
    
    .pagination-dot,
    .pagination-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        min-height: 180px;
        padding: 15px;
    }
    
    .article-content h3 {
        font-size: 14px;
    }
    
    .article-content p {
        font-size: 11px;
    }
    
    
    
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 16px;
        height: 2px;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 14px 20px;
        min-height: 50px;
    }
    
    .nav-links {
        padding: 50px 15px 15px;
        gap: 15px;
    }
    
    
    .social-item {
        min-width: 120px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .social-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .articles-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .work-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .work-container {
        max-width: 350px;
    }
    
    .work-entry {
        padding: 12px 0;
    }
    
    .work-entry.active {
        margin: 0 -10px;
        padding: 12px;
    }
    
    .year-range {
        font-size: 15px;
    }
    
    .duration {
        font-size: 10px;
    }
    
    .company {
        font-size: 17px;
    }
    
    .role {
        font-size: 12px;
    }
    
    .work-summary {
        margin-top: 20px;
    }
    
    .summary-total {
        font-size: 16px;
    }
    
    .pagination-dot,
    .pagination-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .article-content h3 {
        font-size: 13px;
    }
    
    .article-content p {
        font-size: 10px;
    }
    
    .read-more-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .arrow-btn {
        width: 28px;
        height: 28px;
    }
    
    .arrow-btn .arrow {
        font-size: 12px;
    }
    
    
    
}

/* Keyframe Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}


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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes bounceHover {
    0% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}






/* Additional Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .hero-left,
    .hero-right,
    .social-item,
    .project-item {
        animation-duration: 0.5s;
    }
    
    /* Improve touch scrolling */
    .hero,
    .about-section,
    .projects-section,
    .articles-section,
    .work-section,
    .contacts-section {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize images for mobile */
    .modern-image,
    .project-image,
    .profile-picture img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Improve button touch targets */
    .projects-btn,
    .download-resume-btn,
    .action-btn,
    .read-more-btn,
    .arrow-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better mobile menu performance */
    .nav-links {
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Optimize social buttons for touch */
    .social-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve mobile form interactions */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}