/*#region reset & global  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
    outline: none
}

/*#endregion reset & global  */

/*#region variables*/
:root {
    --bg-primary: #121214;
    --bg-secondary: #1e1e2f;
    --bg-tertiary: #2a2a3d;
    --bg-hover: #2f2f44;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0c0;
    --text-muted: #8888a0;
    --text-accent: #d8b4fe;
    --light-text: #a0a0b0;
    --purple-light: #c084fc;
    --purple: #a855f7;
    --purple-dark: #7e22ce;
    --purple-muted: #6b21a8;
    --purple-glow: rgba(168, 85, 247, 0.35);
    --btn-primary-bg: var(--purple);
    --btn-primary-hover: #9333ea;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: var(--purple-dark);
    --btn-secondary-hover: #5b21b6;
    --btn-secondary-text: #ffffff;
    --border-light: #2f2f44;
    --border-dark: #1a1a2b;
    --border-accent: var(--purple);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    --shadow-purple: var(--purple-glow);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --alert-success-bg: #16a34a;
    --alert-success-text: #d1fae5;
    --alert-error-bg: #dc2626;
    --alert-error-text: #fecaca;
    --alert-warning-bg: #f59e0b;
    --alert-warning-text: #fef3c7;
    --alert-info-bg: #3b82f6;
    --alert-info-text: #dbeafe;
    --input-bg: var(--bg-secondary);
    --input-text: var(--text-primary);
    --input-placeholder: var(--text-muted);
    --input-border: var(--border-light);
    --input-focus: var(--purple);
    --highlight-bg: var(--purple-dark);
    --card-bg: var(--bg-secondary);
    --modal-bg: var(--bg-tertiary);
    --primary-color: var(--purple);
    --gradient-primary: linear-gradient(135deg, #a855f7, #9333ea);
    --gradient-secondary: linear-gradient(135deg, #7e22ce, #5b21b6);
    --gradient-card: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    --link-color: var(--purple);
    --link-hover: var(--purple-light)
}

/*#endregion variables*/

/*#region typography*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2
}

body {
    line-height: 1.6;
    color: var(--text-primary)
}

/*#endregion typography*/

/*#region layout*/
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background: var(--purple);
    border-radius: 2px
}

/*#endregion layout*/

/*#region navigation*/
#navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light)
}

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

.logo {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--purple-light);
    display: flex;
    align-items: center
}

.logo span {
    color: var(--text-primary)
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem)
}

.nav-list a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease
}

.nav-list a:hover {
    color: var(--purple-light);
    background-color: var(--bg-hover)
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: 0.3s linear;
    transform-origin: 1px
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 2rem;
    box-shadow: -5px 0 15px var(--shadow-light)
}

.mobile-nav.active {
    right: 0
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer
}

.mobile-nav-list {
    list-style: none;
    margin-top: 3rem
}

.mobile-nav-list li {
    margin-bottom: 1.5rem
}

.mobile-nav-list a {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease
}

.mobile-nav-list a:hover {
    color: var(--purple-light)
}

body.menu-open #main-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none
}

/*#endregion navigation*/

/*#region welcome section*/
#fullscreen-welcome {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 20, 0.9), rgba(30, 30, 47, 0.8)), url("https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80");
    background-size: cover;
    background-position: center;
    padding: 2rem;
    position: relative
}

.welcome-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease
}

#fullscreen-welcome h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 700px
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-purple)
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-purple)
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--purple)
}

.btn-secondary:hover {
    background-color: var(--purple-dark);
    transform: translateY(-3px)
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    animation: bounce 2s infinite
}

/*#endregion welcome section*/

/*#region overview section*/
/* Overview Section */
#overview {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    position: relative;
    overflow: hidden;
}

#overview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(126, 34, 206, 0.1) 0%, transparent 50%);
    z-index: 0;
}

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

.overview-card {
    background: rgba(30, 30, 47, 0.7);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
    border-color: var(--purple);
}

.overview-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 5px 15px var(--shadow-purple);
}

.overview-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--purple-light);
}

.overview-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 30, 47, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-content {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.overview-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-stack {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-icons i {
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tech-icons i:hover {
    color: var(--purple-light);
    transform: translateY(-5px) scale(1.2);
}

.tech-icons i::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.tech-icons i:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/*#endregion overview section*/

/*#region about me section*/
#about-me {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.console-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    width: 100%;
    position: relative;
}

.about-iframe {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 1000px;
    border: none;
    display: block;
}

/*#endregion about me section*/

/*#region portfolio section*/
#portfolio {
    padding: 5rem 2rem;
    background: var(--bg-secondary)
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch
}

.portfolio-item {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--shadow-purple)
}

