/* Root Variables */
:root {
    /* --- Background tones --- */
    --bg-dark: #0b0b0d;
    /* რბილი შავი */
    --bg-darker: #050506;
    /* უფრო ღრმა ფონური ელემენტებისთვის */

    /* --- Text --- */
    --text-primary: #e6e6e6;
    /* რბილი თეთრი — შავზე ზედმეტად მკვეთრი არაა */
    --text-secondary: rgba(230, 230, 230, 0.6);
    /* მეორეხარისხოვანი ტექსტი */

    /* --- Accent Colors (ცივი და ტექნოლოგიური ელემენტებისთვის) --- */
    --accent-blue: #3abef9;
    /* ცივი ცისფერი — მუქ ფონზე კარგად ჩანს */
    --accent-purple: #7b61ff;
    /* ღრმა მეწამული — ჰარმონიაშია ნაცრისფერ ფონთან */
    --accent-cyan: #00f5d4;
    /* მსუბუქი ციანური ელემენტებისთვის (hover ან highlight) */

    /* --- Glow Effects --- */
    --glow-blue: rgba(58, 190, 249, 0.25);
    --glow-purple: rgba(123, 97, 255, 0.25);
    --glow-cyan: rgba(0, 245, 212, 0.25);

    /* --- Glassmorphism --- */
    --glass-bg: rgba(25, 25, 30, 0.45);
    /* შავი შუშის ეფექტი — ვიდეოზე კარგად ჩანს */
    --glass-border: rgba(255, 255, 255, 0.08);
}


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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.preloader-content {
    text-align: center;
    z-index: 2;
}

.preloader-logo {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
    box-shadow: 0 0 20px var(--glow-blue);
}

.progress-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -250px;
    left: -250px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100vh;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 0 30px var(--glow-blue);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px var(--glow-purple);
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
}

.orb-a {
    width: 200px;
    height: 200px;
    background: var(--accent-blue);
    top: 20%;
    left: 10%;
}

.orb-b {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    top: 60%;
    right: 15%;
}

.orb-c {
    width: 150px;
    height: 150px;
    background: var(--accent-pink);
    bottom: 20%;
    left: 50%;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.profile-frame {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 60px var(--glow-blue);
    transition: all 0.5s;
}

.profile-frame:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 20px 80px var(--glow-purple);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-dark);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px var(--glow-blue);
}

.skill-item i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.skill-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-section {
    padding: 8rem 0;
    position: relative;
}

.projects-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--glow-purple);
    border-color: var(--accent-blue);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.project-link {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.project-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin-left 0.3s;
}

.project-link:hover::after {
    margin-left: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    position: relative;
}

.contact-grid {
    display: flex;
    /* flex გამოვიყენეთ grid-ის მაგივრად */
    flex-direction: column;
    /* ნივთები ერთმანეთის ქვემოთ */
    align-items: center;
    /* ცენტრში აწყობა ჰორიზონტალურად */
    gap: 3rem;
    /* სივრცე ფორმასა და social links-ს შორის */
    margin-top: 3rem;
}

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

.form-group input,
.form-group textarea {
    min-width: 600px;
    height: 60px;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px var(--glow-blue);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-purple);
}


.social-links {
    display: flex;
    flex-direction: row;
    /* social icon-ები გვერდი-გვერდ */
    gap: 1.5rem;
    justify-content: center;
    /* ცენტრში აწყობა */
    align-items: center;
    height: auto;
    /* გრძელი სიგრძე აღარ იქნება */
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--accent-blue);
    font-size: 1.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px var(--glow-blue);
    background: rgba(0, 212, 255, 0.1);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    position: relative;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

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

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-blue);
}




/* Responsive */
@media (max-width: 768px) {

    .form-group input,
    .form-group textarea {
        min-width: 400px;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .profile-frame {
        width: 250px;
        height: 250px;
    }

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

    .projects-wrapper {
        grid-template-columns: 1fr;
    }

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

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }
        .form-group input,
    .form-group textarea {
        min-width: 350px;
    }

}