/* THEME VARIABLES */
:root {
    --bg-color: #050505;
    --surface-color: rgba(15, 15, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #ffffff;
    --accent-blue: #2979ff;
    --accent-purple: #7b1fa2;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --header-bg: rgba(5, 5, 5, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
}

/* VIBRANT BACKGROUND */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(41, 121, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(123, 31, 162, 0.15) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

/* NAVIGATION */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

nav a:hover {
    color: var(--text-main);
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

section {
    margin-bottom: 120px;
}

/* HERO SECTION */
.hero {
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(
        circle, 
        rgba(41, 121, 255, 0.12) 0%, 
        rgba(5, 5, 5, 0) 70%
    );
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.profile-image-container {
    flex-shrink: 0;
    width: 350px; 
    height: 350px;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(20%);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.profile-text {
    max-width: 500px;
}

.profile-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.profile-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

/* BUTTONS */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-blue);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.4);
    border: none;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(41, 121, 255, 0.8);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    width: 100%;
    justify-content: center;
    padding: 15px;
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(41, 121, 255, 0.05);
}

/* SMALL BUTTON */
.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(41, 121, 255, 0.2); 
}

.btn-small:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 30px rgba(41, 121, 255, 0.6); 
    transform: translateY(-2px);
}

/* SEE MORE/LESS BUTTON */
.btn-see-more {
    display: block;
    margin: 40px auto 0;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-see-more:hover {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.5);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    margin-bottom: 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
}

/* SKILLS GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* SOCIAL SPECIFIC GRID (2x2) */
#social .skills-grid {
    grid-template-columns: repeat(2, 1fr);
}

.skill-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    color: var(--accent-blue);
    text-shadow: 0 0 15px var(--accent-blue);
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.skill-card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
}

.skill-card ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.skill-card ul li::before {
    content: "•";
    color: var(--border-color);
    position: absolute;
    left: 0;
}

/* SOCIAL CARD SPECIAL STYLING */
.social-card {
    text-decoration: none;
    align-items: center;
    text-align: center;
    padding-bottom: 30px; 
}

.social-icon-container {
    margin-bottom: 15px;
}

.social-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.social-text h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.social-text span {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: auto;
    line-height: 1.5;
}

.social-card .btn-small {
    margin-top: 25px;
    width: 100%;
    justify-content: center;
}

/* LIST ITEMS */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    gap: 30px;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(5px);
}

.list-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

.item-content {
    flex: 1;
}

.header-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.achievement-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #ffffff; 
    border-radius: 12px;
    padding: 5px;
    flex-shrink: 0;
}

.header-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2px;
}

.header-text-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.header-text-col span {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-desc {
    color: #d1d1d1;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.item-list {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.item-list li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.item-list li::before {
    content: "▹";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
}

.item-img-container {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #111;
    display: block;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.list-item:hover .item-img-container {
    box-shadow: 0 0 25px var(--accent-blue);
    border-color: var(--accent-blue);
}

.list-item:hover .item-img {
    transform: scale(1.05);
}

/* TAGS */
.tech-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(41, 121, 255, 0.2);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent-blue);
    text-decoration: none;
    cursor: pointer;
}

/* CTA */
.cta-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cta-section {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* HIDDEN CONTAINER FOR EXTRA ACHIEVEMENTS */
#more-achievements {
    display: none;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

#more-achievements.visible {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

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

footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-color);
}

footer a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
}

@media (max-width: 850px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .profile-text h1 {
        font-size: 2.5rem;
    }

    .achievement-item, .list-item {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    
    .header-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .achieve-img-container, .item-img-container {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .achieve-list li, .item-list li {
        text-align: left;
        display: inline-block;
    }
    
    .tech-tags {
        justify-content: center;
    }

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

    .menu-toggle {
        display: block;
        color: var(--text-main);
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
    }
}