.portfolio-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    position: relative;
    overflow: hidden
}

.portfolio-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(168, 85, 247, 0.3), rgba(126, 34, 206, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease
}

.portfolio-item:hover .portfolio-img::after {
    opacity: 1
}

.portfolio-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative
}

.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.portfolio-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem
}

.tag {
    background: var(--purple-dark);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.2s ease
}

.tag:hover {
    background: var(--purple);
    transform: translateY(-2px)
}

.collaboration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite
}

.portfolio-content a.btn {
    margin-top: auto;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    box-shadow: 0 4px 15px var(--shadow-purple);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem
}

.portfolio-content a.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-muted));
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scaleX(0);
    transform-origin: right
}

.portfolio-content a.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left
}

.portfolio-content a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    border-color: var(--purple-light)
}

.portfolio-content a.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px var(--shadow-purple)
}

.portfolio-content a.btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease
}

.portfolio-content a.btn:hover i {
    transform: translateX(3px)
}

.portfolio-content a.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg) translateY(-150%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1)
}

.portfolio-content a.btn:hover::after {
    transform: rotate(30deg) translateY(150%)
}

.portfolio-content a.btn:focus {
    outline: 2px solid var(--purple-light);
    outline-offset: 2px
}

.portfolio-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards
}

.portfolio-item:nth-child(1) {
    animation-delay: 0.1s
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.3s
}

.portfolio-item:nth-child(4) {
    animation-delay: 0.4s
}

.portfolio-item:nth-child(5) {
    animation-delay: 0.5s
}

.portfolio-item:nth-child(6) {
    animation-delay: 0.6s
}

.portfolio-item:nth-child(7) {
    animation-delay: 0.7s
}

.portfolio-item:nth-child(8) {
    animation-delay: 0.8s
}

.portfolio-item:nth-child(9) {
    animation-delay: 0.9s
}

.portfolio-item:nth-child(10) {
    animation-delay: 1s
}

.portfolio-item:nth-child(11) {
    animation-delay: 1.1s
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1)
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary)
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--purple);
    box-shadow: 0 4px 10px var(--shadow-purple)
}

.filter-search {
    position: relative;
    min-width: 250px
}

.filter-search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-primary);
    transition: all 0.3s ease
}

.filter-search input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--shadow-purple)
}

.filter-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted)
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted)
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5
}

/*#endregion portfolio section*/

/*#region contact me section*/
#contact-me {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden
}

#contact-me::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(126, 34, 206, 0.1) 0%, transparent 50%);
    z-index: 0
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2rem
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.address-card,
.info-card {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease
}

.info-card {
    background: rgba(30, 30, 47, 0.7);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
    border-color: var(--purple)
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--purple-light);
    display: flex;
    align-items: center;
    gap: 10px
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6
}

.address-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.address-card p {
    margin: 0.5rem 0;
    line-height: 1.6
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px)
}

.contact-form-container {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    width: 100%
}

.form-header {
    background: var(--bg-tertiary);
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px
}

.form-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary)
}

.form-content {
    padding: 2rem;
    width: 100%
}

.contact-iframe-wrapper {
    width: 100%;
    height: 1000px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2)
}

.contact-iframe {
    width: 100%;
    height: 100%;
    border: none
}

/*#endregion contact me section*/

/*#region footer*/
footer {
    background: var(--bg-primary);
    padding: 4rem 2rem 1.5rem;
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: inline-block
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.6;
    max-width: 280px
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: fit-content
}

.social-btn:hover {
    background: var(--purple);
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow-purple)
}

.social-btn i {
    font-size: 1.1rem;
    width: 20px
}

.footer-nav h3,
.footer-projects h3,
.footer-contact h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem
}

.footer-nav h3::after,
.footer-projects h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--purple);
    border-radius: 2px
}

.footer-nav ul,
.footer-projects ul {
    list-style: none
}

.footer-nav li,
.footer-projects li {
    margin-bottom: 0.8rem
}

.footer-nav a,
.footer-projects a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem
}

.footer-nav a:hover,
.footer-projects a:hover {
    color: var(--purple-light);
    transform: translateX(5px)
}

.footer-nav a i,
.footer-projects a i {
    width: 18px;
    color: var(--purple)
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem
}

