/* 
 * designedbyDC - Main Stylesheet
 */

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

:root {
    --primary-color: #00c3ff;
    --bg-color: #111;
    --text-color: #333;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
}

body {
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Typography */
h1 {
    font-size: 6rem;
    filter: drop-shadow(0px 0px 5px currentColor);
    font-weight: 600;
}

h1::after {
    content: '';
    display: inline-block;
    width: .2em;
    height: .7em;
    background-color: currentColor;
    margin-left: .1em;
    animation: blink 1s linear infinite forwards;
    vertical-align: baseline;
}

h2 {
    margin-top: 20px;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

a:hover {
    filter: drop-shadow(0px 0px 5px var(--primary-color));
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader span {
    color: var(--text-color);
    font-size: 2rem;
}

/* Profile Container */
.profile-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 37.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
}

/* Logo and Subtitle */
.logo-overlay {
    width: 283.5px;
    height: 154.5px;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    color: #666;
    font-size: 0.825rem;
    margin-bottom: 2.25rem;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 1s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* Social Links */
.squares-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.125rem;
    padding: 1.125rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    color: #fff;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.square {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 1.125rem;
    text-decoration: none;
    opacity: 0;
    border-radius: 12px;
    overflow: hidden;
    font-weight: 500;
    background: #333;
}

.square:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.square:hover .social-icon {
    transform: scale(1.1);
}

.design-square {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 2s;
}

.develop-square {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.5s;
}

.invest-square {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 3s;
}

/* Animations */
@keyframes blink {
    0%, 50% { visibility: visible; }
    51%, 100% { visibility: hidden; }
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    h1 { font-size: 4rem; }
    
    .squares-container {
        gap: 0.5625rem;
        padding: 0.75rem;
    }
    .square {
        width: 75px;
        height: 75px;
    }
    .social-icon {
        width: 24px;
        height: 24px;
    }
    .subtitle {
        font-size: 0.675rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.2em;
    }
    .logo-overlay {
        width: 210px;
        height: 114.75px;
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 3rem; }
}