.contact-item i {
    color: var(--purple);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 18px
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.2rem
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease
}

.contact-item a:hover {
    color: var(--purple-light)
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap
}

.foss-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem
}

.foss-badge i {
    color: var(--purple)
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease
}

.footer-legal a:hover {
    color: var(--purple-light)
}

.separator {
    color: var(--text-muted);
    font-size: 0.9rem
}

.footer-content>* {
    animation: fadeInUp 0.6s ease forwards
}

.footer-content>*:nth-child(1) {
    animation-delay: 0.1s
}

.footer-content>*:nth-child(2) {
    animation-delay: 0.2s
}

.footer-content>*:nth-child(3) {
    animation-delay: 0.3s
}

.footer-content>*:nth-child(4) {
    animation-delay: 0.4s
}

.footer-bottom {
    animation: fadeInUp 0.6s ease 0.5s forwards;
    opacity: 0
}

/*#endregion footer*/

/*#region animations*/
/* Animation for counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animated {
    animation: countUp 1s ease forwards;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%)
    }

    40% {
        transform: translateY(-20px) translateX(-50%)
    }

    60% {
        transform: translateY(-10px) translateX(-50%)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/*#endregion animations*/

/*#region responsive styles*/

/* ========== LARGE DESKTOPS (max 1200px) ========== */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

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

    .console-container {
        min-height: 550px;
    }

    .overview-grid {
        gap: 1.5rem;
    }

    .stats-container {
        gap: 1.5rem;
    }
}

/* ========== TABLET LANDSCAPE & SMALL DESKTOPS (max 1024px) ========== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

    .overview-card {
        padding: 1.5rem;
    }

    .overview-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========== TABLET PORTRAIT (max 968px) ========== */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-iframe-wrapper {
        height: 500px;
    }

    .console-container {
        min-height: 500px;
        max-height: 75vh;
    }

    .about-iframe {
        min-height: 450px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== LARGE MOBILES (max 768px) ========== */
@media (max-width: 768px) {

    /* Navigation */
    .nav-list {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    /* Hero Section */
    .welcome-text {
        font-size: 2.5rem;
    }

    #fullscreen-welcome h2 {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    /* Filter Controls */
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-search {
        min-width: auto;
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .footer-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .separator {
        display: none;
    }

    .footer-legal a {
        margin: 0 0.5rem;
    }

    /* Console */
    .console-container {
        min-height: 450px;
        max-height: 70vh;
    }

    .about-iframe {
        min-height: 400px;
    }

    /* Overview Section */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .overview-content {
        margin: 2rem auto;
    }

    .tech-stack {
        margin-top: 2rem;
    }

    .tech-icons {
        gap: 1rem;
    }

    .tech-icons i {
        font-size: 2rem;
    }

    /* Contact Form - Mobile Optimization */
    #contact-me {
        padding: 3rem 0;
    }

    .contact-iframe-wrapper {
        height: 500px;
        border-radius: 0;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .contact-form-container {
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .form-content {
        padding: 1rem;
    }
}

/* ========== MEDIUM MOBILES (max 640px) ========== */
@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

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

    .welcome-text {
        font-size: 2rem;
    }

    #fullscreen-welcome h2 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .portfolio-item {
        margin: 0 auto;
        max-width: 350px;
    }

    .filter-group {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .contact-iframe-wrapper {
        height: 450px;
    }

    .console-container {
        min-height: 400px;
        max-height: 65vh;
    }

    .about-iframe {
        min-height: 350px;
    }

    .overview-card {
        padding: 1.2rem;
    }

    .overview-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ========== SMALL MOBILES (max 480px) ========== */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .welcome-text {
        font-size: 1.8rem;
    }

    #fullscreen-welcome h2 {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .portfolio-desc {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .filter-controls {
        padding: 1rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .filter-search input {
        padding: 0.6rem 0.8rem 0.6rem 2.2rem;
        font-size: 0.9rem;
    }

    .contact-iframe-wrapper {
        height: 400px;
    }

    .form-content {
        padding: 0.5rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .console-container {
        min-height: 350px;
        max-height: 60vh;
    }

    .about-iframe {
        min-height: 300px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .tech-icons {
        gap: 0.8rem;
    }

    .tech-icons i {
        font-size: 1.8rem;
    }
}

/* ========== VERY SMALL MOBILES (max 360px) ========== */
@media (max-width: 360px) {
    .welcome-text {
        font-size: 1.6rem;
    }

    #fullscreen-welcome h2 {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .portfolio-grid {
        gap: 1.5rem;
    }

    .portfolio-item {
        max-width: 280px;
    }

    .portfolio-img {
        height: 150px;
        font-size: 2rem;
    }

    .filter-group {
        justify-content: stretch;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 70px;
    }

    .contact-iframe-wrapper {
        height: 380px;
    }

    .console-container {
        min-height: 300px;
        max-height: 55vh;
    }

    .about-iframe {
        min-height: 250px;
    }

    .overview-card {
        padding: 1rem;
    }

    .overview-card h3 {
        font-size: 1.2rem;
    }

    .overview-content p {
        font-size: 1rem;
    }

    .tech-icons {
        gap: 0.5rem;
    }

    .tech-icons i {
        font-size: 1.5rem;
    }
}

/* ========== LANDSCAPE ORIENTATION ========== */
@media (max-height: 500px) and (orientation: landscape) {
    #fullscreen-welcome {
        min-height: 120vh;
        padding: 4rem 2rem;
    }

    .console-container {
        min-height: 300px;
        max-height: 65vh;
    }

    .about-iframe {
        min-height: 280px;
        max-height: 60vh;
    }

    .contact-iframe-wrapper {
        height: 300px;
    }
}

/* ========== HIGH-RESOLUTION & RETINA DISPLAYS ========== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo {
        font-weight: 600;
    }

    .section-title {
        -webkit-font-smoothing: antialiased;
    }

    .overview-card,
    .stat-item {
        border: 0.5px solid var(--border-light);
    }
}

/* ========== REDUCED MOTION PREFERENCE ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .stat-number {
        transition: none;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #121214;
        --bg-secondary: #1e1e2f;
        --text-primary: #e0e0e0;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    #navigation,
    .burger-menu,
    .scroll-indicator,
    .cta-buttons,
    .social-links,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    a {
        text-decoration: underline;
    }

    .portfolio-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    /* Overview Section Print Styles */
    .overview-grid {
        display: block;
    }

    .overview-card {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }

    .stats-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .stat-item {
        border: 1px solid #ccc;
        margin: 0.5rem;
        flex: 1;
        min-width: 100px;
    }
}

/*#endregion responsive styles*/

/*#region utility classes*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.text-center {
    text-align: center
}

.mb-1 {
    margin-bottom: 0.5rem
}

.mb-2 {
    margin-bottom: 1rem
}

.mb-3 {
    margin-bottom: 1.5rem
}

.mt-1 {
    margin-top: 0.5rem
}

.mt-2 {
    margin-top: 1rem
}

.mt-3 {
    margin-top: 1.5rem
}

.p-1 {
    padding: 0.5rem
}

.p-2 {
    padding: 1rem
}

.p-3 {
    padding: 1.5rem
}

.d-flex {
    display: flex
}

.justify-center {
    justify-content: center
}

.align-center {
    align-items: center
}

.flex-column {
    flex-direction: column
}

.w-100 {
    width: 100%
}

.h-100 {
    height: 100%
}

.rounded {
    border-radius: 0.5rem
}

.rounded-lg {
    border-radius: 1rem
}

.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25)
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3)
}

.text-primary {
    color: var(--text-primary)
}

.text-secondary {
    color: var(--text-secondary)
}

.text-muted {
    color: var(--text-muted)
}

.text-accent {
    color: var(--text-accent)
}

.bg-primary {
    background-color: var(--bg-primary)
}

.bg-secondary {
    background-color: var(--bg-secondary)
}

.bg-tertiary {
    background-color: var(--bg-tertiary)
}

.border {
    border: 1px solid var(--border-light)
}

.border-accent {
    border-color: var(--border-accent)
}

.fade-in {
    animation: fadeIn 0.6s ease
}

.slide-in-up {
    animation: fadeInUp 0.6s ease
}

.pulse {
    animation: pulse 2s infinite
}

.float {
    animation: float 6s ease-in-out infinite
}

.hidden {
    display: none
}

.visible {
    display: block
}

.opacity-0 {
    opacity: 0
}

.opacity-50 {
    opacity: 0.5
}

.opacity-100 {
    opacity: 1
}

.pointer-events-none {
    pointer-events: none
}

.pointer-events-auto {
    pointer-events: auto
}

.cursor-pointer {
    cursor: pointer
}

.transition {
    transition: all 0.3s ease
}

.scale-hover:hover {
    transform: scale(1.05)
}

.lift-hover:hover {
    transform: translateY(-5px)
}

/*#endregion utility classes*/